|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.transaction.AbstractSynchronizationListener org.eclipse.persistence.transaction.JTASynchronizationListener
public class JTASynchronizationListener
Purpose: Synchronization object implementation for JTA 1.0
Description: Instances of this class are registered against JTA 1.0 transactions. This class may be subclassed to provide specialized behavior for specific transaction implementations. Subclasses must implement the newListener() method to return an instances of the listener subclass.
JTATransactionController
Field Summary |
---|
Fields inherited from class org.eclipse.persistence.transaction.AbstractSynchronizationListener |
---|
controller, sequencingCallback, sequencingCallbackMap, session, transaction, transactionKey, unitOfWork |
Constructor Summary | |
---|---|
JTASynchronizationListener()
PUBLIC: Used to create factory instances only. |
|
JTASynchronizationListener(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.Object transaction,
AbstractTransactionController controller)
INTERNAL: Constructor for creating listener instances (expects all required state info) |
Method Summary | |
---|---|
void |
afterCompletion(int stat)
INTERNAL: Called by the JTA transaction manager after the transaction is committed or rolled back. |
void |
beforeCompletion()
INTERNAL: Called by the JTA transaction manager prior to the start of the transaction completion process. |
AbstractSynchronizationListener |
newSynchronizationListener(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.Object transaction,
AbstractTransactionController controller)
INTERNAL: Create and return the Synchronization listener object that can be registered to receive JTA transaction notification callbacks. |
Methods inherited from class org.eclipse.persistence.transaction.AbstractSynchronizationListener |
---|
afterCompletion, callSequencingCallback, getSequencingCallback, getSession, getTransaction, getTransactionController, getTransactionKey, getUnitOfWork, handleException, setSession, setTransaction, setTransactionController, setTransactionKey, setUnitOfWork |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JTASynchronizationListener()
public JTASynchronizationListener(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.Object transaction, AbstractTransactionController controller)
Method Detail |
---|
public AbstractSynchronizationListener newSynchronizationListener(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.Object transaction, AbstractTransactionController controller)
newSynchronizationListener
in interface SynchronizationListenerFactory
public void beforeCompletion()
beforeCompletion
in interface javax.transaction.Synchronization
beforeCompletion
in class AbstractSynchronizationListener
public void afterCompletion(int stat)
afterCompletion
in interface javax.transaction.Synchronization
stat
- The status of the transaction completion.
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |