Package org.hibernate.cache.impl
Class CacheDataDescriptionImpl
java.lang.Object
org.hibernate.cache.impl.CacheDataDescriptionImpl
- All Implemented Interfaces:
CacheDataDescription
-
Constructor Summary
ConstructorsConstructorDescriptionCacheDataDescriptionImpl(boolean mutable, boolean versioned, Comparator versionComparator) -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheDataDescriptionImpldecode(Collection model) static CacheDataDescriptionImpldecode(PersistentClass model) Get the comparator used to compare two different version values.booleanIs the data marked as being mutable?booleanIs the data to be cached considered versioned?
-
Constructor Details
-
CacheDataDescriptionImpl
-
-
Method Details
-
isMutable
public boolean isMutable()Description copied from interface:CacheDataDescriptionIs the data marked as being mutable?- Specified by:
isMutablein interfaceCacheDataDescription- Returns:
- True if the data is mutable; false otherwise.
-
isVersioned
public boolean isVersioned()Description copied from interface:CacheDataDescriptionIs the data to be cached considered versioned? If true, it is illegal forCacheDataDescription.getVersionComparator()to return null.- Specified by:
isVersionedin interfaceCacheDataDescription- Returns:
- True if the data is versioned; false otherwise.
-
getVersionComparator
Description copied from interface:CacheDataDescriptionGet the comparator used to compare two different version values. May return null ifCacheDataDescription.isVersioned()returns false.- Specified by:
getVersionComparatorin interfaceCacheDataDescription- Returns:
-
decode
-
decode
-