com.sun.enterprise.transaction.jts.recovery
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
| Fields inherited from interface javax.transaction.xa.XAResource |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SybaseXAResource
public SybaseXAResource()
getInstance
public XAResourceWrapper getInstance()
- Specified by:
getInstance in class XAResourceWrapper
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 interface XAResource- Specified by:
recover in class XAResourceWrapper
- Parameters:
flag - an int 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 interface XAResource- Specified by:
commit in class XAResourceWrapper
- Throws:
XAException
rollback
public void rollback(Xid xid)
throws XAException
- Specified by:
rollback in interface XAResource- Specified by:
rollback in class XAResourceWrapper
- Throws:
XAException
Copyright © 2012 GlassFish Community. All Rights Reserved.