|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.conf.Compatibility
public class Compatibility
Struct encompassing backwards-compatibility options.
Field Summary | |
---|---|
static int |
JPQL_EXTENDED
Allow non-compliant extensions of JPQL. |
static int |
JPQL_STRICT
If a JPQL statement is not compliant with the JPA specification, fail to parse it. |
static int |
JPQL_WARN
If a JPQL statement is not compliant with the JPA specification, warn the first time that statement is parsed. |
Constructor Summary | |
---|---|
Compatibility()
|
Method Summary | |
---|---|
boolean |
getCloseOnManagedCommit()
Whether to close the broker when the managed transaction commits. |
boolean |
getCopyObjectIds()
Whether to copy identity objects before returning them to client code. |
boolean |
getFlushBeforeDetach()
Whether OpenJPA should flush changes before detaching or serializing an entity. |
int |
getJPQL()
Whether or not JPQL extensions are allowed. |
boolean |
getNonOptimisticVersionCheck()
Whether or not to perform a version check on instances being updated in a datastore transaction. |
boolean |
getOverrideContextClassloader()
Whether to temporally override the thread's Context Classloader when processing ORM XML documents to avoid deadlock potential with certain Classloader hierarchy configurations. |
boolean |
getQuotedNumbersInQueries()
Whether to interpret quoted numbers in query strings as numbers. |
boolean |
getReloadOnDetach()
Whether OpenJPA should attempt to load fields when the DetachState option is set to loaded. |
boolean |
getReorderMetaDataResolution()
Whether OpenJPA should reorder entities in MetaDataRepository.processBuffer() to ensure that the MetaData for entities with foreign keys in their identity are processed after the entities they depend on. |
boolean |
getResetFlushFlagForCascadePersist()
Whether OpenJPA should reset the internal state (flush flag) when cascading a persist to another Entity. |
boolean |
getStoreMapCollectionInEntityAsBlob()
Whether if map and collection in entity are stored as blob. |
boolean |
getStrictIdentityValues()
Whether to require exact identity value types when creating object ids from a class and value. |
boolean |
getValidateFalseReturnsHollow()
Whether to return hollow instances to broker lookups with a validate parameter of false. |
boolean |
getValidateTrueChecksStore()
Whether to check the datastore for the existence of a nontransactional cached object in broker lookups with a validate parameter
of true. |
void |
setCloseOnManagedCommit(boolean close)
Whether to close the broker when the managed transaction commits. |
void |
setCopyObjectIds(boolean copy)
Whether to copy identity objects before returning them to client code. |
void |
setFlushBeforeDetach(boolean beforeDetach)
Whether OpenJPA should flush changes before detaching or serializing an entity. |
void |
setJPQL(String jpql)
Whether or not JPQL extensions are allowed. |
void |
setNonOptimisticVersionCheck(boolean nonOptimisticVersionCheck)
Whether or not to perform a version check on instances being updated in a datastore transaction. |
void |
setOverrideContextClassloader(boolean overrideContextClassloader)
Whether to temporally override the thread's Context Classloader when processing ORM XML documents to avoid deadlock potential with certain Classloader hierarchy configurations. |
void |
setQuotedNumbersInQueries(boolean quotedNumbers)
Whether to interpret quoted numbers in query strings as numbers. |
void |
setReloadOnDetach(boolean reloadOnDetach)
Whether OpenJPA should attempt to load fields when the DetachState option is set to loaded. |
void |
setReorderMetaDataResolution(boolean reorderProcessBuffer)
Whether OpenJPA should reorder entities in MetaDataRepository.processBuffer() to ensure that the MetaData for entities with foreign keys in their identity are processed after the entities they depend on. |
void |
setResetFlushFlagForCascadePersist(boolean b)
Whether OpenJPA should reset the internal state (flush flag) when cascading a persist to another Entity. |
void |
setStoreMapCollectionInEntityAsBlob(boolean storeAsBlob)
Whether if map and collection in entity are stored as blob. |
void |
setStrictIdentityValues(boolean strictVals)
Whether to require exact identity value types when creating object ids from a class and value. |
void |
setValidateFalseReturnsHollow(boolean hollow)
Whether to return hollow instances to broker lookups with a validate parameter of false. |
void |
setValidateTrueChecksStore(boolean check)
Whether to check the datastore for the existence of a nontransactional cached object in broker lookups with a validate parameter
of true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int JPQL_STRICT
public static final int JPQL_WARN
public static final int JPQL_EXTENDED
Constructor Detail |
---|
public Compatibility()
Method Detail |
---|
public boolean getStrictIdentityValues()
public void setStrictIdentityValues(boolean strictVals)
public boolean getQuotedNumbersInQueries()
public void setQuotedNumbersInQueries(boolean quotedNumbers)
public boolean getValidateFalseReturnsHollow()
validate
parameter of false. OpenJPA versions prior to
0.4.0 did not return hollow instances without special configuration
(the ObjectLookupMode
). Beginning with 0.4.0, hollow
objects are the default.
public void setValidateFalseReturnsHollow(boolean hollow)
validate
parameter of false. OpenJPA versions prior to
0.4.0 did not return hollow instances without special configuration
(the ObjectLookupMode
). Beginning with 0.4.0, hollow
objects are the default.
public boolean getValidateTrueChecksStore()
validate
parameter
of true. OpenJPA versions prior to 0.4.0 checked the datastore.
public void setValidateTrueChecksStore(boolean check)
validate
parameter
of true. OpenJPA versions prior to 0.4.0 checked the datastore.
public boolean getCopyObjectIds()
public void setCopyObjectIds(boolean copy)
public boolean getCloseOnManagedCommit()
public void setCloseOnManagedCommit(boolean close)
public void setNonOptimisticVersionCheck(boolean nonOptimisticVersionCheck)
public boolean getNonOptimisticVersionCheck()
public int getJPQL()
JPQL_STRICT
.
JPQL_WARN
,
JPQL_STRICT
,
JPQL_EXTENDED
public void setJPQL(String jpql)
JPQL_WARN
,
JPQL_STRICT
,
JPQL_EXTENDED
public boolean getStoreMapCollectionInEntityAsBlob()
false
.
public void setStoreMapCollectionInEntityAsBlob(boolean storeAsBlob)
false
.
public boolean getFlushBeforeDetach()
Prior to version 1.0.3 and 1.2.0 changes were always flushed.
public void setFlushBeforeDetach(boolean beforeDetach)
Prior to version 1.0.3 and 1.2.0 changes were always flushed.
beforeDetach
- if true changes will be flushed before detaching or
serializing an entity.public boolean getReorderMetaDataResolution()
public void setReorderMetaDataResolution(boolean reorderProcessBuffer)
reorderProcessBuffer
- true if the reordering should be performed, false if not.public boolean getReloadOnDetach()
public void setReloadOnDetach(boolean reloadOnDetach)
reloadOnDetach
- the _reloadOnDetach to setpublic boolean getOverrideContextClassloader()
public void setOverrideContextClassloader(boolean overrideContextClassloader)
public boolean getResetFlushFlagForCascadePersist()
public void setResetFlushFlagForCascadePersist(boolean b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |