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 XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean isSameRM(XAResource xaresource) throws XAException
isSameRM
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public boolean setTransactionTimeout(int i) throws XAException
setTransactionTimeout
in interface XAResource
XAException
public void start(Xid xid, int i) throws XAException
start
in interface XAResource
XAException
public abstract Xid[] recover(int flag) throws XAException
recover
in interface XAResource
XAException
public abstract void commit(Xid xid, boolean flag) throws XAException
commit
in interface XAResource
XAException
public abstract void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public abstract XAResourceWrapper getInstance()
Copyright © 2021. All rights reserved.