PersistentCollection
| Modifier and Type | Class and Description |
|---|---|
| protected abstract class | |
| protected static interface | AbstractPersistentCollection.DelayedOperation<E>
Contract for operations which are part of a collection's operation queue. |
| protected class | |
| public static interface | AbstractPersistentCollection.LazyInitializationWork<
The java type of the return for this LazyInitializationWork T>TBH not sure why this is public |
| protected class | |
| protected class | |
| protected class | |
| protected static interface |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | |
| private transient boolean | |
| private boolean | |
| protected boolean | |
| private boolean | |
| private transient boolean | |
| private boolean | |
| private Object | |
| private static final CoreMessageLogger | |
| private transient List | |
| private Object | |
| private String | |
| private transient SharedSessionContractImplementor | |
| private String | |
| private Serializable | |
| protected static final Object |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | afterInitialize()
Implements org. |
| public void | afterRowInsert(CollectionPersister
The collection persister persister, Object The collection element just inserted entry, int The element position/index i)Implements org. |
| public void | beforeInitialize(CollectionPersister persister, int anticipatedSize)
Implements org. |
| public void | beginRead()
Implements org. |
| public final void | clearDirty()
Implements org. |
| public final void | |
| public final void | dirty()
Implements org. |
| public Object | elementByIndex(Object index)
Implements org. |
| public boolean | elementExists(Object element)
Implements org. |
| public abstract boolean | |
| public boolean | endRead()
Implements org. |
| public final void | forceInitialization()
Implements org. |
| private String | |
| protected int | |
| public Object | getIdentifier(Object
The collection entry/element entry, int The assumed identifier (?) i)Implements org. |
| public final Object | getKey()
Implements org. |
| public abstract Collection | getOrphans(Serializable
The snapshot state snapshot, String The name of the entity that are the elements of the collection entityName)Redeclares org. |
| protected static <E> Collection | getOrphans(Collection<E> oldElements, Collection<E> currentElements, String entityName, SharedSessionContractImplementor session)
Given a collection of entity instances that used to belong to the collection, and a collection of instances that currently belong, return a collection of orphans |
| public Object | getOwner()
Implements org. |
| public final Collection | getQueuedOrphans(String
The name of the entity that makes up the elements entityName)Implements org. |
| public final String | getRole()
Implements org. |
| public final SharedSessionContractImplementor | |
| public int | getSize()
Implements org. |
| protected final Serializable | |
| public final Serializable | getStoredSnapshot()
Implements org. |
| public Object | getValue()
Implements org. |
| public final boolean | hasQueuedOperations()
Implements org. |
| public static void | identityRemove(Collection<?>
The list containing the entity instances list, Object The entity instance to match elements. entityInstance, String The entity name entityName, SharedSessionContractImplementor The session session)Removes entity entries that have an equal identifier with the incoming entity instance |
| protected final void | initialize(final boolean
currently obsolete writing)Initialize the collection, if possible, wrapping any exceptions in a runtime exception |
| protected boolean | |
| protected boolean | |
| public boolean | isDirectlyAccessible()
Implements org. |
| public final boolean | isDirty()
Implements org. |
| public boolean | isElementRemoved()
Overrides default org. |
| protected boolean | |
| public boolean | isInitializing()
Implements org. |
| protected boolean | |
| protected boolean | isInverseCollectionNoOrphanDelete()
Is this the "inverse" end of a bidirectional association with no orphan delete enabled? |
| protected boolean | isInverseOneToManyOrNoOrphanDelete()
Is this the "inverse" end of a bidirectional one-to-many, or of a collection with no orphan delete? |
| protected boolean | |
| protected boolean | |
| public boolean | isRowUpdatePossible()
Implements org. |
| public final boolean | isUnreferenced()
Implements org. |
| private static boolean | |
| public boolean | needsRecreate(CollectionPersister
The collection persister persister)Implements org. |
| private SharedSessionContractImplementor | |
| protected final void | performQueuedOperations()
After reading all existing elements from the database, add the queued elements to the underlying collection. |
| public void | postAction()
Implements org. |
| public void | preInsert(CollectionPersister
The collection persister persister)Implements org. |
| protected void | |
| public final Iterator | queuedAdditionIterator()
Implements org. |
| protected final void | |
| protected final void | |
| protected Object | |
| protected Boolean | |
| protected Boolean | |
| protected boolean | |
| public final void | replaceQueuedOperationValues(CollectionPersister persister, Map<Object, Object>
- mapping from entity in the process of being
merged to managed copy. copyCache)Replace entity instances with copy in |
| public final boolean | setCurrentSession(SharedSessionContractImplementor
The session to associate with session)Implements org. |
| protected final void | |
| protected final void | |
| public void | setOwner(Object
The owner owner)Implements org. |
| public void | |
| private void | |
| private void | |
| public final boolean | unsetSession(SharedSessionContractImplementor
The session we are disassociating from. Used for validations. currentSession)Implements org. |
| public final boolean | wasInitialized()
Implements org. |
| private <T> T | withTemporarySessionIfNeeded(AbstractPersistentCollection.
|
| protected final void |