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 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)
-
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:XAResourceWrapper
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"); }- Specified by:
getInstance
in 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:
recover
in interfaceXAResource
- Specified by:
recover
in classXAResourceWrapper
- Parameters:
flag
- anint
value- Returns:
- a
Xid[]
value - Throws:
XAException
- if an error occurs
-
commit
public void commit(Xid xid, boolean flag) throws XAException
- Specified by:
commit
in interfaceXAResource
- Specified by:
commit
in classXAResourceWrapper
- Throws:
XAException
-
rollback
public void rollback(Xid xid) throws XAException
- Specified by:
rollback
in interfaceXAResource
- Specified by:
rollback
in classXAResourceWrapper
- Throws:
XAException
-
-