| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private class | ActionQueue.InsertActionSorter
Sorts the insert actions using more hashes. |
| Modifier and Type | Field and Description |
|---|---|
| private ActionQueue. | |
| private ActionQueue. | |
| private ArrayList | |
| private ArrayList | |
| private ArrayList | |
| private ArrayList | |
| private static final int | |
| private ArrayList | |
| private static final Logger | |
| private SessionImplementor | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| public | ActionQueue(SessionImplementor
The session "owning" this queue. session)Constructs an action queue bound to the given session. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | afterTransactionCompletion(boolean
Was the transaction successful. success)Performs cleanup of any held cache softlocks. |
| public boolean | Returns: True if insertions or deletions are currently queued; false otherwise.Check whether any insertion or deletion actions are currently queued. |
| public boolean | Returns: True if we contain pending actions against any of the given tables; false otherwise.The table/query-spaces to check. tables)Check whether the given tables/query-spaces are to be executed against given the currently queued actions. |
| private static boolean | |
| public void | |
| public void | |
| public void | |
| public ArrayList | |
| public static ActionQueue | Returns: The deserialized action queueThe stream from which to read the action queue ois, SessionImplementor The session to which the action queue belongs session)Used by the owning session to explicitly control deserialization of the action queue |
| public void | |
| public void | |
| private void | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| private void | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public void | |
| private void | |
| private void | |
| public void | |
| public void | |
| public void | serialize(ObjectOutputStream
The stream to which the action queue should get written oos)Used by the owning session to explicitly control serialization of the action queue |
| public void | |
| public void | |
| private void | sortInsertActions()
Order the |
| public String | Returns: a string representation of the object.Overrides java. |
| public void |
| afterTransactionProcesses | back to summary |
|---|---|
| private ActionQueue. | |
| beforeTransactionProcesses | back to summary |
|---|---|
| private ActionQueue. | |
| collectionCreations | back to summary |
|---|---|
| private ArrayList<E> collectionCreations | |
| collectionRemovals | back to summary |
|---|---|
| private ArrayList<E> collectionRemovals | |
| collectionUpdates | back to summary |
|---|---|
| private ArrayList<E> collectionUpdates | |
| deletions | back to summary |
|---|---|
| private ArrayList<E> deletions | |
| INIT_QUEUE_LIST_SIZE | back to summary |
|---|---|
| private static final int INIT_QUEUE_LIST_SIZE | |
| insertions | back to summary |
|---|---|
| private ArrayList<E> insertions | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| session | back to summary |
|---|---|
| private SessionImplementor session | |
| updates | back to summary |
|---|---|
| private ArrayList<E> updates | |
| ActionQueue | back to summary |
|---|---|
| public ActionQueue(SessionImplementor session) Constructs an action queue bound to the given session.
| |
| addAction | back to summary |
|---|---|
public void addAction(EntityInsertAction action)
| |
| addAction | back to summary |
|---|---|
public void addAction(EntityDeleteAction action)
| |
| addAction | back to summary |
|---|---|
public void addAction(EntityUpdateAction action)
| |
| addAction | back to summary |
|---|---|
public void addAction(CollectionRecreateAction action)
| |
| addAction | back to summary |
|---|---|
public void addAction(CollectionRemoveAction action)
| |
| addAction | back to summary |
|---|---|
public void addAction(CollectionUpdateAction action)
| |
| addAction | back to summary |
|---|---|
public void addAction(EntityIdentityInsertAction insert)
| |
| addAction | back to summary |
|---|---|
| public void addAction(BulkOperationCleanupAction cleanupAction) | |
| afterTransactionCompletion | back to summary |
|---|---|
| public void afterTransactionCompletion(boolean success) Performs cleanup of any held cache softlocks.
| |
| areInsertionsOrDeletionsQueued | back to summary |
|---|---|
| public boolean areInsertionsOrDeletionsQueued() Check whether any insertion or deletion actions are currently queued.
| |
| areTablesToBeUpdated | back to summary |
|---|---|
| public boolean areTablesToBeUpdated(Set<E> tables) Check whether the given tables/query-spaces are to be executed against given the currently queued actions.
| |
| areTablesToUpdated | back to summary |
|---|---|
private static boolean areTablesToUpdated(List<E> actions, Set<E> tableSpaces)
| |
| beforeTransactionCompletion | back to summary |
|---|---|
| public void beforeTransactionCompletion() Execute any registered | |
| clear | back to summary |
|---|---|
| public void clear() | |
| clearFromFlushNeededCheck | back to summary |
|---|---|
| public void clearFromFlushNeededCheck(int previousCollectionRemovalSize) | |
| cloneDeletions | back to summary |
|---|---|
public ArrayList
| |
| deserialize | back to summary |
|---|---|
| public static ActionQueue deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException Used by the owning session to explicitly control deserialization of the action queue
| |
| execute | back to summary |
|---|---|
| public void execute(Executable executable) | |
| executeActions | back to summary |
|---|---|
| public void executeActions() throws HibernateException Perform all currently queued actions.
| |
| executeActions | back to summary |
|---|---|
| private void executeActions(List<E> list) throws HibernateException | |
| executeInserts | back to summary |
|---|---|
| public void executeInserts() throws HibernateException Perform all currently queued entity-insertion actions.
| |
| hasAfterTransactionActions | back to summary |
|---|---|
public boolean hasAfterTransactionActions()
| |
| hasAnyQueuedActions | back to summary |
|---|---|
| public boolean hasAnyQueuedActions() | |
| hasBeforeTransactionActions | back to summary |
|---|---|
| public boolean hasBeforeTransactionActions() | |
| init | back to summary |
|---|---|
| private void init() | |
| numberOfCollectionCreations | back to summary |
|---|---|
| public int numberOfCollectionCreations() | |
| numberOfCollectionRemovals | back to summary |
|---|---|
| public int numberOfCollectionRemovals() | |
| numberOfCollectionUpdates | back to summary |
|---|---|
| public int numberOfCollectionUpdates() | |
| numberOfDeletions | back to summary |
|---|---|
| public int numberOfDeletions() | |
| numberOfInsertions | back to summary |
|---|---|
| public int numberOfInsertions() | |
| numberOfUpdates | back to summary |
|---|---|
| public int numberOfUpdates() | |
| prepareActions | back to summary |
|---|---|
| public void prepareActions() throws HibernateException Prepares the internal action queues for execution.
| |
| prepareActions | back to summary |
|---|---|
private void prepareActions(List<E> queue) throws HibernateException
| |
| registerCleanupActions | back to summary |
|---|---|
| private void registerCleanupActions(Executable executable) | |
| registerProcess | back to summary |
|---|---|
| public void registerProcess(AfterTransactionCompletionProcess process) | |
| registerProcess | back to summary |
|---|---|
| public void registerProcess(BeforeTransactionCompletionProcess process) | |
| serialize | back to summary |
|---|---|
| public void serialize(ObjectOutputStream oos) throws IOException Used by the owning session to explicitly control serialization of the action queue
| |
| sortActions | back to summary |
|---|---|
public void sortActions()
| |
| sortCollectionActions | back to summary |
|---|---|
public void sortCollectionActions()
| |
| sortInsertActions | back to summary |
|---|---|
| private void sortInsertActions() Order the | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of the object.
| |
| unScheduleDeletion | back to summary |
|---|---|
| public void unScheduleDeletion(EntityEntry entry, Object rescuedEntity) | |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private Set | |
| private SessionImplementor |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void |
| processes | back to summary |
|---|---|
| private List<AfterTransactionCompletionProcess> processes | |
| querySpacesToInvalidate | back to summary |
|---|---|
| private Set<String> querySpacesToInvalidate | |
| session | back to summary |
|---|---|
| private SessionImplementor session | |
| AfterTransactionCompletionProcessQueue | back to summary |
|---|---|
| private AfterTransactionCompletionProcessQueue(SessionImplementor session) | |
| addSpacesToInvalidate | back to summary |
|---|---|
| public void addSpacesToInvalidate(String[] spaces) | |
| addSpaceToInvalidate | back to summary |
|---|---|
| public void addSpaceToInvalidate(String space) | |
| afterTransactionCompletion | back to summary |
|---|---|
| public void afterTransactionCompletion(boolean success) | |
| register | back to summary |
|---|---|
| public void register(AfterTransactionCompletionProcess process) | |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private SessionImplementor |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| processes | back to summary |
|---|---|
| private List<BeforeTransactionCompletionProcess> processes | |
| session | back to summary |
|---|---|
| private SessionImplementor session | |
| BeforeTransactionCompletionProcessQueue | back to summary |
|---|---|
| private BeforeTransactionCompletionProcessQueue(SessionImplementor session) | |
| beforeTransactionCompletion | back to summary |
|---|---|
| public void beforeTransactionCompletion() | |
| register | back to summary |
|---|---|
| public void register(BeforeTransactionCompletionProcess process) | |
| Modifier and Type | Field and Description |
|---|---|
| private HashMap | |
| private HashMap | |
| private HashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private Integer | Returns: An appropriate batch number; todo document this process betterThe action being sorted action, String The name of the entity affected by the action entityName)Finds an acceptable batch for this entity to be a member as part of the |
| public void |
| actionBatches | back to summary |
|---|---|
| private HashMap<K, V> actionBatches | |
| entityBatchNumber | back to summary |
|---|---|
| private HashMap<K, V> entityBatchNumber | |
| latestBatches | back to summary |
|---|---|
| private HashMap<K, V> latestBatches | |
| InsertActionSorter | back to summary |
|---|---|
| public InsertActionSorter() | |
| addToBatch | back to summary |
|---|---|
private void addToBatch(Integer batchNumber, EntityInsertAction action)
| |
| findBatchNumber | back to summary |
|---|---|
| private Integer findBatchNumber(EntityInsertAction action, String entityName) Finds an acceptable batch for this entity to be a member as part of the
| |
| sort | back to summary |
|---|---|
| public void sort() Sort the insert actions.
| |