public class

OptimisticCacheSourceAdapter

extends Object
implements OptimisticCacheSource
java.lang.Object
   ↳ org.hibernate.cache.impl.bridge.OptimisticCacheSourceAdapter

Class Overview

Summary

Public Constructors
OptimisticCacheSourceAdapter(CacheDataDescription dataDescription)
Public Methods
Comparator getVersionComparator()
Get the comparator used to compare two different version values.
boolean isVersioned()
Is the data to be cached considered versioned?

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

[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.cache.OptimisticCacheSource

Public Constructors

public OptimisticCacheSourceAdapter (CacheDataDescription dataDescription)

Public Methods

public Comparator getVersionComparator ()

Get the comparator used to compare two different version values.

May return null if isVersioned() returns false.

public boolean isVersioned ()

Is the data to be cached considered versioned?

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

Returns
  • True if the data is versioned; false otherwise.