Class 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
    • Constructor Detail

      • SybaseXAResource

        public SybaseXAResource()
    • 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 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