Package org.datanucleus.properties
Class FrequentlyAccessedProperties
- java.lang.Object
-
- org.datanucleus.properties.FrequentlyAccessedProperties
-
public class FrequentlyAccessedProperties extends Object
Class for providing faster access to properties that are rarely set but often read.
-
-
Constructor Summary
Constructors Constructor Description FrequentlyAccessedProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetDetachAllOnCommit()BooleangetDetachOnClose()StringgetLevel2CacheRetrieveMode()StringgetLevel2CacheStoreMode()BooleangetManageRelationships()BooleangetOptimisticLocking()BooleangetReachabilityAtCommit()BooleangetSerialiseRead()voidsetDefaults(FrequentlyAccessedProperties defaults)Set default properties that are read when property is not defined in this instancevoidsetProperty(String property, Object value)Tries to set the property value for any of the "frequent" properties.
-
-
-
Method Detail
-
setDefaults
public void setDefaults(FrequentlyAccessedProperties defaults)
Set default properties that are read when property is not defined in this instance- Parameters:
defaults- Default properties
-
setProperty
public void setProperty(String property, Object value)
Tries to set the property value for any of the "frequent" properties.- Parameters:
property- prop namevalue- The value of the property
-
getManageRelationships
public Boolean getManageRelationships()
-
getReachabilityAtCommit
public Boolean getReachabilityAtCommit()
-
getDetachOnClose
public Boolean getDetachOnClose()
-
getDetachAllOnCommit
public Boolean getDetachAllOnCommit()
-
getLevel2CacheStoreMode
public String getLevel2CacheStoreMode()
-
getLevel2CacheRetrieveMode
public String getLevel2CacheRetrieveMode()
-
getSerialiseRead
public Boolean getSerialiseRead()
-
getOptimisticLocking
public Boolean getOptimisticLocking()
-
-