Package org.hibernate.cache.spi.entry
Class UnstructuredCacheEntry
java.lang.Object
org.hibernate.cache.spi.entry.UnstructuredCacheEntry
- All Implemented Interfaces:
CacheEntryStructure
Unstructured CacheEntry format (used to store entities and collections).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnstructuredCacheEntry
Access to the singleton instance. -
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
-
INSTANCE
Access to the singleton instance.
-
-
Method Details
-
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.
-
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
-