Top Description Methods
org.hibernate.cache

public Interface OptimisticCacheSource

Known Direct Subinterfaces
org.hibernate.persister.entity.EntityPersister
Known Direct Implementers
org.hibernate.cache.impl.bridge.OptimisticCacheSourceAdapter
Imports
java.util.Comparator

Contract for sources of optimistically lockable data sent to the second level cache.

Note currently org.hibernate.persister.entity.EntityPersisters are the only viable source.

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 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.

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.