public class StructuredCacheEntry extends Object implements CacheEntryStructure
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 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 © 2001-2015 Red Hat, Inc. All Rights Reserved.