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

public Class CollectionCacheEntry

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, org.hibernate.collection.spi.PersistentCollection, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.persister.collection.CollectionPersister

Cacheable representation of persistent collections
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final Object

Constructor Summary

AccessConstructor and Description
public
CollectionCacheEntry(PersistentCollection<?>
The persistent collection instance
collection
,
CollectionPersister
The collection persister
persister
)

Constructs a CollectionCacheEntry

pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
assemble(final PersistentCollection<?>
The persistent collection instance being assembled
collection
,
final CollectionPersister
The collection persister
persister
,
final Object
The collection owner instance
owner
)

Assembles the collection from the cached state.

public Serializable[]

Returns:

The cached collection state.
getState
()

Retrieve the cached collection state.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

stateback to summary
private final Object state

Constructor Detail

CollectionCacheEntryback to summary
public CollectionCacheEntry(PersistentCollection<?> collection, CollectionPersister persister)

Constructs a CollectionCacheEntry

Parameters
collection:PersistentCollection<?>

The persistent collection instance

persister:CollectionPersister

The collection persister

CollectionCacheEntryback to summary
pack-priv CollectionCacheEntry(Serializable state)

Method Detail

assembleback to summary
public void assemble(final PersistentCollection<?> collection, final CollectionPersister persister, final Object owner)

Assembles the collection from the cached state.

Parameters
collection:PersistentCollection<?>

The persistent collection instance being assembled

persister:CollectionPersister

The collection persister

owner:Object

The collection owner instance

getStateback to summary
public Serializable[] getState()

Retrieve the cached collection state.

Returns:Serializable[]

The cached collection state.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override