afterCommit /
afterCompletion callbacks of Spring TransactionSynchronization
objects callbacks after the outer JTA transaction has completed.
Applied when participating in an existing (non-Spring) JTA transaction.
TransactionSynchronization#afterCommit, TransactionSynchronization#afterCompletion
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| public | JtaAfterCompletionSynchronization(List<TransactionSynchronization>
the List of TransactionSynchronization objects synchronizations)Create a new JtaAfterCompletionSynchronization for the given synchronization objects. |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterCompletion(int
The status of the transaction completion. status)Implements jakarta. |
| public void | beforeCompletion()
Implements jakarta. |
| synchronizations | back to summary |
|---|---|
| private final List<TransactionSynchronization> synchronizations | |
| JtaAfterCompletionSynchronization | back to summary |
|---|---|
| public JtaAfterCompletionSynchronization(List<TransactionSynchronization> synchronizations) Create a new JtaAfterCompletionSynchronization for the given synchronization objects.
| |
| afterCompletion | back to summary |
|---|---|
| public void afterCompletion(int status) Implements jakarta. Doc from jakarta. This method is called by the transaction manager after the transaction is committed or rolled back.
| |
| beforeCompletion | back to summary |
|---|---|
| public void beforeCompletion() Implements jakarta. Doc from jakarta. The beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. This call is executed with the transaction context of the transaction that is being committed.
| |