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:
Modifier and Type | Method and Description |
---|---|
void |
beginTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Begin a transaction externally.
|
void |
clearSequencingListeners()
INTERNAL:
Clears sequencing listeners.
|
void |
commitTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Commit a transaction externally.
|
org.eclipse.persistence.internal.sequencing.SequencingCallback |
getActiveSequencingCallback(DatabaseSession dbSession,
org.eclipse.persistence.internal.sequencing.SequencingCallbackFactory sequencingCallbackFactory)
INTERNAL:
Returns sequencingCallback for the current active external transaction.
|
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl |
getActiveUnitOfWork()
INTERNAL:
Return the active unit of work for the current active external transaction.
|
ExceptionHandler |
getExceptionHandler()
Return the exception handler used to handle or wrap exceptions thrown in before/after completion.
|
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession()
INTERNAL:
Return the manager's session.
|
void |
initializeSequencingListeners()
INTERNAL:
Initializes sequencing listeners.
|
void |
markTransactionForRollback()
INTERNAL:
Marks the external transaction for rollback only.
|
void |
registerSynchronizationListener(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Register a listener on the unit of work.
|
void |
rollbackTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Rollback a transaction externally.
|
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Set an exception handler to handle or wrap exceptions thrown in before/after completion.
|
void |
setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Set the manager's session.
|
void beginTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
void commitTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl getActiveUnitOfWork()
org.eclipse.persistence.internal.sessions.AbstractSession getSession()
void registerSynchronizationListener(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
DatabaseException
void rollbackTransaction(org.eclipse.persistence.internal.sessions.AbstractSession session)
void markTransactionForRollback()
void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
void initializeSequencingListeners()
org.eclipse.persistence.internal.sequencing.SequencingCallback getActiveSequencingCallback(DatabaseSession dbSession, org.eclipse.persistence.internal.sequencing.SequencingCallbackFactory sequencingCallbackFactory)
void clearSequencingListeners()
ExceptionHandler getExceptionHandler()
void setExceptionHandler(ExceptionHandler exceptionHandler)