| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | afterRowInsert(CollectionPersister persister, Object entry, int i)
Called after inserting a row, to fetch the natively generated id |
| public void | beforeInitialize(CollectionPersister
The underlying collection persister. persister, int The anticipated size of the collection after initilization is complete. anticipatedSize)Called before any elements are read into the collection, allowing appropriate initializations to occur. |
| public void | |
| public void | |
| public void | |
| public Serializable | |
| public boolean | |
| public boolean | |
| public Iterator | |
| public boolean | |
| public boolean | |
| public void | |
| public Iterator | getDeletes(CollectionPersister persister, boolean indexIsFormula)
Get all the elements that need deleting |
| public Object | |
| public Object | |
| public Object | getIndex(Object entry, int i, CollectionPersister
it was more elegant before we added this... persister)Get the index of the given collection entry |
| public Serializable | |
| public Collection | |
| public Object | |
| public Collection | |
| public String | |
| public Serializable | getSnapshot(CollectionPersister persister)
Return a new snapshot of the current state of the collection |
| public Object | |
| public Serializable | |
| public Object | |
| public boolean | |
| public void | initializeFromCache(CollectionPersister persister, Serializable disassembled, 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 | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | needsRecreate(CollectionPersister persister)
Do we need to completely recreate this collection when it changes? |
| public boolean | |
| public void | postAction()
After flushing, clear any "queued" additions, since the database state is now synchronized with the memory state. |
| public void | preInsert(CollectionPersister persister)
Called before inserting rows, to ensure that any surrogate keys are fully generated |
| public Iterator | |
| public Object | readFrom(ResultSet rs, CollectionPersister role, CollectionAliases descriptor, Object owner)
Read a row from the JDBC result set |
| public boolean | Returns: false if the collection was already associated with the sessionAssociate the collection with the given session. |
| public void | |
| public void | setSnapshot(Serializable key, String role, Serializable snapshot)
After flushing, re-init snapshot state. |
| public boolean | Returns: true if this was currently associated with the given sessionDisassociate this collection from the given session. |
| public boolean |
| afterInitialize | back to summary |
|---|---|
| public boolean afterInitialize() Called after initializing from cache | |
| afterRowInsert | back to summary |
|---|---|
| public void afterRowInsert(CollectionPersister persister, Object entry, int i) throws HibernateException Called after inserting a row, to fetch the natively generated id | |
| beforeInitialize | back to summary |
|---|---|
| public void beforeInitialize(CollectionPersister persister, int anticipatedSize) Called before any elements are read into the collection, allowing appropriate initializations to occur.
| |
| beginRead | back to summary |
|---|---|
| public void beginRead() Called just before reading any rows from the JDBC result set | |
| clearDirty | back to summary |
|---|---|
| public void clearDirty() Clear the dirty flag, after flushing changes to the database. | |
| dirty | back to summary |
|---|---|
| public void dirty() Mark the collection as dirty | |
| disassemble | back to summary |
|---|---|
| public Serializable disassemble(CollectionPersister persister) throws HibernateException Disassemble the collection, ready for the cache | |
| empty | back to summary |
|---|---|
| public boolean empty() Is the collection empty? (don't try to initialize the collection) | |
| endRead | back to summary |
|---|---|
| public boolean endRead() Called after reading all rows from the JDBC result set | |
| entries | back to summary |
|---|---|
| public Iterator Iterate all collection entries, during update of the database | |
| entryExists | back to summary |
|---|---|
| public boolean entryExists(Object entry, int i) Does an element exist at this entry in the collection? | |
| equalsSnapshot | back to summary |
|---|---|
| public boolean equalsSnapshot(CollectionPersister persister) throws HibernateException Does the current state exactly match the snapshot? | |
| forceInitialization | back to summary |
|---|---|
| public void forceInitialization() throws HibernateException To be called internally by the session, forcing immediate initialization. | |
| getDeletes | back to summary |
|---|---|
| public Iterator Get all the elements that need deleting | |
| getElement | back to summary |
|---|---|
| public Object getElement(Object entry) Get the value of the given collection entry | |
| getIdentifier | back to summary |
|---|---|
| public Object getIdentifier(Object entry, int i) Get the index of the given collection entry | |
| getIndex | back to summary |
|---|---|
| public Object getIndex(Object entry, int i, CollectionPersister persister) Get the index of the given collection entry
| |
| getKey | back to summary |
|---|---|
| public Serializable getKey() Get the current collection key value | |
| getOrphans | back to summary |
|---|---|
| public Collection get all "orphaned" elements | |
| getOwner | back to summary |
|---|---|
| public 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. | |
| getQueuedOrphans | back to summary |
|---|---|
| public Collection Get the "queued" orphans | |
| getRole | back to summary |
|---|---|
| public String getRole() Get the current role name | |
| getSnapshot | back to summary |
|---|---|
| public Serializable getSnapshot(CollectionPersister persister) throws HibernateException Return a new snapshot of the current state of the collection | |
| getSnapshotElement | back to summary |
|---|---|
| public Object getSnapshotElement(Object entry, int i) Get the snapshot value of the given collection entry | |
| getStoredSnapshot | back to summary |
|---|---|
| public Serializable getStoredSnapshot() Get the snapshot cached by the collection instance | |
| getValue | back to summary |
|---|---|
| public Object getValue() return the user-visible collection (or array) instance | |
| hasQueuedOperations | back to summary |
|---|---|
| public boolean hasQueuedOperations() Does this instance have any "queued" additions? | |
| initializeFromCache | back to summary |
|---|---|
| public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner) throws HibernateException Read the state of the collection from a disassembled cached value | |
| isDirectlyAccessible | back to summary |
|---|---|
| public boolean isDirectlyAccessible() Could the application possibly have a direct reference to the underlying collection implementation? | |
| isDirty | back to summary |
|---|---|
| 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. | |
| isRowUpdatePossible | back to summary |
|---|---|
| public boolean isRowUpdatePossible() | |
| isSnapshotEmpty | back to summary |
|---|---|
| public boolean isSnapshotEmpty(Serializable snapshot) Is the snapshot empty? | |
| isUnreferenced | back to summary |
|---|---|
| public boolean isUnreferenced() Is the collection unreferenced? | |
| isWrapper | back to summary |
|---|---|
| public boolean isWrapper(Object collection) Is this the wrapper for the given underlying collection instance? | |
| needsInserting | back to summary |
|---|---|
| public boolean needsInserting(Object entry, int i, Type elemType) throws HibernateException Do we need to insert this element? | |
| needsRecreate | back to summary |
|---|---|
| public boolean needsRecreate(CollectionPersister persister) Do we need to completely recreate this collection when it changes? | |
| needsUpdating | back to summary |
|---|---|
| public boolean needsUpdating(Object entry, int i, Type elemType) throws HibernateException Do we need to update this element? | |
| postAction | back to summary |
|---|---|
| public void postAction() After flushing, clear any "queued" additions, since the database state is now synchronized with the memory state. | |
| preInsert | back to summary |
|---|---|
| public void preInsert(CollectionPersister persister) throws HibernateException Called before inserting rows, to ensure that any surrogate keys are fully generated | |
| queuedAdditionIterator | back to summary |
|---|---|
| public Iterator Iterate the "queued" additions | |
| readFrom | back to summary |
|---|---|
| public Object readFrom(ResultSet rs, CollectionPersister role, CollectionAliases descriptor, Object owner) throws HibernateException, SQLException Read a row from the JDBC result set | |
| setCurrentSession | back to summary |
|---|---|
| public boolean setCurrentSession(SessionImplementor session) throws HibernateException Associate the collection with the given session.
| |
| setOwner | back to summary |
|---|---|
| public void setOwner(Object entity) Set the reference to the owning entity | |
| setSnapshot | back to summary |
|---|---|
| public void setSnapshot(Serializable key, String role, Serializable snapshot) After flushing, re-init snapshot state. | |
| unsetSession | back to summary |
|---|---|
| public boolean unsetSession(SessionImplementor currentSession) Disassociate this collection from the given session.
| |
| wasInitialized | back to summary |
|---|---|
| public boolean wasInitialized() Is this instance initialized? | |