
public class XAResourceWrapperImpl extends Object implements org.jboss.jca.core.spi.transaction.xa.XAResourceWrapper, org.jboss.tm.XAResourceWrapper
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
XAResourceWrapperImpl(XAResource resource,
boolean pad,
Boolean override,
String productName,
String productVersion,
String jndiName)
Creates a new wrapper instance.
|
XAResourceWrapperImpl(XAResource resource,
String productName,
String productVersion)
Creates a new wrapper instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit(Xid xid,
boolean onePhase) |
void |
end(Xid xid,
int flags) |
boolean |
equals(Object object) |
void |
forget(Xid xid) |
String |
getJndiName()
Get the JNDI name
|
String |
getProductName()
Get product name
|
String |
getProductVersion()
Get product version
|
XAResource |
getResource()
Get the XAResource that is being wrapped
|
int |
getTransactionTimeout() |
int |
hashCode() |
boolean |
isSameRM(XAResource resource) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flag) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int flag) |
void |
start(Xid xid,
int flags) |
String |
toString() |
public XAResourceWrapperImpl(XAResource resource, String productName, String productVersion)
resource - xaresourceproductName - product nameproductVersion - product versionpublic XAResourceWrapperImpl(XAResource resource, boolean pad, Boolean override, String productName, String productVersion, String jndiName)
resource - xaresourcepad - padoverride - overrideproductName - product nameproductVersion - product versionjndiName - jndi namepublic void commit(Xid xid, boolean onePhase) throws XAException
commit 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 resource) throws XAException
isSameRM in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic Xid[] recover(int flag) throws XAException
recover in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int flag)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void start(Xid xid, int flags) throws XAException
start in interface XAResourceXAExceptionpublic XAResource getResource()
getResource in interface org.jboss.tm.XAResourceWrapperpublic String getProductName()
getProductName in interface org.jboss.tm.XAResourceWrappernullpublic String getProductVersion()
getProductVersion in interface org.jboss.tm.XAResourceWrappernullpublic String getJndiName()
getJndiName in interface org.jboss.tm.XAResourceWrapperCopyright © 2013 IronJacamar (http://www.ironjacamar.org)