public class

CacheDataDescriptionImpl

extends Object
implements CacheDataDescription
java.lang.Object
   ↳ org.hibernate.cache.impl.CacheDataDescriptionImpl

Class Overview

Summary

Public Constructors
CacheDataDescriptionImpl(boolean mutable, boolean versioned, Comparator versionComparator)
Public Methods
static CacheDataDescriptionImpl decode(Collection model)
static CacheDataDescriptionImpl decode(PersistentClass model)
Comparator getVersionComparator()
Get the comparator used to compare two different version values.
boolean isMutable()
Is the data marked as being mutable?
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.CacheDataDescription

Public Constructors

public CacheDataDescriptionImpl (boolean mutable, boolean versioned, Comparator versionComparator)

Public Methods

public static CacheDataDescriptionImpl decode (Collection model)

public static CacheDataDescriptionImpl decode (PersistentClass model)

public Comparator getVersionComparator ()

Get the comparator used to compare two different version values.

May return null if isVersioned() returns false.

public boolean isMutable ()

Is the data marked as being mutable?

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

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.