public class CacheDataDescriptionImpl extends java.lang.Object implements CacheDataDescription
| Constructor and Description |
|---|
CacheDataDescriptionImpl(boolean mutable,
boolean versioned,
java.util.Comparator versionComparator,
Type keyType)
Constructs a CacheDataDescriptionImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
static CacheDataDescriptionImpl |
decode(Collection model)
Builds a CacheDataDescriptionImpl from the mapping model of a collection
|
static CacheDataDescriptionImpl |
decode(PersistentClass model)
Builds a CacheDataDescriptionImpl from the mapping model of an entity class.
|
Type |
getKeyType() |
java.util.Comparator |
getVersionComparator()
Get the comparator used to compare two different version values.
|
boolean |
isMutable()
Is the data marked as being mutable?
|
boolean |
isVersioned()
Is the data to be cached considered versioned?
If
true, it is illegal for CacheDataDescription.getVersionComparator() to return null
or an instance of IncomparableComparator. |
public CacheDataDescriptionImpl(boolean mutable,
boolean versioned,
java.util.Comparator versionComparator,
Type keyType)
decode(org.hibernate.mapping.PersistentClass) methods rather than direct instantiation.mutable - Is the described data mutable?versioned - Is the described data versioned?versionComparator - The described data's version value comparator (if versioned).keyType - public boolean isMutable()
CacheDataDescriptionisMutable in interface CacheDataDescriptiontrue if the data is mutable; false otherwise.public boolean isVersioned()
CacheDataDescriptiontrue, it is illegal for CacheDataDescription.getVersionComparator() to return null
or an instance of IncomparableComparator.isVersioned in interface CacheDataDescriptiontrue if the data is versioned; false otherwise.public java.util.Comparator getVersionComparator()
CacheDataDescriptionnull if
CacheDataDescription.isVersioned() returns false.getVersionComparator in interface CacheDataDescriptionnullpublic Type getKeyType()
getKeyType in interface CacheDataDescriptionnull if the natural comparison
(Object.hashCode() and Object.equals(Object) methods should be used.public static CacheDataDescriptionImpl decode(PersistentClass model)
model - The mapping model.public static CacheDataDescriptionImpl decode(Collection model)
model - The mapping model.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.