Class SybaseXAResource
- java.lang.Object
-
- com.sun.enterprise.transaction.api.XAResourceWrapper
-
- com.sun.enterprise.transaction.jts.recovery.SybaseXAResource
-
- All Implemented Interfaces:
XAResource
public class SybaseXAResource extends XAResourceWrapper
XA Resource wrapper class for sybase XA Resource with jConnect 5.2.- Version:
- 1.0
- Author:
- Bala Dutt
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.transaction.api.XAResourceWrapper
m_xacon, subject
-
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
-
Constructor Summary
Constructors Constructor Description SybaseXAResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(Xid xid, boolean flag)XAResourceWrappergetInstance()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.voidrollback(Xid xid)-
Methods inherited from class com.sun.enterprise.transaction.api.XAResourceWrapper
end, forget, getTransactionTimeout, init, isSameRM, prepare, setTransactionTimeout, start
-
-
-
-
Method Detail
-
getInstance
public XAResourceWrapper getInstance()
Description copied from class:XAResourceWrapperpublic 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"); }- Specified by:
getInstancein classXAResourceWrapper
-
recover
public Xid[] recover(int flag) throws XAException
Returns xids list for recovery depending on flags. Sybase XA Resource ignores the flags for XAResource recover call. This method takes care for the fault. Allows the recover call only for TMSTARTRSCAN, for other values of flags just returns null.- Specified by:
recoverin interfaceXAResource- Specified by:
recoverin classXAResourceWrapper- Parameters:
flag- anintvalue- Returns:
- a
Xid[]value - Throws:
XAException- if an error occurs
-
commit
public void commit(Xid xid, boolean flag) throws XAException
- Specified by:
commitin interfaceXAResource- Specified by:
commitin classXAResourceWrapper- Throws:
XAException
-
rollback
public void rollback(Xid xid) throws XAException
- Specified by:
rollbackin interfaceXAResource- Specified by:
rollbackin classXAResourceWrapper- Throws:
XAException
-
-