Package org.datanucleus.properties
Class FrequentlyAccessedProperties
java.lang.Object
org.datanucleus.properties.FrequentlyAccessedProperties
Class for providing faster access to properties that are rarely set but often read.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
void
setDefaults
(FrequentlyAccessedProperties defaults) Set default properties that are read when property is not defined in this instancevoid
setProperty
(String property, Object value) Tries to set the property value for any of the "frequent" properties.
-
Field Details
-
fieldMap
-
defaults
-
manageRelationships
-
reachabilityAtCommit
-
detachOnClose
-
detachAllOnCommit
-
level2CacheStoreMode
-
level2CacheRetrieveMode
-
serialiseRead
-
optimisticLocking
-
-
Constructor Details
-
FrequentlyAccessedProperties
public FrequentlyAccessedProperties()
-
-
Method Details
-
setDefaults
Set default properties that are read when property is not defined in this instance- Parameters:
defaults
- Default properties
-
setProperty
Tries to set the property value for any of the "frequent" properties.- Parameters:
property
- prop namevalue
- The value of the property
-
getManageRelationships
-
getReachabilityAtCommit
-
getDetachOnClose
-
getDetachAllOnCommit
-
getLevel2CacheStoreMode
-
getLevel2CacheRetrieveMode
-
getSerialiseRead
-
getOptimisticLocking
-
addField
private static void addField(String propertyName, String fieldName) throws NoSuchFieldException, SecurityException
-