org.objectweb.jotm
Class InternalTransactionContext

java.lang.Object
  |
  +--org.objectweb.jotm.InternalTransactionContext
All Implemented Interfaces:
Serializable, TransactionContext

public class InternalTransactionContext
extends Object
implements TransactionContext

Classe InternalTransactionContext is a generic implementation of the JOTM Transaction Context. This Context is used by JOTM and by the Current Object. It can't be propagate, it have to be transalate for each Transport Layer Transaction Prapagation implementation

Version:
1.0, 12/09/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
See Also:
Serialized Form

Constructor Summary
InternalTransactionContext(int t, Coordinator c, Xid x)
          Build a new TransactionContext (from JTA layer)
 
Method Summary
 Control getControl()
          Get the control associated with the transaction
 Coordinator getCoordinator()
          Get the coordinator associated with the transaction
 Terminator getTerminator()
          Get the Terminator associated with the transaction
 int getTimeout()
          Get the timeout associated with the transaction
 Xid getXid()
          Get the Xid associated with the transaction
 void setCoordinator(Coordinator coord)
          Set the coordinator associated with the transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalTransactionContext

public InternalTransactionContext(int t,
                                  Coordinator c,
                                  Xid x)
Build a new TransactionContext (from JTA layer)

Method Detail

getTimeout

public int getTimeout()
Get the timeout associated with the transaction

Specified by:
getTimeout in interface TransactionContext
Returns:
transaction timeout

getCoordinator

public Coordinator getCoordinator()
Get the coordinator associated with the transaction

Specified by:
getCoordinator in interface TransactionContext
Returns:
Coordinator

setCoordinator

public void setCoordinator(Coordinator coord)
Set the coordinator associated with the transaction

Specified by:
setCoordinator in interface TransactionContext
Parameters:
coord - Coordinator

getTerminator

public Terminator getTerminator()
Get the Terminator associated with the transaction

Specified by:
getTerminator in interface TransactionContext
Returns:
Terminator

getControl

public Control getControl()
Get the control associated with the transaction

Specified by:
getControl in interface TransactionContext
Returns:
Control

getXid

public Xid getXid()
Get the Xid associated with the transaction

Specified by:
getXid in interface TransactionContext
Returns:
Xid