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(PersistentClass 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
public boolean isVersioned()
CacheDataDescription
CacheDataDescription.getVersionComparator()
to return
null.isVersioned
in interface CacheDataDescription
public Comparator getVersionComparator()
CacheDataDescription
CacheDataDescription.isVersioned()
returns false.getVersionComparator
in interface CacheDataDescription
public static CacheDataDescriptionImpl decode(PersistentClass model)
public static CacheDataDescriptionImpl decode(Collection model)
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved