接口 CacheEntry
-
- 所有超级接口:
Serializable
public interface CacheEntry extends Serializable
A cached instance of a persistent class- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.StringgetSubclass()Hibernate stores all entries pertaining to a given entity hierarchy in a single region.ObjectgetVersion()Retrieves the version (optimistic locking) associated with this cache entry.booleanisReferenceEntry()Does this entry represent a direct entity reference (rather than disassembled state)?
-
-
-
方法详细资料
-
isReferenceEntry
boolean isReferenceEntry()
Does this entry represent a direct entity reference (rather than disassembled state)?- 返回:
- true/false
-
getSubclass
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.- 返回:
- The entry's exact entity type.
-
getVersion
Object getVersion()
Retrieves the version (optimistic locking) associated with this cache entry.- 返回:
- The version of the entity represented by this entry
-
getDisassembledState
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.- 返回:
- The disassembled state
-
-