Interface RecoverableXAConnection


  • public interface RecoverableXAConnection
    XA connection implementations must provide an implementation of this class.
    Since:
    JTS 1.2.4.
    Version:
    $Id: RecoverableXAConnection.java 2342 2006-03-30 13:06:17Z $
    Author:
    Mark Little (mark_little@hp.com)
    • Method Detail

      • getResource

        javax.transaction.xa.XAResource getResource()
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getConnection

        javax.sql.XAConnection getConnection()
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getCurrentConnection

        javax.sql.XAConnection getCurrentConnection()
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getDataSource

        javax.sql.XADataSource getDataSource()
                                      throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • closeCloseCurrentConnection

        void closeCloseCurrentConnection()
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • inuse

        boolean inuse()
        Returns:
        true if the connection is being used within a transaction, false otherwise.
      • reset

        void reset()
        Since:
        JTS 2.2.
      • close

        void close()
        Since:
        JTS 2.2.
      • setTransaction

        boolean setTransaction​(javax.transaction.Transaction tx)
        Remember the transaction we are being used within.
        Since:
        JTS 2.2.
      • validTransaction

        boolean validTransaction​(javax.transaction.Transaction tx)
        Is this the same transaction?
        Returns:
        true if the connection can be used by this transaction, false otherwise.
        Since:
        JTS 2.2.