public abstract class XAResourceWrapper extends Object implements XAResource
| Modifier and Type | Field and Description |
|---|---|
protected javax.resource.spi.ManagedConnection |
m_xacon |
protected Subject |
subject |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
XAResourceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
commit(Xid xid,
boolean flag) |
void |
end(Xid xid,
int i) |
void |
forget(Xid xid) |
abstract XAResourceWrapper |
getInstance()
public Xid[] recover(int flag) throws XAException {
throw new XAException("This is to be implemented by sub classes");
}
public void commit(Xid xid, boolean flag) throws XAException{
throw new XAException("This is to be implemented by sub classes");
}
public void rollback(Xid xid) throws XAException{
throw new XAException("This is to be implemented by sub classes");
}
|
int |
getTransactionTimeout() |
void |
init(javax.resource.spi.ManagedConnection xacon,
Subject subject) |
boolean |
isSameRM(XAResource xaresource) |
int |
prepare(Xid xid) |
abstract Xid[] |
recover(int flag) |
abstract void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int i) |
void |
start(Xid xid,
int i) |
protected javax.resource.spi.ManagedConnection m_xacon
protected Subject subject
public void init(javax.resource.spi.ManagedConnection xacon,
Subject subject)
public void end(Xid xid, int i) 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 boolean setTransactionTimeout(int i)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void start(Xid xid, int i) throws XAException
start in interface XAResourceXAExceptionpublic abstract Xid[] recover(int flag) throws XAException
recover in interface XAResourceXAExceptionpublic abstract void commit(Xid xid, boolean flag) throws XAException
commit in interface XAResourceXAExceptionpublic abstract void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic abstract XAResourceWrapper getInstance()
Copyright © 2017. All rights reserved.