Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.jotm.InternalTransactionContext
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
Constructor Summary | |
| |
|
Method Summary | |
Control |
|
Coordinator |
|
Terminator |
|
int |
|
Xid |
|
boolean |
|
void |
|
void |
|
void |
|
public InternalTransactionContext(int t, Coordinator c, Terminator term, Xid x)
Build a new TransactionContext (from JTA layer)
public Control getControl()
Get the control associated with the transaction
- Specified by:
- getControl in interface TransactionContext
public Coordinator getCoordinator()
Get the coordinator associated with the transaction
- Specified by:
- getCoordinator in interface TransactionContext
public Terminator getTerminator()
Get the Terminator associated with the transaction
- Specified by:
- getTerminator in interface TransactionContext
public int getTimeout()
Get the timeout associated with the transaction
- Specified by:
- getTimeout in interface TransactionContext
public Xid getXid()
Get the Xid associated with the transaction
- Specified by:
- getXid in interface TransactionContext
public boolean isJotmCtx()
return true if this context was build from a JOTM's context
- Specified by:
- isJotmCtx in interface TransactionContext
- Returns:
- boolean
public void setCoordinator(Coordinator coord)
Set the coordinator associated with the transaction
- Specified by:
- setCoordinator in interface TransactionContext
public void setNotJotmCtx()
Set a flag in the context to indicate as coming from another Vendor
- Specified by:
- setNotJotmCtx in interface TransactionContext
public void setTerminator(Terminator term)
Set the termiantor associated with the transaction
- Specified by:
- setTerminator in interface TransactionContext