|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.sql.DisjointXAResource
public class DisjointXAResource
Represents an XA resource which should have isSameRM return false.
Field Summary |
---|
Fields inherited from interface javax.transaction.xa.XAResource |
---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
Constructor Summary | |
---|---|
DisjointXAResource(XAResource resource)
Creates a new DisjointXAResource |
Method Summary | |
---|---|
void |
commit(Xid xid,
boolean onePhase)
Commits the resource |
void |
end(Xid xid,
int flags)
Starts the resource. |
void |
forget(Xid xid)
Forgets the transaction |
int |
getTransactionTimeout()
Gets the transaction timeout. |
XAResource |
getXAResource()
Returns the underlying resource. |
boolean |
isSameRM(XAResource resource)
Returns true if the underlying RM is the same. |
int |
prepare(Xid xid)
Rolls the resource back |
Xid[] |
recover(int flags)
Rolls the resource back |
void |
rollback(Xid xid)
Rolls the resource back |
boolean |
setTransactionTimeout(int seconds)
Sets the transaction timeout. |
void |
start(Xid xid,
int flags)
Starts the resource. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DisjointXAResource(XAResource resource)
Method Detail |
---|
public XAResource getXAResource()
public boolean setTransactionTimeout(int seconds) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource resource) throws XAException
isSameRM
in interface XAResource
XAException
public void start(Xid xid, int flags) throws XAException
start
in interface XAResource
XAException
public void end(Xid xid, int flags) throws XAException
end
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public void commit(Xid xid, boolean onePhase) throws XAException
commit
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public Xid[] recover(int flags) throws XAException
recover
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |