Top Description Fields Constructors Methods
org.hibernate.cache.impl

public Class CacheDataDescriptionImpl

extends Object
implements CacheDataDescription
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.CacheDataDescription
Imports
java.util.Comparator, org.hibernate.cache.CacheDataDescription, org.hibernate.mapping.PersistentClass, .Collection, org.hibernate.type.VersionType

Describes attributes regarding the type of data to be cached.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final boolean
private final Comparator<T>
private final boolean

Constructor Summary

AccessConstructor and Description
public
CacheDataDescriptionImpl(boolean mutable, boolean versioned, Comparator<T> versionComparator)

Method Summary

Modifier and TypeMethod and Description
public static CacheDataDescriptionImpl
public static CacheDataDescriptionImpl
public Comparator<T>
getVersionComparator()

Implements org.hibernate.cache.CacheDataDescription.getVersionComparator.

Get the comparator used to compare two different version values.
public boolean
isMutable()

Implements org.hibernate.cache.CacheDataDescription.isMutable.

Is the data marked as being mutable?
public boolean
isVersioned()

Implements org.hibernate.cache.CacheDataDescription.isVersioned.

Is the data to be cached considered versioned?
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mutableback to summary
private final boolean mutable
versionComparatorback to summary
private final Comparator<T> versionComparator
versionedback to summary
private final boolean versioned

Constructor Detail

CacheDataDescriptionImplback to summary
public CacheDataDescriptionImpl(boolean mutable, boolean versioned, Comparator<T> versionComparator)

Method Detail

decodeback to summary
public static CacheDataDescriptionImpl decode(PersistentClass model)
decodeback to summary
public static CacheDataDescriptionImpl decode(Collection model)
getVersionComparatorback to summary
public Comparator<T> getVersionComparator()

Implements org.hibernate.cache.CacheDataDescription.getVersionComparator.

Doc from org.hibernate.cache.CacheDataDescription.getVersionComparator.

Get the comparator used to compare two different version values.

May return null if isVersioned() returns false.

isMutableback to summary
public boolean isMutable()

Implements org.hibernate.cache.CacheDataDescription.isMutable.

Doc from org.hibernate.cache.CacheDataDescription.isMutable.

Is the data marked as being mutable?

Returns:boolean

True if the data is mutable; false otherwise.

isVersionedback to summary
public boolean isVersioned()

Implements org.hibernate.cache.CacheDataDescription.isVersioned.

Doc from org.hibernate.cache.CacheDataDescription.isVersioned.

Is the data to be cached considered versioned?

If true, it is illegal for getVersionComparator to return null.

Returns:boolean

True if the data is versioned; false otherwise.