Package org.hibernate.cache.spi.entry
Class CollectionCacheEntry
java.lang.Object
org.hibernate.cache.spi.entry.CollectionCacheEntry
- All Implemented Interfaces:
Serializable
Cacheable representation of persistent collections
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionCacheEntry
(PersistentCollection<?> collection, CollectionPersister persister) Constructs a CollectionCacheEntry -
Method Summary
Modifier and TypeMethodDescriptionvoid
assemble
(PersistentCollection<?> collection, CollectionPersister persister, Object owner) Assembles the collection from the cached state.getState()
Retrieve the cached collection state.toString()
-
Constructor Details
-
CollectionCacheEntry
Constructs a CollectionCacheEntry- Parameters:
collection
- The persistent collection instancepersister
- The collection persister
-
-
Method Details
-
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
-
toString
-