java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.cache.CacheMetadata

public class CacheMetadata extends ORMetadata
Object to hold onto cache metadata. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
Since:
TopLink 11g
  • Field Details

    • m_alwaysRefresh

      protected Boolean m_alwaysRefresh
    • m_disableHits

      protected Boolean m_disableHits
    • m_isolation

      protected String m_isolation
    • m_refreshOnlyIfNewer

      protected Boolean m_refreshOnlyIfNewer
    • m_coordinationType

      protected String m_coordinationType
    • m_databaseChangeNotificationType

      protected String m_databaseChangeNotificationType
    • m_type

      protected String m_type
    • m_expiry

      protected Integer m_expiry
    • m_size

      protected Integer m_size
    • m_expiryTimeOfDay

      protected TimeOfDayMetadata m_expiryTimeOfDay
  • Constructor Details

    • CacheMetadata

      public CacheMetadata()
      INTERNAL: Used for XML loading.
    • CacheMetadata

      public CacheMetadata(MetadataAnnotation cache, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Specified by:
      equals in class ORMetadata
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAlwaysRefresh

      public Boolean getAlwaysRefresh()
      INTERNAL: Used for OX mapping.
    • getCoordinationType

      public String getCoordinationType()
      INTERNAL: Used for OX mapping.
    • getDisableHits

      public Boolean getDisableHits()
      INTERNAL: Used for OX mapping.
    • getExpiry

      public Integer getExpiry()
      INTERNAL: Used for OX mapping.
    • getExpiryTimeOfDay

      public TimeOfDayMetadata getExpiryTimeOfDay()
      INTERNAL: Used for OX mapping.
    • getRefreshOnlyIfNewer

      public Boolean getRefreshOnlyIfNewer()
      INTERNAL: Used for OX mapping.
    • getIsolation

      public String getIsolation()
    • getSize

      public Integer getSize()
      INTERNAL: Used for OX mapping.
    • getType

      public String getType()
      INTERNAL: Used for OX mapping.
    • process

      public void process(MetadataDescriptor descriptor, MetadataClass javaClass)
      INTERNAL:
    • setAlwaysRefresh

      public void setAlwaysRefresh(Boolean alwaysRefresh)
      INTERNAL: Used for OX mapping
    • setCoordinationType

      public void setCoordinationType(String coordinationType)
      INTERNAL: Used for OX mapping.
    • getDatabaseChangeNotificationType

      public String getDatabaseChangeNotificationType()
      INTERNAL: Used for OX mapping.
    • setDatabaseChangeNotificationType

      public void setDatabaseChangeNotificationType(String databaseChangeNotificationType)
      INTERNAL: Used for OX mapping.
    • setDisableHits

      public void setDisableHits(Boolean disableHits)
      INTERNAL: Used for OX mapping.
    • setExpiry

      public void setExpiry(Integer expiry)
      INTERNAL: Used for OX mapping.
    • setExpiryTimeOfDay

      public void setExpiryTimeOfDay(TimeOfDayMetadata expiryTimeOfDay)
      INTERNAL: Used for OX mapping.
    • setRefreshOnlyIfNewer

      public void setRefreshOnlyIfNewer(Boolean refreshOnlyIfNewer)
      INTERNAL: Used for OX mapping.
    • setIsolation

      public void setIsolation(String isolation)
    • setSize

      public void setSize(Integer size)
      INTERNAL: Used for OX mapping.
    • setType

      public void setType(String type)
      INTERNAL: Used for OX mapping.