jakarta.transaction.Synchronization Hibernate registers when needed for JTA callbacks.
Note that we split the notion of the registered Synchronization and the processing of the Synchronization callbacks mainly to account for "separation of concerns", but also so that the transaction engine does not have to hold reference to the actual Synchronization that gets registered with the JTA system.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final SynchronizationCallbackCoordinator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterCompletion(int
The status of the transaction completion. status)Implements jakarta. |
| public void | beforeCompletion()
Implements jakarta. |
| log | back to summary |
|---|---|
| private static final Logger log | |
| synchronizationCallbackCoordinator | back to summary |
|---|---|
| private final SynchronizationCallbackCoordinator synchronizationCallbackCoordinator | |
| RegisteredSynchronization | back to summary |
|---|---|
| public RegisteredSynchronization(SynchronizationCallbackCoordinator synchronizationCallbackCoordinator) | |
| 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.
| |