Top Description Methods
org.hibernate.cache

public Interface CacheDataDescription

Known Direct Implementers
org.hibernate.cache.impl.CacheDataDescriptionImpl
Imports
java.util.Comparator

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

Method Summary

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

Get the comparator used to compare two different version values.

public boolean

Returns:

True if the data is mutable; false otherwise.
isMutable
()

Is the data marked as being mutable?

public boolean

Returns:

True if the data is versioned; false otherwise.
isVersioned
()

Is the data to be cached considered versioned?

Method Detail

getVersionComparatorback to summary
public Comparator<T> getVersionComparator()

Get the comparator used to compare two different version values.

May return null if isVersioned() returns false.

isMutableback to summary
public boolean isMutable()

Is the data marked as being mutable?

Returns:boolean

True if the data is mutable; false otherwise.

isVersionedback to summary
public boolean 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.