public interface OptimisticCacheSource
Contract for sources of optimistically lockable data sent to the second level
cache.
<p/>
Note currently EntityPersister
s are
the only viable source.
Modifier and Type | Method and Description |
---|---|
Comparator |
getVersionComparator()
Get the comparator used to compare two different version values.
|
boolean |
isVersioned()
Is the data to be cached considered versioned?
<p/>
If true, it is illegal for
getVersionComparator() to return
null. |
boolean isVersioned()
Is the data to be cached considered versioned?
<p/>
If true, it is illegal for getVersionComparator()
to return
null.
Comparator getVersionComparator()
Get the comparator used to compare two different version values.
<p/>
May return null <b>if</b> isVersioned()
returns false.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.