public class LocalXAResource extends Object implements org.jboss.tm.XAResourceWrapper
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
LocalXAResource(TransactionAware connection) |
LocalXAResource(TransactionAware connection,
String jndiName) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean onePhase) |
void |
end(Xid xid,
int flags) |
void |
forget(Xid xid) |
String |
getJndiName() |
String |
getProductName() |
String |
getProductVersion() |
XAResource |
getResource() |
protected TransactionAware |
getTransactionAware() |
int |
getTransactionTimeout() |
boolean |
isSameRM(XAResource xaResource) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flags) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int timeout) |
void |
start(Xid xid,
int flags) |
public LocalXAResource(TransactionAware connection)
public LocalXAResource(TransactionAware connection, String jndiName)
protected TransactionAware getTransactionAware()
public void start(Xid xid, int flags) throws XAException
start in interface XAResourceXAExceptionpublic void commit(Xid xid, boolean onePhase) throws XAException
commit in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic void end(Xid xid, int flags) throws XAException
end in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource xaResource) throws XAException
isSameRM in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic Xid[] recover(int flags) throws XAException
recover in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int timeout)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic XAResource getResource()
getResource in interface org.jboss.tm.XAResourceWrapperpublic String getProductName()
getProductName in interface org.jboss.tm.XAResourceWrapperpublic String getProductVersion()
getProductVersion in interface org.jboss.tm.XAResourceWrapperpublic String getJndiName()
getJndiName in interface org.jboss.tm.XAResourceWrapperCopyright © 2018 JBoss by Red Hat. All rights reserved.