oracle.toplink.jts.os390
Class OS390SynchronizationListener
java.lang.Object
oracle.toplink.jts.AbstractSynchronizationListener
oracle.toplink.jts.JTSSynchronizationListener
oracle.toplink.jts.os390.OS390SynchronizationListener
- All Implemented Interfaces:
- javax.transaction.Synchronization
- public class OS390SynchronizationListener
- extends JTSSynchronizationListener
Purpose: Provides transaction callback mechanism Listener class
Description: This class is paired with OS390ExternalTransactionController. It contains the implementation logic to handle the synchronization callback notifications with respect to UnitOfWork - commiting changes to the database and merging clones into the parent Session.
Responsibilities:
- Handle the synchronization callback notifications
- Provide methods to handle Transaction
Constructor Summary |
OS390SynchronizationListener(oracle.toplink.publicinterface.UnitOfWork unitOfWork, oracle.toplink.publicinterface.Session session, java.lang.Object transaction)
|
Method Summary |
void |
afterCompletion(int status)
PUBLIC: The afterCompletion method is called by the transaction manager after the transaction is committed or rolled back. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.transaction.Synchronization |
beforeCompletion |
OS390SynchronizationListener
public OS390SynchronizationListener(oracle.toplink.publicinterface.UnitOfWork unitOfWork,
oracle.toplink.publicinterface.Session session,
java.lang.Object transaction)
afterCompletion
public void afterCompletion(int status)
- PUBLIC: The afterCompletion method is called by the transaction manager after the transaction is committed or rolled back. This method executes without a transaction context. It also releases the parent session (client session).
-
- Specified by:
afterCompletion
in interface javax.transaction.Synchronization
- Overrides:
afterCompletion
in class AbstractSynchronizationListener
-
- Parameters:
status
- The status of the transaction completion.