org.hibernate.collection

Class PersistentListElementHolder

Implemented Interfaces:
Serializable, PersistentCollection

public class PersistentListElementHolder
extends PersistentIndexedElementHolder

Author:
Gavin King

Nested Class Summary

Nested classes/interfaces inherited from class org.hibernate.collection.PersistentIndexedElementHolder

PersistentIndexedElementHolder.IndexedValue

Nested classes/interfaces inherited from class org.hibernate.collection.AbstractPersistentCollection

AbstractPersistentCollection.DelayedOperation

Field Summary

Fields inherited from class org.hibernate.collection.PersistentIndexedElementHolder

element

Fields inherited from class org.hibernate.collection.AbstractPersistentCollection

UNKNOWN

Constructor Summary

PersistentListElementHolder(SessionImplementor session, Element element)
PersistentListElementHolder(SessionImplementor session, CollectionPersister persister, Serializable key)

Method Summary

Serializable
disassemble(CollectionPersister persister)
Disassemble the collection, ready for the cache
void
initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
Read the state of the collection from a disassembled cached value

Methods inherited from class org.hibernate.collection.PersistentIndexedElementHolder

beforeInitialize, empty, entries, entryExists, equalsSnapshot, getDeletes, getElement, getIndex, getIndex, getIndexAttributeName, getOrphans, getSnapshot, getSnapshotElement, getValue, isDirectlyAccessible, isSnapshotEmpty, isWrapper, needsInserting, needsUpdating, readFrom, setIndex

Methods inherited from class org.hibernate.collection.AbstractPersistentCollection

afterInitialize, afterRowInsert, beginRead, clearDirty, dirty, empty, endRead, forceInitialization, getCachedSize, getIdentifier, getKey, getOrphans, getOrphans, getOwner, getQueuedOrphans, getRole, getSession, getSnapshot, getStoredSnapshot, getValue, hasQueuedOperations, initialize, isClearQueueEnabled, isDirectlyAccessible, isDirty, isOperationQueueEnabled, isPutQueueEnabled, isRowUpdatePossible, isUnreferenced, needsRecreate, performQueuedOperations, postAction, preInsert, queueOperation, queuedAdditionIterator, read, readElementByIndex, readElementExistence, readIndexExistence, readSize, setCurrentSession, setDirectlyAccessible, setInitialized, setOwner, setSnapshot, unsetSession, wasInitialized, write

Constructor Details

PersistentListElementHolder

public PersistentListElementHolder(SessionImplementor session,
                                   Element element)

PersistentListElementHolder

public PersistentListElementHolder(SessionImplementor session,
                                   CollectionPersister persister,
                                   Serializable key)
            throws HibernateException

Method Details

disassemble

public Serializable disassemble(CollectionPersister persister)
            throws HibernateException
Disassemble the collection, ready for the cache
Specified by:
disassemble in interface PersistentCollection

initializeFromCache

public void initializeFromCache(CollectionPersister persister,
                                Serializable disassembled,
                                Object owner)
            throws HibernateException
Read the state of the collection from a disassembled cached value
Specified by:
initializeFromCache in interface PersistentCollection