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