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.
  • Field Details

    • fieldMap

      private static Map<String,Field> fieldMap
    • defaults

      private FrequentlyAccessedProperties defaults
    • manageRelationships

      private Boolean manageRelationships
    • reachabilityAtCommit

      private Boolean reachabilityAtCommit
    • detachOnClose

      private Boolean detachOnClose
    • detachAllOnCommit

      private Boolean detachAllOnCommit
    • level2CacheStoreMode

      private String level2CacheStoreMode
    • level2CacheRetrieveMode

      private String level2CacheRetrieveMode
    • serialiseRead

      private Boolean serialiseRead
    • optimisticLocking

      private Boolean optimisticLocking
  • Constructor Details

    • FrequentlyAccessedProperties

      public FrequentlyAccessedProperties()
  • Method Details

    • 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 name
      value - 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()
    • addField

      private static void addField(String propertyName, String fieldName) throws NoSuchFieldException, SecurityException
      Throws:
      NoSuchFieldException
      SecurityException