org.objectweb.jotm
Interface TransactionContext

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
InternalTransactionContext

public interface TransactionContext
extends java.io.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.9 2004-12-13 19:53:06 tonyortiz 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.
 boolean isJotmCtx()
          return true if this context was build from a JOTM's context
 void setCoordinator(Coordinator c)
          set the Coordinator of the transaction.
 void setNotJotmCtx()
          Set a flag in the context to indicate as coming from another Vendor
 void setTerminator(Terminator t)
          set the Terminator of the transaction.
 

Method Detail

getTimeout

int getTimeout()
get transaction timeout.

Returns:
transaction timeout

getCoordinator

Coordinator getCoordinator()
get the Coordinator of the transaction.

Returns:
Coordinator

setCoordinator

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

Parameters:
c - Coordinator

getTerminator

Terminator getTerminator()
get the Terminator of the transaction.

Returns:
Terminator

setTerminator

void setTerminator(Terminator t)
set the Terminator of the transaction.

Parameters:
t - Terminator

getControl

Control getControl()
get the Control of the Transaction.

Returns:
Control

getXid

Xid getXid()
get the Xid of the transaction.

Returns:
Xid

setNotJotmCtx

void setNotJotmCtx()
Set a flag in the context to indicate as coming from another Vendor


isJotmCtx

boolean isJotmCtx()
return true if this context was build from a JOTM's context

Returns:
boolean