Class CollectionCacheEntry

  • All Implemented Interfaces:
    java.io.Serializable

    public class CollectionCacheEntry
    extends java.lang.Object
    implements java.io.Serializable
    Cacheable representation of persistent collections
    See Also:
    Serialized Form
    • Constructor Detail

      • CollectionCacheEntry

        public CollectionCacheEntry​(PersistentCollection collection,
                                    CollectionPersister persister)
        Constructs a CollectionCacheEntry
        Parameters:
        collection - The persistent collection instance
        persister - 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 assembled
        persister - The collection persister
        owner - The collection owner instance
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object