| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_121) on Fri Jan 06 19:36:25 UTC 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>Compatibility (OpenJPA Parent POM 2.4.2 API)</title> |
| <meta name="date" content="2017-01-06"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Compatibility (OpenJPA Parent POM 2.4.2 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Compatibility.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/openjpa/conf/CallbackOptions.html" title="class in org.apache.openjpa.conf"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/openjpa/conf/DetachOptions.html" title="class in org.apache.openjpa.conf"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/openjpa/conf/Compatibility.html" target="_top">Frames</a></li> |
| <li><a href="Compatibility.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.openjpa.conf</div> |
| <h2 title="Class Compatibility" class="title">Class Compatibility</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.openjpa.conf.Compatibility</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="strong">Compatibility</span> |
| extends <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">Struct encompassing backwards-compatibility options.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_EXTENDED">JPQL_EXTENDED</a></strong></code> |
| <div class="block">Allow non-compliant extensions of JPQL.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_STRICT">JPQL_STRICT</a></strong></code> |
| <div class="block">If a JPQL statement is not compliant with the JPA specification, |
| fail to parse it.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_WARN">JPQL_WARN</a></strong></code> |
| <div class="block">If a JPQL statement is not compliant with the JPA specification, |
| warn the first time that statement is parsed.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#Compatibility()">Compatibility</a></strong>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getAutoOff()">getAutoOff</a></strong>()</code> |
| <div class="block">Whether to turn collection/map tracing off in case of more number of modifications.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getCacheNonDefaultFetchPlanQueries()">getCacheNonDefaultFetchPlanQueries</a></strong>()</code> |
| <div class="block">Whether the SQL generated for queries executed with a modified fetch plan are cached.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getCascadeWithDetach()">getCascadeWithDetach</a></strong>()</code> |
| <div class="block">Whether openjpa will always cascade on detach, regardless of the |
| cascade setting.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getCheckDatabaseForCascadePersistToDetachedEntity()">getCheckDatabaseForCascadePersistToDetachedEntity</a></strong>()</code> |
| <div class="block">Whether OpenJPA will check the database for an Entity when cascading a persist to another Entity.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getCloseOnManagedCommit()">getCloseOnManagedCommit</a></strong>()</code> |
| <div class="block">Whether to close the broker when the managed transaction commits.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getConvertPositionalParametersToNamed()">getConvertPositionalParametersToNamed</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getCopyObjectIds()">getCopyObjectIds</a></strong>()</code> |
| <div class="block">Whether to copy identity objects before returning them to client code.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getCopyOnDetach()">getCopyOnDetach</a></strong>()</code> |
| <div class="block">Affirms if detached entities are copy of the managed instances.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getFilterPCRegistryClasses()">getFilterPCRegistryClasses</a></strong>()</code> |
| <div class="block">Whether the metadata processor should filter classes dispatched by the PCRegistry listener system.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getFlushBeforeDetach()">getFlushBeforeDetach</a></strong>()</code> |
| <div class="block">Whether OpenJPA should flush changes before detaching or serializing an |
| entity.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getIgnoreDetachedStateFieldForProxySerialization()">getIgnoreDetachedStateFieldForProxySerialization</a></strong>()</code> |
| <div class="block">Whether OpenJPA should ignore the DetachedStateField value when |
| determining if our Proxy classes should be removed during serialization.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getJPQL()">getJPQL</a></strong>()</code> |
| <div class="block">Whether or not JPQL extensions are allowed.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getMetaFactoriesAreStrict()">getMetaFactoriesAreStrict</a></strong>()</code> |
| <div class="block">Whether the MetaDataFactory and MappingFactory should be set to strict mode.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getNonOptimisticVersionCheck()">getNonOptimisticVersionCheck</a></strong>()</code> |
| <div class="block">Whether or not to perform a version check on instances being updated |
| in a datastore transaction.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getOverrideContextClassloader()">getOverrideContextClassloader</a></strong>()</code> |
| <div class="block">Whether to temporally override the thread's Context Classloader when processing |
| ORM XML documents to avoid deadlock potential with certain Classloader hierarchy |
| configurations.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getParseAnnotationsForQueryMode()">getParseAnnotationsForQueryMode</a></strong>()</code> |
| <div class="block">Whether OpenJPA will scan every persistent class in an XML mapping file for annotations prior to executing a |
| query.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getPrivatePersistentProperties()">getPrivatePersistentProperties</a></strong>()</code> |
| <div class="block">Whether OpenJPA allows private, non-transient properties to be |
| persistent.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getQuotedNumbersInQueries()">getQuotedNumbersInQueries</a></strong>()</code> |
| <div class="block">Whether to interpret quoted numbers in query strings as numbers.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getReloadOnDetach()">getReloadOnDetach</a></strong>()</code> |
| <div class="block">Whether OpenJPA should attempt to load fields when the DetachState |
| option is set to loaded.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getResetFlushFlagForCascadePersist()">getResetFlushFlagForCascadePersist</a></strong>()</code> |
| <div class="block">Whether OpenJPA should reset the internal state (flush flag) when cascading a persist to another |
| Entity.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getReturnNullOnEmptyAggregateResult()">getReturnNullOnEmptyAggregateResult</a></strong>()</code> |
| <div class="block">This property is used to specify whether the aggregate query functions |
| SUM, AVG, MAX, and MIN return null if there is no query result.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getStoreMapCollectionInEntityAsBlob()">getStoreMapCollectionInEntityAsBlob</a></strong>()</code> |
| <div class="block">Whether if map and collection in entity are stored as blob.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getStrictIdentityValues()">getStrictIdentityValues</a></strong>()</code> |
| <div class="block">Whether to require exact identity value types when creating object |
| ids from a class and value.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getSuperclassDiscriminatorStrategyByDefault()">getSuperclassDiscriminatorStrategyByDefault</a></strong>()</code> |
| <div class="block">Whether to add class criteria for super class discreminator strategy.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getUseJPA2DefaultOrderColumnName()">getUseJPA2DefaultOrderColumnName</a></strong>()</code> |
| <div class="block">Whether OpenJPA should use the new default order column name defined |
| by JPA 2.0: name; "_"; "ORDER" or the pre-JPA 2.0 default name "ordr".</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getUseListAttributeForArrays()">getUseListAttributeForArrays</a></strong>()</code> |
| <div class="block">This property can be used to allow OpenJPA to use ListAttributes for all types of Arrays, not just those with the |
| @ PersistentCollection annotation.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getValidateFalseReturnsHollow()">getValidateFalseReturnsHollow</a></strong>()</code> |
| <div class="block">Whether to return hollow instances to broker lookups with a |
| <code>validate</code> parameter of false.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#getValidateTrueChecksStore()">getValidateTrueChecksStore</a></strong>()</code> |
| <div class="block">Whether to check the datastore for the existence of a nontransactional |
| cached object in broker lookups with a <code>validate</code> parameter |
| of true.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#isAbstractMappingUniDirectional()">isAbstractMappingUniDirectional</a></strong>()</code> |
| <div class="block">Whether OpenJPA allows bi-directional relationship in the MappedSuperclass.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#isNonDefaultMappingAllowed()">isNonDefaultMappingAllowed</a></strong>()</code> |
| <div class="block">Whether OpenJPA allows non-default entity relationship mapping.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#isSingletonLifecycleEventManager()">isSingletonLifecycleEventManager</a></strong>()</code> |
| <div class="block">Returns true if life cycle event manager is a singleton configuration.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setAbstractMappingUniDirectional(boolean)">setAbstractMappingUniDirectional</a></strong>(boolean isAbstractMappingUniDirectional)</code> |
| <div class="block">Whether OpenJPA allows bi-directional relationship in the MappedSuperclass.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setAutoOff(boolean)">setAutoOff</a></strong>(boolean autoOff)</code> |
| <div class="block">Whether to turn collection/map tracing off in case of more number of modifications.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setCacheNonDefaultFetchPlanQueries(boolean)">setCacheNonDefaultFetchPlanQueries</a></strong>(boolean bool)</code> |
| <div class="block">Whether the SQL generated for queries executed with a modified fetch plan are cached.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setCascadeWithDetach(boolean)">setCascadeWithDetach</a></strong>(boolean cascadeWithDetach)</code> |
| <div class="block">Whether openjpa should always cascade on detach, regardless of the |
| cascade setting.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setCheckDatabaseForCascadePersistToDetachedEntity(boolean)">setCheckDatabaseForCascadePersistToDetachedEntity</a></strong>(boolean b)</code> |
| <div class="block">Whether OpenJPA will check the database for an Entity when cascading a persist to another Entity.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setCloseOnManagedCommit(boolean)">setCloseOnManagedCommit</a></strong>(boolean close)</code> |
| <div class="block">Whether to close the broker when the managed transaction commits.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setConvertPositionalParametersToNamed(boolean)">setConvertPositionalParametersToNamed</a></strong>(boolean c)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setCopyObjectIds(boolean)">setCopyObjectIds</a></strong>(boolean copy)</code> |
| <div class="block">Whether to copy identity objects before returning them to client code.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setCopyOnDetach(boolean)">setCopyOnDetach</a></strong>(boolean copyOnDetach)</code> |
| <div class="block">Sets if detached entities are copy of the managed instances.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setFilterPCRegistryClasses(boolean)">setFilterPCRegistryClasses</a></strong>(boolean bool)</code> |
| <div class="block">Whether the metadata processor should filter classes dispatched by the PCRegistry listener system.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setFlushBeforeDetach(boolean)">setFlushBeforeDetach</a></strong>(boolean beforeDetach)</code> |
| <div class="block">Whether OpenJPA should flush changes before detaching or serializing an |
| entity.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setIgnoreDetachedStateFieldForProxySerialization(boolean)">setIgnoreDetachedStateFieldForProxySerialization</a></strong>(boolean ignoreDSF)</code> |
| <div class="block">Whether OpenJPA should ignore the DetachedStateField value when |
| determining if our Proxy classes should be removed during serialization.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setJPQL(java.lang.String)">setJPQL</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jpql)</code> |
| <div class="block">Whether or not JPQL extensions are allowed.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setMetaFactoriesAreStrict(boolean)">setMetaFactoriesAreStrict</a></strong>(boolean metaFactoriesAreStrict)</code> |
| <div class="block">Set whether MetaDataFactories and MappingFactories will be strictly separate.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setNonDefaultMappingAllowed(boolean)">setNonDefaultMappingAllowed</a></strong>(boolean isNonDefaultMappingAllowed)</code> |
| <div class="block">Whether OpenJPA allows non-default entity relationship mapping.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setNonOptimisticVersionCheck(boolean)">setNonOptimisticVersionCheck</a></strong>(boolean nonOptimisticVersionCheck)</code> |
| <div class="block">Whether or not to perform a version check on instances being updated |
| in a datastore transaction.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setOverrideContextClassloader(boolean)">setOverrideContextClassloader</a></strong>(boolean overrideContextClassloader)</code> |
| <div class="block">Whether to temporally override the thread's Context Classloader when processing |
| ORM XML documents to avoid deadlock potential with certain Classloader hierarchy |
| configurations.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setParseAnnotationsForQueryMode(boolean)">setParseAnnotationsForQueryMode</a></strong>(boolean parseAnnotationsForQueryMode)</code> |
| <div class="block">Whether OpenJPA will scan every persistent class in an XML mapping file for annotations prior to executing a |
| query.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setPrivatePersistentProperties(boolean)">setPrivatePersistentProperties</a></strong>(boolean privateProps)</code> |
| <div class="block">Whether OpenJPA allows private, non-transient properties to be |
| persistent.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setQuotedNumbersInQueries(boolean)">setQuotedNumbersInQueries</a></strong>(boolean quotedNumbers)</code> |
| <div class="block">Whether to interpret quoted numbers in query strings as numbers.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setReloadOnDetach(boolean)">setReloadOnDetach</a></strong>(boolean reloadOnDetach)</code> |
| <div class="block">Whether OpenJPA should attempt to load fields when the DetachState |
| option is set to loaded.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setResetFlushFlagForCascadePersist(boolean)">setResetFlushFlagForCascadePersist</a></strong>(boolean b)</code> |
| <div class="block">Whether OpenJPA should reset the internal state (flush flag) when cascading a persist to another |
| Entity.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setReturnNullOnAggregateResult(boolean)">setReturnNullOnAggregateResult</a></strong>(boolean returnNullOnEmptyAggregateResult)</code> |
| <div class="block">This property is used to specify whether the aggregate query functions |
| SUM, AVG, MAX, and MIN return null if there is no query result.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setSingletonLifecycleEventManager(boolean)">setSingletonLifecycleEventManager</a></strong>(boolean singleton)</code> |
| <div class="block">This property set whether each EntityManager has its own life cycle event manager.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setStoreMapCollectionInEntityAsBlob(boolean)">setStoreMapCollectionInEntityAsBlob</a></strong>(boolean storeAsBlob)</code> |
| <div class="block">Whether if map and collection in entity are stored as blob.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setStrictIdentityValues(boolean)">setStrictIdentityValues</a></strong>(boolean strictVals)</code> |
| <div class="block">Whether to require exact identity value types when creating object |
| ids from a class and value.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setSuperclassDiscriminatorStrategyByDefault(boolean)">setSuperclassDiscriminatorStrategyByDefault</a></strong>(boolean superclassDiscriminatorStrategyByDefault)</code> |
| <div class="block">Whether to add class criteria for super class discreminator strategy.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setUseJPA2DefaultOrderColumnName(boolean)">setUseJPA2DefaultOrderColumnName</a></strong>(boolean useJPA2Name)</code> |
| <div class="block">Whether OpenJPA should use the new default order column name defined |
| by JPA 2.0: name; "_"; "ORDER" or the pre-JPA 2.0 default name "ordr".</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setUseListAttributeForArrays(boolean)">setUseListAttributeForArrays</a></strong>(boolean useListAttribute)</code> |
| <div class="block">This property can be used to allow OpenJPA to use ListAttributes for all types of Arrays, not just those with the |
| @PersistentCollection annotation.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setValidateFalseReturnsHollow(boolean)">setValidateFalseReturnsHollow</a></strong>(boolean hollow)</code> |
| <div class="block">Whether to return hollow instances to broker lookups with a |
| <code>validate</code> parameter of false.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/openjpa/conf/Compatibility.html#setValidateTrueChecksStore(boolean)">setValidateTrueChecksStore</a></strong>(boolean check)</code> |
| <div class="block">Whether to check the datastore for the existence of a nontransactional |
| cached object in broker lookups with a <code>validate</code> parameter |
| of true.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="JPQL_STRICT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>JPQL_STRICT</h4> |
| <pre>public static final int JPQL_STRICT</pre> |
| <div class="block">If a JPQL statement is not compliant with the JPA specification, |
| fail to parse it.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.1.0</dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.openjpa.conf.Compatibility.JPQL_STRICT">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="JPQL_WARN"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>JPQL_WARN</h4> |
| <pre>public static final int JPQL_WARN</pre> |
| <div class="block">If a JPQL statement is not compliant with the JPA specification, |
| warn the first time that statement is parsed.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.1.0</dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.openjpa.conf.Compatibility.JPQL_WARN">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="JPQL_EXTENDED"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>JPQL_EXTENDED</h4> |
| <pre>public static final int JPQL_EXTENDED</pre> |
| <div class="block">Allow non-compliant extensions of JPQL.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.1.0</dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.openjpa.conf.Compatibility.JPQL_EXTENDED">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="Compatibility()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>Compatibility</h4> |
| <pre>public Compatibility()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getStrictIdentityValues()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStrictIdentityValues</h4> |
| <pre>public boolean getStrictIdentityValues()</pre> |
| <div class="block">Whether to require exact identity value types when creating object |
| ids from a class and value. Defaults to false.</div> |
| </li> |
| </ul> |
| <a name="setStrictIdentityValues(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStrictIdentityValues</h4> |
| <pre>public void setStrictIdentityValues(boolean strictVals)</pre> |
| <div class="block">Whether to require exact identity value types when creating object |
| ids from a class and value. Defaults to false.</div> |
| </li> |
| </ul> |
| <a name="getAutoOff()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAutoOff</h4> |
| <pre>public boolean getAutoOff()</pre> |
| <div class="block">Whether to turn collection/map tracing off in case of more number of modifications. |
| Defaults to true.</div> |
| </li> |
| </ul> |
| <a name="setAutoOff(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAutoOff</h4> |
| <pre>public void setAutoOff(boolean autoOff)</pre> |
| <div class="block">Whether to turn collection/map tracing off in case of more number of modifications. |
| Defaults to true.</div> |
| </li> |
| </ul> |
| <a name="getSuperclassDiscriminatorStrategyByDefault()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSuperclassDiscriminatorStrategyByDefault</h4> |
| <pre>public boolean getSuperclassDiscriminatorStrategyByDefault()</pre> |
| <div class="block">Whether to add class criteria for super class discreminator strategy. |
| Defaults to false.</div> |
| </li> |
| </ul> |
| <a name="setSuperclassDiscriminatorStrategyByDefault(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSuperclassDiscriminatorStrategyByDefault</h4> |
| <pre>public void setSuperclassDiscriminatorStrategyByDefault(boolean superclassDiscriminatorStrategyByDefault)</pre> |
| <div class="block">Whether to add class criteria for super class discreminator strategy. |
| Defaults to false.</div> |
| </li> |
| </ul> |
| <a name="getQuotedNumbersInQueries()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getQuotedNumbersInQueries</h4> |
| <pre>public boolean getQuotedNumbersInQueries()</pre> |
| <div class="block">Whether to interpret quoted numbers in query strings as numbers. |
| OpenJPA versions 0.3.1 and prior treated them as numbers; more recent |
| versions treat them as strings.</div> |
| </li> |
| </ul> |
| <a name="setQuotedNumbersInQueries(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setQuotedNumbersInQueries</h4> |
| <pre>public void setQuotedNumbersInQueries(boolean quotedNumbers)</pre> |
| <div class="block">Whether to interpret quoted numbers in query strings as numbers. |
| OpenJPA versions 0.3.1 and prior treated them as numbers; more recent |
| versions treat them as strings.</div> |
| </li> |
| </ul> |
| <a name="getValidateFalseReturnsHollow()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getValidateFalseReturnsHollow</h4> |
| <pre>public boolean getValidateFalseReturnsHollow()</pre> |
| <div class="block">Whether to return hollow instances to broker lookups with a |
| <code>validate</code> parameter of false. OpenJPA versions prior to |
| 0.4.0 did not return hollow instances without special configuration |
| (the <code>ObjectLookupMode</code>). Beginning with 0.4.0, hollow |
| objects are the default.</div> |
| </li> |
| </ul> |
| <a name="setValidateFalseReturnsHollow(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setValidateFalseReturnsHollow</h4> |
| <pre>public void setValidateFalseReturnsHollow(boolean hollow)</pre> |
| <div class="block">Whether to return hollow instances to broker lookups with a |
| <code>validate</code> parameter of false. OpenJPA versions prior to |
| 0.4.0 did not return hollow instances without special configuration |
| (the <code>ObjectLookupMode</code>). Beginning with 0.4.0, hollow |
| objects are the default.</div> |
| </li> |
| </ul> |
| <a name="getValidateTrueChecksStore()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getValidateTrueChecksStore</h4> |
| <pre>public boolean getValidateTrueChecksStore()</pre> |
| <div class="block">Whether to check the datastore for the existence of a nontransactional |
| cached object in broker lookups with a <code>validate</code> parameter |
| of true. OpenJPA versions prior to 0.4.0 checked the datastore.</div> |
| </li> |
| </ul> |
| <a name="setValidateTrueChecksStore(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setValidateTrueChecksStore</h4> |
| <pre>public void setValidateTrueChecksStore(boolean check)</pre> |
| <div class="block">Whether to check the datastore for the existence of a nontransactional |
| cached object in broker lookups with a <code>validate</code> parameter |
| of true. OpenJPA versions prior to 0.4.0 checked the datastore.</div> |
| </li> |
| </ul> |
| <a name="getCopyObjectIds()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCopyObjectIds</h4> |
| <pre>public boolean getCopyObjectIds()</pre> |
| <div class="block">Whether to copy identity objects before returning them to client code. |
| Versions of OpenJPA prior to 0.3.0 always copied identity objects. Also, |
| you should configure OpenJPA to copy identity objects if you mutate them |
| after use.</div> |
| </li> |
| </ul> |
| <a name="setCopyObjectIds(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setCopyObjectIds</h4> |
| <pre>public void setCopyObjectIds(boolean copy)</pre> |
| <div class="block">Whether to copy identity objects before returning them to client code. |
| Versions of OpenJPA prior to 0.3.0 always copied identity objects. Also, |
| you should configure OpenJPA to copy identity objects if you mutate them |
| after use.</div> |
| </li> |
| </ul> |
| <a name="getCloseOnManagedCommit()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCloseOnManagedCommit</h4> |
| <pre>public boolean getCloseOnManagedCommit()</pre> |
| <div class="block">Whether to close the broker when the managed transaction commits. |
| Versions of OpenJPA prior to 0.3.0 did not close the broker.</div> |
| </li> |
| </ul> |
| <a name="setCloseOnManagedCommit(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setCloseOnManagedCommit</h4> |
| <pre>public void setCloseOnManagedCommit(boolean close)</pre> |
| <div class="block">Whether to close the broker when the managed transaction commits. |
| Versions of OpenJPA prior to 0.3.0 did not close the broker.</div> |
| </li> |
| </ul> |
| <a name="setNonOptimisticVersionCheck(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setNonOptimisticVersionCheck</h4> |
| <pre>public void setNonOptimisticVersionCheck(boolean nonOptimisticVersionCheck)</pre> |
| <div class="block">Whether or not to perform a version check on instances being updated |
| in a datastore transaction. Version of OpenJPA prior to 0.4.1 always |
| forced a version check.</div> |
| </li> |
| </ul> |
| <a name="getNonOptimisticVersionCheck()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNonOptimisticVersionCheck</h4> |
| <pre>public boolean getNonOptimisticVersionCheck()</pre> |
| <div class="block">Whether or not to perform a version check on instances being updated |
| in a datastore transaction. Version of OpenJPA prior to 0.4.1 always |
| forced a version check.</div> |
| </li> |
| </ul> |
| <a name="getJPQL()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getJPQL</h4> |
| <pre>public int getJPQL()</pre> |
| <div class="block">Whether or not JPQL extensions are allowed. Defaults to |
| <a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_STRICT"><code>JPQL_STRICT</code></a>.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.1.0</dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_WARN"><code>JPQL_WARN</code></a>, |
| <a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_STRICT"><code>JPQL_STRICT</code></a>, |
| <a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_EXTENDED"><code>JPQL_EXTENDED</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="setJPQL(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setJPQL</h4> |
| <pre>public void setJPQL(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jpql)</pre> |
| <div class="block">Whether or not JPQL extensions are allowed. Possible values: "warn", |
| "strict", "extended".</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.1.0</dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_WARN"><code>JPQL_WARN</code></a>, |
| <a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_STRICT"><code>JPQL_STRICT</code></a>, |
| <a href="../../../../org/apache/openjpa/conf/Compatibility.html#JPQL_EXTENDED"><code>JPQL_EXTENDED</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getStoreMapCollectionInEntityAsBlob()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStoreMapCollectionInEntityAsBlob</h4> |
| <pre>public boolean getStoreMapCollectionInEntityAsBlob()</pre> |
| <div class="block">Whether if map and collection in entity are stored as blob. |
| Defaults to <code>false</code>.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.1.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setStoreMapCollectionInEntityAsBlob(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStoreMapCollectionInEntityAsBlob</h4> |
| <pre>public void setStoreMapCollectionInEntityAsBlob(boolean storeAsBlob)</pre> |
| <div class="block">Whether if map and collection in entity are stored as blob. |
| Defaults to <code>false</code>.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.1.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getFlushBeforeDetach()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFlushBeforeDetach</h4> |
| <pre>public boolean getFlushBeforeDetach()</pre> |
| <div class="block">Whether OpenJPA should flush changes before detaching or serializing an |
| entity. In JPA this is usually false, but other persistence frameworks |
| (ie JDO) may expect it to be true. |
| <P>Prior to version 1.0.3 and 1.2.0 changes were always flushed.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if changes should be flushed, otherwise false.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>1.0.3, 1.2.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setIgnoreDetachedStateFieldForProxySerialization(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setIgnoreDetachedStateFieldForProxySerialization</h4> |
| <pre>public void setIgnoreDetachedStateFieldForProxySerialization(boolean ignoreDSF)</pre> |
| <div class="block">Whether OpenJPA should ignore the DetachedStateField value when |
| determining if our Proxy classes should be removed during serialization. |
| <P>Starting with version 2.0.0, when the DetachedStateFiled==true, the |
| build time $proxy classes will not be removed. |
| <P>Prior to version 2.0.0, the DetachedStateFiled was not used and |
| the $proxy classes were not being removed during serialization after |
| the Persistence context was cleared.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>ignoreDSF</code> - if true the old Proxy serialization behavior will be used.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getIgnoreDetachedStateFieldForProxySerialization()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIgnoreDetachedStateFieldForProxySerialization</h4> |
| <pre>public boolean getIgnoreDetachedStateFieldForProxySerialization()</pre> |
| <div class="block">Whether OpenJPA should ignore the DetachedStateField value when |
| determining if our Proxy classes should be removed during serialization. |
| <P>Starting with version 2.0.0, when the DetachedStateFiled==true, the |
| build time $proxy classes will not be removed. |
| <P>Prior to version 2.0.0, the DetachedStateFiled was not used and |
| the $proxy classes were not being removed during serialization after |
| the Persistence context was cleared.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if the old Proxy serialization will be used, otherwise false.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getConvertPositionalParametersToNamed()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConvertPositionalParametersToNamed</h4> |
| <pre>public boolean getConvertPositionalParametersToNamed()</pre> |
| </li> |
| </ul> |
| <a name="setConvertPositionalParametersToNamed(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setConvertPositionalParametersToNamed</h4> |
| <pre>public void setConvertPositionalParametersToNamed(boolean c)</pre> |
| </li> |
| </ul> |
| <a name="setFlushBeforeDetach(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFlushBeforeDetach</h4> |
| <pre>public void setFlushBeforeDetach(boolean beforeDetach)</pre> |
| <div class="block">Whether OpenJPA should flush changes before detaching or serializing an |
| entity. In JPA this is usually false, but other persistence frameworks |
| (ie JDO) may expect it to be true. |
| <P>Prior to version 1.0.3 and 1.2.0 changes were always flushed.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>beforeDetach</code> - if true changes will be flushed before detaching or |
| serializing an entity.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>1.0.3, 1.2.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getCopyOnDetach()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCopyOnDetach</h4> |
| <pre>public boolean getCopyOnDetach()</pre> |
| <div class="block">Affirms if detached entities are copy of the managed instances. |
| Before this option is introduced, detached entities were by default |
| copies of the managed entities unless the entire cache is detached, only |
| then the detachment was in-place. |
| This option changes the default behavior such that detachment is now |
| in-place by default. To emulate the previous copy-on-detach behavior |
| set this option to true. |
| |
| If the entire cache is being detached (when the persistence context is |
| closed, for example), the detachement</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setCopyOnDetach(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setCopyOnDetach</h4> |
| <pre>public void setCopyOnDetach(boolean copyOnDetach)</pre> |
| <div class="block">Sets if detached entities are copy of the managed instances. |
| Before this option is introduced, detached entities were by default |
| copies of the managed entities unless the entire cache is detached, only |
| then the detachment was in-place. |
| This option changes the default behavior such that detachment is now |
| in-place by default. To emulate the previous copy-on-detach behavior |
| set this option to true.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getCascadeWithDetach()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCascadeWithDetach</h4> |
| <pre>public boolean getCascadeWithDetach()</pre> |
| <div class="block">Whether openjpa will always cascade on detach, regardless of the |
| cascade setting.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if cascade will always occur, false if cascade will only |
| occur if it is specified in metadata</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setCascadeWithDetach(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setCascadeWithDetach</h4> |
| <pre>public void setCascadeWithDetach(boolean cascadeWithDetach)</pre> |
| <div class="block">Whether openjpa should always cascade on detach, regardless of the |
| cascade setting.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>cascadeWithDetach</code> - true if cascade should always occur, false if |
| it should only occur if specified in metadata</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getUseJPA2DefaultOrderColumnName()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUseJPA2DefaultOrderColumnName</h4> |
| <pre>public boolean getUseJPA2DefaultOrderColumnName()</pre> |
| <div class="block">Whether OpenJPA should use the new default order column name defined |
| by JPA 2.0: name; "_"; "ORDER" or the pre-JPA 2.0 default name "ordr".</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if the JPA2 default name should be used</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setUseJPA2DefaultOrderColumnName(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUseJPA2DefaultOrderColumnName</h4> |
| <pre>public void setUseJPA2DefaultOrderColumnName(boolean useJPA2Name)</pre> |
| <div class="block">Whether OpenJPA should use the new default order column name defined |
| by JPA 2.0: name; "_"; "ORDER" or the pre-JPA 2.0 default name "ordr".</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>useJPA2</code> - true if the JPA 2.0 default name should be used. false if |
| the 1.x name should be used.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getPrivatePersistentProperties()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPrivatePersistentProperties</h4> |
| <pre>public boolean getPrivatePersistentProperties()</pre> |
| <div class="block">Whether OpenJPA allows private, non-transient properties to be |
| persistent. Prior to OpenJPA 2.0, if property access was used, |
| private properties were considered persistent. This is contrary to the |
| JPA specification, which states that persistent properties must be |
| public or protected. The default value is false.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if non-transient private properties should be persistent</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setPrivatePersistentProperties(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPrivatePersistentProperties</h4> |
| <pre>public void setPrivatePersistentProperties(boolean privateProps)</pre> |
| <div class="block">Whether OpenJPA allows private, non-transient properties to be |
| persistent. Prior to OpenJPA 2.0, if property access was used, |
| private properties were considered persistent. This is contrary to the |
| JPA specification, which states that persistent properties must be |
| public or protected.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>privateProps</code> - true if non-transient private properties |
| should be persistent</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setAbstractMappingUniDirectional(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setAbstractMappingUniDirectional</h4> |
| <pre>public void setAbstractMappingUniDirectional(boolean isAbstractMappingUniDirectional)</pre> |
| <div class="block">Whether OpenJPA allows bi-directional relationship in the MappedSuperclass. |
| Prior to OpenJPA 2.0, the bi-directional relationship in the MappedSuperclass, |
| is not blocked. This is contrary to the JPA specification, which states that |
| persistent relationships defined by a mapped superclass must be |
| unidirectional.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>isAbstractMappingUniDirectional</code> - true if relationship defined in the |
| MappedSuperclass must be uni-directional</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="isAbstractMappingUniDirectional()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isAbstractMappingUniDirectional</h4> |
| <pre>public boolean isAbstractMappingUniDirectional()</pre> |
| <div class="block">Whether OpenJPA allows bi-directional relationship in the MappedSuperclass. |
| Prior to OpenJPA 2.0, the bi-directional relationship in the MappedSuperclass, |
| is not blocked. This is contrary to the JPA specification, which states that |
| persistent relationships defined by a mapped superclass must be |
| unidirectional. The default value is false.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setNonDefaultMappingAllowed(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setNonDefaultMappingAllowed</h4> |
| <pre>public void setNonDefaultMappingAllowed(boolean isNonDefaultMappingAllowed)</pre> |
| <div class="block">Whether OpenJPA allows non-default entity relationship mapping. |
| Prior to OpenJPA 2.0, the non-default entity relationship mapping |
| is not allowed. JPA 2.0 spec relaxes this restriction. The |
| default value is false.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="isNonDefaultMappingAllowed()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNonDefaultMappingAllowed</h4> |
| <pre>public boolean isNonDefaultMappingAllowed()</pre> |
| <div class="block">Whether OpenJPA allows non-default entity relationship mapping. |
| Prior to OpenJPA 2.0, the non-default entity relationship mapping |
| is not allowed. JPA 2.0 spec relaxes this restriction. The |
| default value is false.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getReloadOnDetach()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getReloadOnDetach</h4> |
| <pre>public boolean getReloadOnDetach()</pre> |
| <div class="block">Whether OpenJPA should attempt to load fields when the DetachState |
| option is set to loaded. This also determines whether a |
| redundant copy of the version field is made. Beginning in 2.0 |
| it defaults to false.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the _reloadOnDetach</dd><dt><span class="strong">Since:</span></dt> |
| <dd>1.2.2</dd></dl> |
| </li> |
| </ul> |
| <a name="setReloadOnDetach(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setReloadOnDetach</h4> |
| <pre>public void setReloadOnDetach(boolean reloadOnDetach)</pre> |
| <div class="block">Whether OpenJPA should attempt to load fields when the DetachState |
| option is set to loaded. This also determines whether a |
| redundant copy of the version field is made. Beginning in 2.0 |
| it defaults to false.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>reloadOnDetach</code> - the _reloadOnDetach to set</dd><dt><span class="strong">Since:</span></dt> |
| <dd>1.2.2</dd></dl> |
| </li> |
| </ul> |
| <a name="getCheckDatabaseForCascadePersistToDetachedEntity()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCheckDatabaseForCascadePersistToDetachedEntity</h4> |
| <pre>public boolean getCheckDatabaseForCascadePersistToDetachedEntity()</pre> |
| <div class="block">Whether OpenJPA will check the database for an Entity when cascading a persist to another Entity. This property |
| only applies for the case where we are trying to cascade a persist to an Entity which doesn't have a StateManager |
| and we can't determine if it is detached.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.1.1</dd></dl> |
| </li> |
| </ul> |
| <a name="setCheckDatabaseForCascadePersistToDetachedEntity(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setCheckDatabaseForCascadePersistToDetachedEntity</h4> |
| <pre>public void setCheckDatabaseForCascadePersistToDetachedEntity(boolean b)</pre> |
| <div class="block">Whether OpenJPA will check the database for an Entity when cascading a persist to another Entity. This property |
| only applies for the case where we are trying to cascade a persist to an Entity which doesn't have a StateManager |
| and we can't determine if it is detached.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.1.1</dd></dl> |
| </li> |
| </ul> |
| <a name="getOverrideContextClassloader()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getOverrideContextClassloader</h4> |
| <pre>public boolean getOverrideContextClassloader()</pre> |
| <div class="block">Whether to temporally override the thread's Context Classloader when processing |
| ORM XML documents to avoid deadlock potential with certain Classloader hierarchy |
| configurations. Defaults to false.</div> |
| </li> |
| </ul> |
| <a name="setOverrideContextClassloader(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setOverrideContextClassloader</h4> |
| <pre>public void setOverrideContextClassloader(boolean overrideContextClassloader)</pre> |
| <div class="block">Whether to temporally override the thread's Context Classloader when processing |
| ORM XML documents to avoid deadlock potential with certain Classloader hierarchy |
| configurations. Defaults to false.</div> |
| </li> |
| </ul> |
| <a name="getParseAnnotationsForQueryMode()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getParseAnnotationsForQueryMode</h4> |
| <pre>public boolean getParseAnnotationsForQueryMode()</pre> |
| <div class="block">Whether OpenJPA will scan every persistent class in an XML mapping file for annotations prior to executing a |
| query. In practice this scan is rarely needed, but the option to enable it is present for compatibility with |
| prior releases.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if the annotations should be re-parsed when resolving MetaData in MODE_QUERY.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.2</dd></dl> |
| </li> |
| </ul> |
| <a name="setParseAnnotationsForQueryMode(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setParseAnnotationsForQueryMode</h4> |
| <pre>public void setParseAnnotationsForQueryMode(boolean parseAnnotationsForQueryMode)</pre> |
| <div class="block">Whether OpenJPA will scan every persistent class in an XML mapping file for annotations prior to executing a |
| query. In practice this scan is rarely needed, but the option to enable it is present for compatibility with |
| prior releases.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.2</dd></dl> |
| </li> |
| </ul> |
| <a name="getUseListAttributeForArrays()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUseListAttributeForArrays</h4> |
| <pre>public boolean getUseListAttributeForArrays()</pre> |
| <div class="block">This property can be used to allow OpenJPA to use ListAttributes for all types of Arrays, not just those with the |
| @ PersistentCollection annotation. If the canonical metamodel classes were generated in an early version of |
| OpenJPA (e.g. 2.0.0, 2.0.1, or 2.1.0) it is recommended to set this property to true. If |
| you have generated your metamodel classes on later versions of OpenJPA (e.g. 2.2.0) you may |
| want to have this set to false.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if OpenJPA will use ListAttributes for <b>all</b> arrays, false if OpenJPA will use ListAttributes |
| for <b>only</b> arrays which use the @PersistentCollection annotation.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.2.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setUseListAttributeForArrays(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUseListAttributeForArrays</h4> |
| <pre>public void setUseListAttributeForArrays(boolean useListAttribute)</pre> |
| <div class="block">This property can be used to allow OpenJPA to use ListAttributes for all types of Arrays, not just those with the |
| @PersistentCollection annotation. If the canonical metamodel classes were generated in an early version of |
| OpenJPA (e.g. 2.0.0, 2.0.1, or 2.1.0) it is recommended to set this property to true. If |
| you have generated your metamodel classes on later versions of OpenJPA (e.g. 2.2.0) you may |
| want to have this set to false.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>useListAttribute</code> - whether OpenJPA will use ListAttributes for all arrays.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.2.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getMetaFactoriesAreStrict()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMetaFactoriesAreStrict</h4> |
| <pre>public boolean getMetaFactoriesAreStrict()</pre> |
| <div class="block">Whether the MetaDataFactory and MappingFactory should be set to strict mode. If strict mode is used a |
| MetaDataFactory will only resolve MetaData (no JDBC mappings), and a MappingFactory will only resolve Mapping |
| information.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Whether strict mode should be used.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.2.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setMetaFactoriesAreStrict(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMetaFactoriesAreStrict</h4> |
| <pre>public void setMetaFactoriesAreStrict(boolean metaFactoriesAreStrict)</pre> |
| <div class="block">Set whether MetaDataFactories and MappingFactories will be strictly separate.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>metaFactoriesAreStrict</code> - True if the MetaDataFactory should only process metadata, and the MappingFactory should only process |
| mappings.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.2.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getResetFlushFlagForCascadePersist()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getResetFlushFlagForCascadePersist</h4> |
| <pre>public boolean getResetFlushFlagForCascadePersist()</pre> |
| <div class="block">Whether OpenJPA should reset the internal state (flush flag) when cascading a persist to another |
| Entity. That is, when a flush is performed, OpenJPA keep state to indicate the flush has been |
| performed. In certain cascade persist scenarios the fact that a flush has been performed prior to |
| a cascade persist can cause certain entities to not be written to the database given the prior |
| flush. This property, when set, will cause the flush flag to be reset in cascade scenarios. For more |
| details see JIRA OPENJPA-2051</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.x</dd></dl> |
| </li> |
| </ul> |
| <a name="setResetFlushFlagForCascadePersist(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setResetFlushFlagForCascadePersist</h4> |
| <pre>public void setResetFlushFlagForCascadePersist(boolean b)</pre> |
| <div class="block">Whether OpenJPA should reset the internal state (flush flag) when cascading a persist to another |
| Entity. That is, when a flush is performed, OpenJPA keep state to indicate the flush has been |
| performed. In certain cascade persist scenarios the fact that a flush has been performed prior to |
| a cascade persist can cause certain entities to not be written to the database given the prior |
| flush. This property, when set, will cause the flush flag to be reset in cascade scenarios. For more |
| details see JIRA OPENJPA-2051</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>2.0.x</dd></dl> |
| </li> |
| </ul> |
| <a name="isSingletonLifecycleEventManager()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isSingletonLifecycleEventManager</h4> |
| <pre>public boolean isSingletonLifecycleEventManager()</pre> |
| <div class="block">Returns true if life cycle event manager is a singleton configuration.</div> |
| </li> |
| </ul> |
| <a name="setSingletonLifecycleEventManager(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSingletonLifecycleEventManager</h4> |
| <pre>public void setSingletonLifecycleEventManager(boolean singleton)</pre> |
| <div class="block">This property set whether each EntityManager has its own life cycle event manager. |
| By default, each EntityManager only fires events to the registered listeners to the entities |
| it manages. If the life cycle event manager is a singleton, events will be fired to listeners |
| registered to all instances of EntityManager in the same persistence unit.</div> |
| </li> |
| </ul> |
| <a name="getFilterPCRegistryClasses()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFilterPCRegistryClasses</h4> |
| <pre>public boolean getFilterPCRegistryClasses()</pre> |
| <div class="block">Whether the metadata processor should filter classes dispatched by the PCRegistry listener system.</div> |
| </li> |
| </ul> |
| <a name="setFilterPCRegistryClasses(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFilterPCRegistryClasses</h4> |
| <pre>public void setFilterPCRegistryClasses(boolean bool)</pre> |
| <div class="block">Whether the metadata processor should filter classes dispatched by the PCRegistry listener system.</div> |
| </li> |
| </ul> |
| <a name="getReturnNullOnEmptyAggregateResult()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getReturnNullOnEmptyAggregateResult</h4> |
| <pre>public boolean getReturnNullOnEmptyAggregateResult()</pre> |
| <div class="block">This property is used to specify whether the aggregate query functions |
| SUM, AVG, MAX, and MIN return null if there is no query result. This will occur |
| if no rows are returned for the specified query predicate. The default is |
| false, meaning that 0 will be returned for functions operating on numeric |
| data. |
| |
| In compliance with the JPA specification, the default value is true.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>true if the result of an aggregate with an empty query result returns null.</dd><dt><span class="strong">Since:</span></dt> |
| <dd></dd></dl> |
| </li> |
| </ul> |
| <a name="setReturnNullOnAggregateResult(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setReturnNullOnAggregateResult</h4> |
| <pre>public void setReturnNullOnAggregateResult(boolean returnNullOnEmptyAggregateResult)</pre> |
| <div class="block">This property is used to specify whether the aggregate query functions |
| SUM, AVG, MAX, and MIN return null if there is no query result. This will occur |
| if no rows are returned for the specified query predicate. The default is |
| false, meaning that 0 will be returned for functions operating on numeric |
| data. |
| |
| In compliance with the JPA specification, the default value is true.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>returnNullOnAggregate</code> - whether OpenJPA will return null for aggregate |
| expressions when the query result is empty.</dd><dt><span class="strong">Since:</span></dt> |
| <dd></dd></dl> |
| </li> |
| </ul> |
| <a name="getCacheNonDefaultFetchPlanQueries()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCacheNonDefaultFetchPlanQueries</h4> |
| <pre>public boolean getCacheNonDefaultFetchPlanQueries()</pre> |
| <div class="block">Whether the SQL generated for queries executed with a modified fetch plan are cached.</div> |
| </li> |
| </ul> |
| <a name="setCacheNonDefaultFetchPlanQueries(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setCacheNonDefaultFetchPlanQueries</h4> |
| <pre>public void setCacheNonDefaultFetchPlanQueries(boolean bool)</pre> |
| <div class="block">Whether the SQL generated for queries executed with a modified fetch plan are cached.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Compatibility.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/openjpa/conf/CallbackOptions.html" title="class in org.apache.openjpa.conf"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/openjpa/conf/DetachOptions.html" title="class in org.apache.openjpa.conf"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/openjpa/conf/Compatibility.html" target="_top">Frames</a></li> |
| <li><a href="Compatibility.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2006–2017 <a href="http://www.apache.org">Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |