Top Description Fields Constructors Methods
org.hibernate.cache.spi.entry

public Class StructuredCacheEntry

extends Object
implements CacheEntryStructure
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.spi.entry.CacheEntryStructure
Imports
java.io.Serializable, java.util.HashMap, .Map, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.persister.entity.EntityPersister

Structured CacheEntry format for entities. Used to store the entry into the second-level cache as a Map so that users can more easily see the cached state.
Authors
Gavin King, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private EntityPersister
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public
StructuredCacheEntry(EntityPersister
The persister whose data needs to be structured.
persister
)

Constructs a StructuredCacheEntry strategy

Method Summary

Modifier and TypeMethod and Description
public Object
destructure(Object
The structured form.
structured
,
SessionFactoryImplementor
The session factory.
factory
)

Implements org.hibernate.cache.spi.entry.CacheEntryStructure.destructure.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Convert the previous structured form of the item back into its item form.
public Object
structure(Object
The item to structure.
item
)

Implements org.hibernate.cache.spi.entry.CacheEntryStructure.structure.

Convert the cache item into its "structured" form.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

persisterback to summary
private EntityPersister persister
SUBCLASS_KEYback to summary
public static final String SUBCLASS_KEY
VERSION_KEYback to summary
public static final String VERSION_KEY

Constructor Detail

StructuredCacheEntryback to summary
public StructuredCacheEntry(EntityPersister persister)

Constructs a StructuredCacheEntry strategy

Parameters
persister:EntityPersister

The persister whose data needs to be structured.

Method Detail

destructureback to summary
public Object destructure(Object structured, SessionFactoryImplementor factory)

Implements org.hibernate.cache.spi.entry.CacheEntryStructure.destructure.

Doc from org.hibernate.cache.spi.entry.CacheEntryStructure.destructure.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Convert the previous structured form of the item back into its item form.

Parameters
structured:Object

The structured form.

factory:SessionFactoryImplementor

The session factory.

Returns:Object

The item

Annotations
@Override
@SuppressWarnings:unchecked
structureback to summary
public Object structure(Object item)

Implements org.hibernate.cache.spi.entry.CacheEntryStructure.structure.

Doc from org.hibernate.cache.spi.entry.CacheEntryStructure.structure.

Convert the cache item into its "structured" form. Perfectly valid to return the item as-is.

Parameters
item:Object

The item to structure.

Returns:Object

The structured form.

Annotations
@Override
@SuppressWarnings:unchecked