Class 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
    Author:
    Guy Pelletier
    • Field Detail

      • 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
    • Constructor Detail

      • CacheMetadata

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

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