FileDocCategorySizeDatePackage
ExternalTransactionController.javaAPI DocGlassfish v2 API4059Tue May 22 16:54:52 BST 2007oracle.toplink.essentials.sessions

ExternalTransactionController

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.

Fields Summary
Constructors Summary
Methods Summary
public voidbeginTransaction(oracle.toplink.essentials.internal.sessions.AbstractSession session)
INTERNAL: Begin a transaction externally. This allows for TopLink to force a JTS transaction.

public voidcommitTransaction(oracle.toplink.essentials.internal.sessions.AbstractSession session)
INTERNAL: Commit a transaction externally. This allows for TopLink to force a JTS transaction.

public oracle.toplink.essentials.internal.sessions.UnitOfWorkImplgetActiveUnitOfWork()
INTERNAL: Return the active unit of work for the current active external transaction.

public oracle.toplink.essentials.internal.sessions.AbstractSessiongetSession()
INTERNAL: Return the manager's session.

public voidmarkTransactionForRollback()
INTERNAL: Marks the external transaction for rollback only.

public voidregisterSynchronizationListener(oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl uow, oracle.toplink.essentials.internal.sessions.AbstractSession session)
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.

public voidrollbackTransaction(oracle.toplink.essentials.internal.sessions.AbstractSession session)
INTERNAL: Rollback a transaction externally. This allows for TopLink to force a JTS transaction.

public voidsetSession(oracle.toplink.essentials.internal.sessions.AbstractSession session)
INTERNAL: Set the manager's session.