Module org.eclipse.persistence.jpa
Class CacheMetadata
- 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
- Author:
- Guy Pelletier
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanm_alwaysRefreshprotected Stringm_coordinationTypeprotected Stringm_databaseChangeNotificationTypeprotected Booleanm_disableHitsprotected Integerm_expiryprotected TimeOfDayMetadatam_expiryTimeOfDayprotected Stringm_isolationprotected Booleanm_refreshOnlyIfNewerprotected Integerm_sizeprotected Stringm_type-
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
-
Constructor Summary
Constructors Constructor Description CacheMetadata()INTERNAL: Used for XML loading.CacheMetadata(MetadataAnnotation cache, MetadataAccessor accessor)INTERNAL: Used for annotation loading.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)INTERNAL:BooleangetAlwaysRefresh()INTERNAL: Used for OX mapping.StringgetCoordinationType()INTERNAL: Used for OX mapping.StringgetDatabaseChangeNotificationType()INTERNAL: Used for OX mapping.BooleangetDisableHits()INTERNAL: Used for OX mapping.IntegergetExpiry()INTERNAL: Used for OX mapping.TimeOfDayMetadatagetExpiryTimeOfDay()INTERNAL: Used for OX mapping.StringgetIsolation()BooleangetRefreshOnlyIfNewer()INTERNAL: Used for OX mapping.IntegergetSize()INTERNAL: Used for OX mapping.StringgetType()INTERNAL: Used for OX mapping.inthashCode()voidprocess(MetadataDescriptor descriptor, MetadataClass javaClass)INTERNAL:voidsetAlwaysRefresh(Boolean alwaysRefresh)INTERNAL: Used for OX mappingvoidsetCoordinationType(String coordinationType)INTERNAL: Used for OX mapping.voidsetDatabaseChangeNotificationType(String databaseChangeNotificationType)INTERNAL: Used for OX mapping.voidsetDisableHits(Boolean disableHits)INTERNAL: Used for OX mapping.voidsetExpiry(Integer expiry)INTERNAL: Used for OX mapping.voidsetExpiryTimeOfDay(TimeOfDayMetadata expiryTimeOfDay)INTERNAL: Used for OX mapping.voidsetIsolation(String isolation)voidsetRefreshOnlyIfNewer(Boolean refreshOnlyIfNewer)INTERNAL: Used for OX mapping.voidsetSize(Integer size)INTERNAL: Used for OX mapping.voidsetType(String type)INTERNAL: Used for OX mapping.-
Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getIdentifier, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
-
-
-
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
-
m_size
protected Integer m_size
-
m_expiryTimeOfDay
protected TimeOfDayMetadata m_expiryTimeOfDay
-
-
Constructor Detail
-
CacheMetadata
public CacheMetadata()
INTERNAL: Used for XML loading.
-
CacheMetadata
public CacheMetadata(MetadataAnnotation cache, MetadataAccessor accessor)
INTERNAL: Used for annotation loading.
-
-
Method Detail
-
equals
public boolean equals(Object objectToCompare)
INTERNAL:- Specified by:
equalsin classORMetadata
-
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.
-
-