Package org.hibernate.cache.spi.entry
Interface CacheEntryStructure
-
- All Known Implementing Classes:
StructuredCacheEntry
,StructuredCollectionCacheEntry
,StructuredMapCacheEntry
,UnstructuredCacheEntry
public interface CacheEntryStructure
Strategy for how cache entries are "structured" for storing into the cache.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
structure
java.lang.Object structure(java.lang.Object item)
Convert the cache item into its "structured" form. Perfectly valid to return the item as-is.- Parameters:
item
- The item to structure.- Returns:
- The structured form.
-
destructure
java.lang.Object destructure(java.lang.Object structured, SessionFactoryImplementor factory)
Convert the previous structured form of the item back into its item form.- Parameters:
structured
- The structured form.factory
- The session factory.- Returns:
- The item
-
-