Methods Summary |
---|
public boolean | afterInitialize()Called after initializing from cache
|
public void | afterRowInsert(org.hibernate.persister.collection.CollectionPersister persister, java.lang.Object entry, int i)Called after inserting a row, to fetch the natively generated id
|
public void | beforeInitialize(org.hibernate.persister.collection.CollectionPersister persister, int anticipatedSize)Called before any elements are read into the collection,
allowing appropriate initializations to occur.
|
public void | beginRead()Called just before reading any rows from the JDBC result set
|
public void | clearDirty()Clear the dirty flag, after flushing changes
to the database.
|
public void | dirty()Mark the collection as dirty
|
public java.io.Serializable | disassemble(org.hibernate.persister.collection.CollectionPersister persister)Disassemble the collection, ready for the cache
|
public boolean | empty()Is the collection empty? (don't try to initialize the collection)
|
public boolean | endRead()Called after reading all rows from the JDBC result set
|
public java.util.Iterator | entries(org.hibernate.persister.collection.CollectionPersister persister)Iterate all collection entries, during update of the database
|
public boolean | entryExists(java.lang.Object entry, int i)Does an element exist at this entry in the collection?
|
public boolean | equalsSnapshot(org.hibernate.persister.collection.CollectionPersister persister)Does the current state exactly match the snapshot?
|
public void | forceInitialization()To be called internally by the session, forcing
immediate initialization.
|
public java.util.Iterator | getDeletes(org.hibernate.persister.collection.CollectionPersister persister, boolean indexIsFormula)Get all the elements that need deleting
|
public java.lang.Object | getElement(java.lang.Object entry)Get the value of the given collection entry
|
public java.lang.Object | getIdentifier(java.lang.Object entry, int i)Get the index of the given collection entry
|
public java.lang.Object | getIndex(java.lang.Object entry, int i, org.hibernate.persister.collection.CollectionPersister persister)Get the index of the given collection entry
|
public java.io.Serializable | getKey()Get the current collection key value
|
public java.util.Collection | getOrphans(java.io.Serializable snapshot, java.lang.String entityName)get all "orphaned" elements
|
public java.lang.Object | getOwner()Get the owning entity. Note that the owner is only
set during the flush cycle, and when a new collection
wrapper is created while loading an entity.
|
public java.util.Collection | getQueuedOrphans(java.lang.String entityName)Get the "queued" orphans
|
public java.lang.String | getRole()Get the current role name
|
public java.io.Serializable | getSnapshot(org.hibernate.persister.collection.CollectionPersister persister)Return a new snapshot of the current state of the collection
|
public java.lang.Object | getSnapshotElement(java.lang.Object entry, int i)Get the snapshot value of the given collection entry
|
public java.io.Serializable | getStoredSnapshot()Get the snapshot cached by the collection
instance
|
public java.lang.Object | getValue()return the user-visible collection (or array) instance
|
public boolean | hasQueuedOperations()Does this instance have any "queued" additions?
|
public void | initializeFromCache(org.hibernate.persister.collection.CollectionPersister persister, java.io.Serializable disassembled, java.lang.Object owner)Read the state of the collection from a disassembled cached value
|
public boolean | isDirectlyAccessible()Could the application possibly have a direct reference to
the underlying collection implementation?
|
public boolean | isDirty()Is the collection dirty? Note that this is only
reliable during the flush cycle, after the
collection elements are dirty checked against
the snapshot.
|
public boolean | isRowUpdatePossible()
|
public boolean | isSnapshotEmpty(java.io.Serializable snapshot)Is the snapshot empty?
|
public boolean | isUnreferenced()Is the collection unreferenced?
|
public boolean | isWrapper(java.lang.Object collection)Is this the wrapper for the given underlying collection instance?
|
public boolean | needsInserting(java.lang.Object entry, int i, org.hibernate.type.Type elemType)Do we need to insert this element?
|
public boolean | needsRecreate(org.hibernate.persister.collection.CollectionPersister persister)Do we need to completely recreate this collection when it changes?
|
public boolean | needsUpdating(java.lang.Object entry, int i, org.hibernate.type.Type elemType)Do we need to update this element?
|
public void | postAction()After flushing, clear any "queued" additions, since the
database state is now synchronized with the memory state.
|
public void | preInsert(org.hibernate.persister.collection.CollectionPersister persister)Called before inserting rows, to ensure that any surrogate keys
are fully generated
|
public java.util.Iterator | queuedAdditionIterator()Iterate the "queued" additions
|
public java.lang.Object | readFrom(java.sql.ResultSet rs, org.hibernate.persister.collection.CollectionPersister role, org.hibernate.loader.CollectionAliases descriptor, java.lang.Object owner)Read a row from the JDBC result set
|
public boolean | setCurrentSession(org.hibernate.engine.SessionImplementor session)Associate the collection with the given session.
|
public void | setOwner(java.lang.Object entity)Set the reference to the owning entity
|
public void | setSnapshot(java.io.Serializable key, java.lang.String role, java.io.Serializable snapshot)After flushing, re-init snapshot state.
|
public boolean | unsetSession(org.hibernate.engine.SessionImplementor currentSession)Disassociate this collection from the given session.
|
public boolean | wasInitialized()Is this instance initialized?
|