|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jotm.InternalTransactionContext
public class InternalTransactionContext
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
Constructor Summary | |
---|---|
InternalTransactionContext(int t,
Coordinator c,
Terminator term,
javax.transaction.xa.Xid x)
Build a new TransactionContext (from JTA layer) |
|
InternalTransactionContext(int t,
Coordinator c,
javax.transaction.xa.Xid x)
|
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 |
boolean |
isJotmCtx()
return true if this context was build from a JOTM's context |
void |
setCoordinator(Coordinator coord)
Set the coordinator associated with the transaction |
void |
setNotJotmCtx()
Set a flag in the context to indicate as coming from another Vendor |
void |
setTerminator(Terminator term)
Set the termiantor associated with the transaction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InternalTransactionContext(int t, Coordinator c, Terminator term, javax.transaction.xa.Xid x)
public InternalTransactionContext(int t, Coordinator c, javax.transaction.xa.Xid x)
Method Detail |
---|
public int getTimeout()
getTimeout
in interface TransactionContext
public Coordinator getCoordinator()
getCoordinator
in interface TransactionContext
public void setCoordinator(Coordinator coord)
setCoordinator
in interface TransactionContext
coord
- Coordinatorpublic Terminator getTerminator()
getTerminator
in interface TransactionContext
public void setTerminator(Terminator term)
setTerminator
in interface TransactionContext
term
- Terminatorpublic Control getControl()
getControl
in interface TransactionContext
public Xid getXid()
getXid
in interface TransactionContext
public void setNotJotmCtx()
setNotJotmCtx
in interface TransactionContext
public boolean isJotmCtx()
isJotmCtx
in interface TransactionContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |