public class CacheDataDescriptionImpl extends Object implements CacheDataDescription
Constructor and Description |
---|
CacheDataDescriptionImpl(boolean mutable,
boolean versioned,
Comparator versionComparator) |
Modifier and Type | Method and Description |
---|---|
static CacheDataDescriptionImpl |
decode(Collection model) |
static CacheDataDescriptionImpl |
decode(EntityBinding model) |
static CacheDataDescriptionImpl |
decode(EntityPersister persister) |
static CacheDataDescriptionImpl |
decode(PersistentClass model) |
static CacheDataDescriptionImpl |
decode(PluralAttributeBinding model) |
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 . |
public CacheDataDescriptionImpl(boolean mutable, boolean versioned, Comparator versionComparator)
public boolean isMutable()
CacheDataDescription
isMutable
in interface CacheDataDescription
true
if the data is mutable; false
otherwise.public boolean isVersioned()
CacheDataDescription
true
, it is illegal for CacheDataDescription.getVersionComparator()
to return null
.isVersioned
in interface CacheDataDescription
true
if the data is versioned; false
otherwise.public Comparator getVersionComparator()
CacheDataDescription
null
if
CacheDataDescription.isVersioned()
returns false.getVersionComparator
in interface CacheDataDescription
null
public static CacheDataDescriptionImpl decode(PersistentClass model)
public static CacheDataDescriptionImpl decode(EntityBinding model)
public static CacheDataDescriptionImpl decode(Collection model)
public static CacheDataDescriptionImpl decode(PluralAttributeBinding model)
public static CacheDataDescriptionImpl decode(EntityPersister persister)
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.