org.hibernate.cache.internal
Class CacheDataDescriptionImpl
java.lang.Object
org.hibernate.cache.internal.CacheDataDescriptionImpl
- All Implemented Interfaces:
- CacheDataDescription
public class CacheDataDescriptionImpl
- extends Object
- implements CacheDataDescription
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheDataDescriptionImpl
public CacheDataDescriptionImpl(boolean mutable,
boolean versioned,
Comparator versionComparator)
isMutable
public boolean isMutable()
- Description copied from interface:
CacheDataDescription
- Is the data marked as being mutable?
- Specified by:
isMutable
in interface CacheDataDescription
- Returns:
true
if the data is mutable; false
otherwise.
isVersioned
public boolean isVersioned()
- Description copied from interface:
CacheDataDescription
- Is the data to be cached considered versioned?
If
true
, it is illegal for CacheDataDescription.getVersionComparator()
to return null
.
- Specified by:
isVersioned
in interface CacheDataDescription
- Returns:
true
if the data is versioned; false
otherwise.
getVersionComparator
public Comparator getVersionComparator()
- Description copied from interface:
CacheDataDescription
- Get the comparator used to compare two different version values. May return
null
if
CacheDataDescription.isVersioned()
returns false.
- Specified by:
getVersionComparator
in interface CacheDataDescription
- Returns:
- The comparator for versions, or
null
decode
public static CacheDataDescriptionImpl decode(PersistentClass model)
decode
public static CacheDataDescriptionImpl decode(EntityBinding model)
decode
public static CacheDataDescriptionImpl decode(Collection model)
decode
public static CacheDataDescriptionImpl decode(PluralAttributeBinding model)
decode
public static CacheDataDescriptionImpl decode(EntityPersister persister)
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.