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:
  • Constructor Details

    • CollectionCacheEntry

      public CollectionCacheEntry(PersistentCollection<?> collection, CollectionPersister persister)
      Constructs a CollectionCacheEntry
      Parameters:
      collection - The persistent collection instance
      persister - The collection persister
  • Method Details

    • 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 assembled
      persister - The collection persister
      owner - The collection owner instance
    • toString

      public String toString()
      Overrides:
      toString in class Object