org.objectweb.jotm
Interface TransactionContext
- Serializable
- 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:
- jmesnil
getControl
public Control getControl()
get the Control of the Transaction.
- Control
getCoordinator
public Coordinator getCoordinator()
get the Coordinator of the transaction.
- Coordinator
getTerminator
public Terminator getTerminator()
get the Terminator of the transaction.
- Terminator
getTimeout
public int getTimeout()
get transaction timeout.
- transaction timeout
getXid
public Xid getXid()
get the Xid of the transaction.
- Xid
isJotmCtx
public boolean isJotmCtx()
return true if this context was build from a JOTM's context
- boolean
setCoordinator
public void setCoordinator(Coordinator c)
set the Coordinator of the transaction.
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.
t
- Terminator