Package org.hibernate.cache.spi.entry
Class UnstructuredCacheEntry
- java.lang.Object
-
- org.hibernate.cache.spi.entry.UnstructuredCacheEntry
-
- All Implemented Interfaces:
CacheEntryStructure
public class UnstructuredCacheEntry extends java.lang.Object implements CacheEntryStructure
Unstructured CacheEntry format (used to store entities and collections).
-
-
Field Summary
Fields Modifier and Type Field Description static UnstructuredCacheEntry
INSTANCE
Access to the singleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
destructure(java.lang.Object structured, SessionFactoryImplementor factory)
Convert the previous structured form of the item back into its item form.java.lang.Object
structure(java.lang.Object item)
Convert the cache item into its "structured" form.
-
-
-
Field Detail
-
INSTANCE
public static final UnstructuredCacheEntry INSTANCE
Access to the singleton instance.
-
-
Method Detail
-
structure
public java.lang.Object structure(java.lang.Object item)
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
public java.lang.Object destructure(java.lang.Object structured, SessionFactoryImplementor factory)
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
-
-