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