Package org.hibernate.cache.impl.bridge
Class OptimisticCacheSourceAdapter
java.lang.Object
org.hibernate.cache.impl.bridge.OptimisticCacheSourceAdapter
- All Implemented Interfaces:
OptimisticCacheSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the comparator used to compare two different version values.booleanIs the data to be cached considered versioned?
-
Constructor Details
-
OptimisticCacheSourceAdapter
-
-
Method Details
-
isVersioned
public boolean isVersioned()Description copied from interface:OptimisticCacheSourceIs the data to be cached considered versioned? If true, it is illegal forOptimisticCacheSource.getVersionComparator()to return null.- Specified by:
isVersionedin interfaceOptimisticCacheSource- Returns:
- True if the data is versioned; false otherwise.
-
getVersionComparator
Description copied from interface:OptimisticCacheSourceGet the comparator used to compare two different version values. May return null ifOptimisticCacheSource.isVersioned()returns false.- Specified by:
getVersionComparatorin interfaceOptimisticCacheSource- Returns:
-