public class CacheDataDescriptionImpl extends Object implements CacheDataDescription
| Constructor and Description | 
|---|
| CacheDataDescriptionImpl(boolean mutable,
                        boolean versioned,
                        Comparator versionComparator)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(EntityBinding model)Builds a CacheDataDescriptionImpl from the mapping model of an entity class (using the new metamodel code). | 
| static CacheDataDescriptionImpl | decode(PersistentClass model)Builds a CacheDataDescriptionImpl from the mapping model of an entity class. | 
| static CacheDataDescriptionImpl | decode(PluralAttributeBinding model)Builds a CacheDataDescriptionImpl from the mapping model of a collection (using the new metamodel code). | 
| 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 forCacheDataDescription.getVersionComparator()to returnnull. | 
public CacheDataDescriptionImpl(boolean mutable,
                        boolean versioned,
                        Comparator versionComparator)
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).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.isVersioned in interface CacheDataDescriptiontrue if the data is versioned; false otherwise.public Comparator getVersionComparator()
CacheDataDescriptionnull if
 CacheDataDescription.isVersioned() returns false.getVersionComparator in interface CacheDataDescriptionnullpublic static CacheDataDescriptionImpl decode(PersistentClass model)
model - The mapping model.public static CacheDataDescriptionImpl decode(EntityBinding model)
model - The mapping model.public static CacheDataDescriptionImpl decode(Collection model)
model - The mapping model.public static CacheDataDescriptionImpl decode(PluralAttributeBinding model)
model - The mapping model.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.