Top Description Methods
org.hibernate.cache.spi.entry

public Interface CacheEntry

extends Serializable
Known Direct Implementers
org.hibernate.cache.spi.entry.ReferenceCacheEntryImpl, org.hibernate.cache.spi.entry.StandardCacheEntryImpl
Imports
java.io.Serializable

A cached instance of a persistent class
Authors
Gavin King, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Serializable[]

Returns:

The disassembled state
getDisassembledState
()

Get the underlying disassembled state todo : this was added to support initializing an entity's EntityEntry snapshot during reattach; this should be refactored to instead expose a method to assemble an EntityEntry based on this state for return.

public String

Returns:

The entry's exact entity type.
getSubclass
()

Hibernate stores all entries pertaining to a given entity hierarchy in a single region.

public Object

Returns:

The version of the entity represented by this entry
getVersion
()

Retrieves the version (optimistic locking) associated with this cache entry.

public boolean

Returns:

true/false
isReferenceEntry
()

Does this entry represent a direct entity reference (rather than disassembled state)?

Method Detail

getDisassembledStateback to summary
public Serializable[] getDisassembledState()

Get the underlying disassembled state todo : this was added to support initializing an entity's EntityEntry snapshot during reattach; this should be refactored to instead expose a method to assemble an EntityEntry based on this state for return.

Returns:Serializable[]

The disassembled state

getSubclassback to summary
public String getSubclass()

Hibernate stores all entries pertaining to a given entity hierarchy in a single region. This attribute tells us the specific entity type represented by the cached data.

Returns:String

The entry's exact entity type.

getVersionback to summary
public Object getVersion()

Retrieves the version (optimistic locking) associated with this cache entry.

Returns:Object

The version of the entity represented by this entry

isReferenceEntryback to summary
public boolean isReferenceEntry()

Does this entry represent a direct entity reference (rather than disassembled state)?

Returns:boolean

true/false