Package org.hibernate.cache.spi.entry
Class CollectionCacheEntry
- java.lang.Object
-
- org.hibernate.cache.spi.entry.CollectionCacheEntry
-
- All Implemented Interfaces:
java.io.Serializable
public class CollectionCacheEntry extends java.lang.Object implements java.io.SerializableCacheable representation of persistent collections- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectionCacheEntry(PersistentCollection collection, CollectionPersister persister)Constructs a CollectionCacheEntry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassemble(PersistentCollection collection, CollectionPersister persister, java.lang.Object owner)Assembles the collection from the cached state.java.io.Serializable[]getState()Retrieve the cached collection state.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CollectionCacheEntry
public CollectionCacheEntry(PersistentCollection collection, CollectionPersister persister)
Constructs a CollectionCacheEntry- Parameters:
collection- The persistent collection instancepersister- The collection persister
-
-
Method Detail
-
getState
public java.io.Serializable[] getState()
Retrieve the cached collection state.- Returns:
- The cached collection state.
-
assemble
public void assemble(PersistentCollection collection, CollectionPersister persister, java.lang.Object owner)
Assembles the collection from the cached state.- Parameters:
collection- The persistent collection instance being assembledpersister- The collection persisterowner- The collection owner instance
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-