public class StructuredCollectionCacheEntry extends Object implements CacheEntryStructure
Structured CacheEntry format for persistent collections (other than Maps, see StructuredMapCacheEntry).
| Modifier and Type | Field and Description |
|---|---|
static StructuredCollectionCacheEntry |
INSTANCE
Access to the singleton reference.
|
| Modifier and Type | Method and 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.
|
public static final StructuredCollectionCacheEntry INSTANCE
Access to the singleton reference.
public Object structure(Object item)
CacheEntryStructureConvert the cache item into its "structured" form. Perfectly valid to return the item as-is.
structure in interface CacheEntryStructureitem - The item to structure.public Object destructure(Object structured, SessionFactoryImplementor factory)
CacheEntryStructureConvert the previous structured form of the item back into its item form.
destructure in interface CacheEntryStructurestructured - The structured form.factory - The session factory.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.