public class XAResourceConnectionAdapter extends Object implements XAResource
Modifier and Type | Field and Description |
---|---|
protected JDBCConnection |
owner |
protected Xid |
xid |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
XAResourceConnectionAdapter(JDBCConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
commit(Xid xid,
boolean flag) |
void |
end(Xid xid,
int flag) |
void |
forget(Xid xid) |
int |
getTransactionTimeout() |
boolean |
isSameRM(XAResource xares) |
protected static XAException |
newXAException(int errorCode,
String message) |
protected static XAException |
newXAException(int errorCode,
String message,
Exception cause) |
int |
prepare(Xid xid) |
Xid[] |
recover(int n) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int txTimeout) |
void |
start(Xid xid,
int flag) |
protected JDBCConnection owner
public XAResourceConnectionAdapter(JDBCConnection connection)
public void start(Xid xid, int flag) throws XAException
start
in interface XAResource
XAException
public void end(Xid xid, int flag) 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 flag) throws XAException
commit
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public Xid[] recover(int n) throws XAException
recover
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean setTransactionTimeout(int txTimeout) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource xares) throws XAException
isSameRM
in interface XAResource
XAException
protected static XAException newXAException(int errorCode, String message, Exception cause)
protected static XAException newXAException(int errorCode, String message)
Copyright © 2016 Nuxeo SA. All rights reserved.