Package org.hibernate.cache.spi.entry
Class StructuredCacheEntry
java.lang.Object
org.hibernate.cache.spi.entry.StructuredCacheEntry
- All Implemented Interfaces:
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.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStructuredCacheEntry
(EntityPersister persister) Constructs a StructuredCacheEntry strategy -
Method Summary
Modifier and TypeMethodDescriptiondestructure
(Object structured, SessionFactoryImplementor factory) Convert the previous structured form of the item back into its item form.Convert the cache item into its "structured" form.
-
Field Details
-
SUBCLASS_KEY
- See Also:
-
VERSION_KEY
- See Also:
-
-
Constructor Details
-
StructuredCacheEntry
Constructs a StructuredCacheEntry strategy- Parameters:
persister
- The persister whose data needs to be structured.
-
-
Method Details
-
destructure
Description copied from interface:CacheEntryStructure
Convert the previous structured form of the item back into its item form.- Specified by:
destructure
in interfaceCacheEntryStructure
- Parameters:
structured
- The structured form.factory
- The session factory.- Returns:
- The item
-
structure
Description copied from interface:CacheEntryStructure
Convert the cache item into its "structured" form. Perfectly valid to return the item as-is.- Specified by:
structure
in interfaceCacheEntryStructure
- Parameters:
item
- The item to structure.- Returns:
- The structured form.
-