public class StructuredCacheEntry extends Object implements CacheEntryStructure
Modifier and Type | Field and Description |
---|---|
static String |
SUBCLASS_KEY |
static String |
VERSION_KEY |
Constructor and Description |
---|
StructuredCacheEntry(EntityPersister persister)
Constructs a StructuredCacheEntry strategy
|
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 String SUBCLASS_KEY
public static final String VERSION_KEY
public StructuredCacheEntry(EntityPersister persister)
persister
- The persister whose data needs to be structured.public Object destructure(Object structured, SessionFactoryImplementor factory)
CacheEntryStructure
destructure
in interface CacheEntryStructure
structured
- The structured form.factory
- The session factory.public Object structure(Object item)
CacheEntryStructure
structure
in interface CacheEntryStructure
item
- The item to structure.Copyright © 2017 JBoss by Red Hat. All rights reserved.