Package org.hibernate.cache.spi.entry
Class CollectionCacheEntry
- java.lang.Object
-
- org.hibernate.cache.spi.entry.CollectionCacheEntry
-
- All Implemented Interfaces:
Serializable
public class CollectionCacheEntry extends Object implements Serializable
Cacheable 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, Object owner)Assembles the collection from the cached state.Serializable[]getState()Retrieve the cached collection state.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 Serializable[] getState()
Retrieve the cached collection state.- Returns:
- The cached collection state.
-
assemble
public void assemble(PersistentCollection<?> collection, CollectionPersister persister, Object owner)
Assembles the collection from the cached state.- Parameters:
collection- The persistent collection instance being assembledpersister- The collection persisterowner- The collection owner instance
-
-