org.objectweb.jotm
Interface TransactionContext

All Superinterfaces:
Serializable
All Known Implementing Classes:
InternalTransactionContext

public interface TransactionContext
extends Serializable

This is how the JTA Implementation in JOTM sees the Transaction Context. This interface is used to keep the code independant of the transport layer this context is for internal use only (JOTM and UserTransaction) it has to be translated for each protocol. For the moment this Transaction Context is Serializable for test suite

Version:
$Id: TransactionContext.java,v 1.4 2003/04/17 14:37:27 jmesnil Exp $
Author:
jmesnil

Method Summary
 Control getControl()
          get the Control of the Transaction.
 Coordinator getCoordinator()
          get the Coordinator of the transaction.
 Terminator getTerminator()
          get the Terminator of the transaction.
 int getTimeout()
          get transaction timeout.
 Xid getXid()
          get the Xid of the transaction.
 void setCoordinator(Coordinator c)
          set the Coordinator of the transaction.
 

Method Detail

getTimeout

public int getTimeout()
get transaction timeout.

Returns:
transaction timeout

getCoordinator

public Coordinator getCoordinator()
get the Coordinator of the transaction.

Returns:
Coordinator

setCoordinator

public void setCoordinator(Coordinator c)
set the Coordinator of the transaction.

Parameters:
c - Coordinator

getTerminator

public Terminator getTerminator()
get the Terminator of the transaction.

Returns:
Terminator

getControl

public Control getControl()
get the Control of the Transaction.

Returns:
Control

getXid

public Xid getXid()
get the Xid of the transaction.

Returns:
Xid