类 ReferenceCacheEntryImpl
- java.lang.Object
-
- org.hibernate.cache.spi.entry.ReferenceCacheEntryImpl
-
- 所有已实现的接口:
Serializable,CacheEntry
public class ReferenceCacheEntryImpl extends Object implements CacheEntry
Specialized CacheEntry for storing direct references to entity instances.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ReferenceCacheEntryImpl(Object reference, EntityPersister subclassPersister)Constructs a ReferenceCacheEntryImpl
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.ObjectgetReference()Provides access to the stored reference.StringgetSubclass()Hibernate stores all entries pertaining to a given entity hierarchy in a single region.EntityPersistergetSubclassPersister()ObjectgetVersion()Retrieves the version (optimistic locking) associated with this cache entry.booleanisReferenceEntry()Does this entry represent a direct entity reference (rather than disassembled state)?
-
-
-
构造器详细资料
-
ReferenceCacheEntryImpl
public ReferenceCacheEntryImpl(Object reference, EntityPersister subclassPersister)
Constructs a ReferenceCacheEntryImpl- 参数:
reference- The reference entity instancesubclassPersister- The specific subclass persister
-
-
方法详细资料
-
getReference
public Object getReference()
Provides access to the stored reference.- 返回:
- The stored reference
-
isReferenceEntry
public boolean isReferenceEntry()
从接口复制的说明:CacheEntryDoes this entry represent a direct entity reference (rather than disassembled state)?- 指定者:
isReferenceEntry在接口中CacheEntry- 返回:
- true/false
-
getSubclass
public String getSubclass()
从接口复制的说明:CacheEntryHibernate 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.- 指定者:
getSubclass在接口中CacheEntry- 返回:
- The entry's exact entity type.
-
getSubclassPersister
public EntityPersister getSubclassPersister()
-
getVersion
public Object getVersion()
从接口复制的说明:CacheEntryRetrieves the version (optimistic locking) associated with this cache entry.- 指定者:
getVersion在接口中CacheEntry- 返回:
- The version of the entity represented by this entry
-
getDisassembledState
public Serializable[] getDisassembledState()
从接口复制的说明:CacheEntryGet 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.- 指定者:
getDisassembledState在接口中CacheEntry- 返回:
- The disassembled state
-
-