Package org.hibernate.cache.spi.entry
Interface CacheEntry
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ReferenceCacheEntryImpl
,StandardCacheEntryImpl
public interface CacheEntry extends java.io.Serializable
A cached instance of a persistent class
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.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 a EntityEntry based on this state for return.java.lang.String
getSubclass()
Hibernate stores all entries pertaining to a given entity hierarchy in a single region.java.lang.Object
getVersion()
Retrieves the version (optimistic locking) associated with this cache entry.boolean
isReferenceEntry()
Does this entry represent a direct entity reference (rather than disassembled state)?
-
-
-
Method Detail
-
isReferenceEntry
boolean isReferenceEntry()
Does this entry represent a direct entity reference (rather than disassembled state)?- Returns:
- true/false
-
getSubclass
java.lang.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:
- The entry's exact entity type.
-
getVersion
java.lang.Object getVersion()
Retrieves the version (optimistic locking) associated with this cache entry.- Returns:
- The version of the entity represented by this entry
-
getDisassembledState
java.io.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 a EntityEntry based on this state for return.- Returns:
- The disassembled state
-
-