org.objectweb.jotm

Interface TransactionContext

All Superinterfaces:
Serializable
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.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 Details

getControl

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

Returns:
Control


getCoordinator

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

Returns:
Coordinator


getTerminator

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

Returns:
Terminator


getTimeout

public int getTimeout()
get transaction timeout.

Returns:
transaction timeout


getXid

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

Returns:
Xid


isJotmCtx

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

Returns:
boolean


setCoordinator

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

Parameters:
c - Coordinator


setNotJotmCtx

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


setTerminator

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

Parameters:
t - Terminator