public class SybaseXAResource extends XAResourceWrapper
m_xacon, subject
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
SybaseXAResource() |
Modifier and Type | Method and Description |
---|---|
void |
commit(Xid xid,
boolean flag) |
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");
}
|
Xid[] |
recover(int flag)
Returns xids list for recovery depending on flags.
|
void |
rollback(Xid xid) |
end, forget, getTransactionTimeout, init, isSameRM, prepare, setTransactionTimeout, start
public XAResourceWrapper getInstance()
XAResourceWrapper
getInstance
in class XAResourceWrapper
public Xid[] recover(int flag) throws XAException
recover
in interface XAResource
recover
in class XAResourceWrapper
flag
- an int
valueXid[]
valueXAException
- if an error occurspublic void commit(Xid xid, boolean flag) throws XAException
commit
in interface XAResource
commit
in class XAResourceWrapper
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
rollback
in class XAResourceWrapper
XAException
Copyright © 2019. All rights reserved.