public abstract class AbstractSynchronizationListener
extends java.lang.Object
Purpose: Abstract Synchronization Listener class Description: This abstract class is paired with the AbstractTransactionController class. It contains most of the implementation logic to handle callback notifications from an external transaction manager to ensure consistency between the global transaction and the EclipseLink unit of work. It does not assume any particular specification or interface, but can be called by any implementation subclass.
AbstractTransactionController
Constructor and Description |
---|
AbstractSynchronizationListener()
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(java.lang.Object status)
INTERNAL:
The method performs the logic that should be executed after the transaction
has been completed.
|
void |
beforeCompletion()
INTERNAL:
This method performs the logic that occurs at transaction
completion time.
|
SequencingCallback |
getSequencingCallback(DatabaseSession dbSession,
SequencingCallbackFactory sequencingCallbackFactory)
Return sequencingCallback corresponding to the passed session.
|
void |
handleException(java.lang.RuntimeException exception)
INTERNAL:
Do the appropriate thing for when an exception occurs during SQL issuance.
|
public AbstractSynchronizationListener()
public void beforeCompletion()
public void afterCompletion(java.lang.Object status)
status
- The status code of the transaction completion.public void handleException(java.lang.RuntimeException exception)
public SequencingCallback getSequencingCallback(DatabaseSession dbSession, SequencingCallbackFactory sequencingCallbackFactory)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference