Module org.eclipse.persistence.core
Package org.eclipse.persistence.sessions
Interface ExternalTransactionController
- All Known Implementing Classes:
- AbstractTransactionController,- GlassfishTransactionController,- GlassfishTransactionController11,- JBossTransactionController,- JBossTransactionController11,- JotmTransactionController,- JTA11TransactionController,- JTATransactionController,- SAPNetWeaverTransactionController,- WebLogicTransactionController,- WebLogicTransactionController11,- WebSphereEJBEmbeddableTransactionController,- WebSphereLibertyTransactionController,- WebSphereTransactionController,- WildFlyTransactionController,- WildFlyTransactionController11
public interface ExternalTransactionController
Purpose: Interface for external transaction management.
Description: This interface represents a delegate to be used for external transaction management. The implementing class may interface to an OMG OTS service, a Java JTA service or a manufacturer's specific implementation of these services.
Responsibilities:
- Define the API for UnitOfWork to add a listener to the externally controlled transaction.
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeginTransaction(AbstractSession session) INTERNAL: Begin a transaction externally.voidINTERNAL: Clears sequencing listeners.voidcommitTransaction(AbstractSession session) INTERNAL: Commit a transaction externally.getActiveSequencingCallback(DatabaseSession dbSession, SequencingCallbackFactory sequencingCallbackFactory) INTERNAL: Returns sequencingCallback for the current active external transaction.INTERNAL: Return the active unit of work for the current active external transaction.Return the exception handler used to handle or wrap exceptions thrown in before/after completion.INTERNAL: Return the manager's session.voidINTERNAL: Initializes sequencing listeners.voidINTERNAL: Marks the external transaction for rollback only.voidregisterSynchronizationListener(UnitOfWorkImpl uow, AbstractSession session) INTERNAL: Register a listener on the unit of work.voidrollbackTransaction(AbstractSession session) INTERNAL: Rollback a transaction externally.voidsetExceptionHandler(ExceptionHandler exceptionHandler) Set an exception handler to handle or wrap exceptions thrown in before/after completion.voidsetSession(AbstractSession session) INTERNAL: Set the manager's session.
- 
Method Details- 
beginTransactionINTERNAL: Begin a transaction externally. This allows for EclipseLink to force a JTS transaction.
- 
commitTransactionINTERNAL: Commit a transaction externally. This allows for EclipseLink to force a JTS transaction.
- 
getActiveUnitOfWorkUnitOfWorkImpl getActiveUnitOfWork()INTERNAL: Return the active unit of work for the current active external transaction.
- 
getSessionAbstractSession getSession()INTERNAL: Return the manager's session.
- 
registerSynchronizationListenervoid registerSynchronizationListener(UnitOfWorkImpl uow, AbstractSession session) throws DatabaseException INTERNAL: Register a listener on the unit of work. The listener will callback to the unit of work to tell it to commit and merge.- Throws:
- DatabaseException
 
- 
rollbackTransactionINTERNAL: Rollback a transaction externally. This allows for EclipseLink to force a JTS transaction.
- 
markTransactionForRollbackvoid markTransactionForRollback()INTERNAL: Marks the external transaction for rollback only.
- 
setSessionINTERNAL: Set the manager's session.
- 
initializeSequencingListenersvoid initializeSequencingListeners()INTERNAL: Initializes sequencing listeners. Always clears sequencing listeners first. There are two methods calling this method: 1. setSession method - this could lead to initialization of sequencing listeners only if sequencing already connected (that would happen if setSession is called after session.login, which is normally not the case). 2. in the very end of connecting sequencing, after it's determined whether sequencing callbacks (and therefore listeners) will be required.
- 
getActiveSequencingCallbackSequencingCallback getActiveSequencingCallback(DatabaseSession dbSession, SequencingCallbackFactory sequencingCallbackFactory) INTERNAL: Returns sequencingCallback for the current active external transaction. DatabaseSession is passed for the sake of SessionBroker case. This method requires active external transaction.
- 
clearSequencingListenersvoid clearSequencingListeners()INTERNAL: Clears sequencing listeners. Called by initializeSequencingListeners and by sequencing on disconnect.
- 
getExceptionHandlerExceptionHandler getExceptionHandler()Return the exception handler used to handle or wrap exceptions thrown in before/after completion.
- 
setExceptionHandlerSet an exception handler to handle or wrap exceptions thrown in before/after completion.
 
-