类 StructuredCacheEntry
- java.lang.Object
-
- org.hibernate.cache.spi.entry.StructuredCacheEntry
-
- 所有已实现的接口:
CacheEntryStructure
public class StructuredCacheEntry extends Object implements CacheEntryStructure
Structured CacheEntry format for entities. Used to store the entry into the second-level cache as a Map so that users can more easily see the cached state.- 作者:
- Gavin King, Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringSUBCLASS_KEYstatic StringVERSION_KEY
-
构造器概要
构造器 构造器 说明 StructuredCacheEntry(EntityPersister persister)Constructs a StructuredCacheEntry strategy
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectdestructure(Object structured, SessionFactoryImplementor factory)Convert the previous structured form of the item back into its item form.Objectstructure(Object item)Convert the cache item into its "structured" form.
-
-
-
构造器详细资料
-
StructuredCacheEntry
public StructuredCacheEntry(EntityPersister persister)
Constructs a StructuredCacheEntry strategy- 参数:
persister- The persister whose data needs to be structured.
-
-
方法详细资料
-
destructure
public Object destructure(Object structured, SessionFactoryImplementor factory)
从接口复制的说明:CacheEntryStructureConvert the previous structured form of the item back into its item form.- 指定者:
destructure在接口中CacheEntryStructure- 参数:
structured- The structured form.factory- The session factory.- 返回:
- The item
-
structure
public Object structure(Object item)
从接口复制的说明:CacheEntryStructureConvert the cache item into its "structured" form. Perfectly valid to return the item as-is.- 指定者:
structure在接口中CacheEntryStructure- 参数:
item- The item to structure.- 返回:
- The structured form.
-
-