Class AbstractFbTransaction

    • Method Detail

      • switchState

        protected final void switchState​(TransactionState newState)
                                  throws java.sql.SQLException
        Switches current state to the supplied newState.
        Parameters:
        newState - New state to switch to
        Throws:
        java.sql.SQLException - If the requested state transition is not allowed or if the current state is also changed in a concurrent thread.
      • getTransactionInfo

        public <T> T getTransactionInfo​(byte[] requestItems,
                                        int bufferLength,
                                        InfoProcessor<T> infoProcessor)
                                 throws java.sql.SQLException
        Description copied from interface: FbTransaction
        Request transaction info.
        Specified by:
        getTransactionInfo in interface FbTransaction
        Parameters:
        requestItems - Array of info items to request
        bufferLength - Response buffer length to use
        infoProcessor - Implementation of InfoProcessor to transform the info response
        Returns:
        Transformed info response of type T
        Throws:
        java.sql.SQLException - For errors retrieving or transforming the response.
      • getTransactionId

        public long getTransactionId()
                              throws java.sql.SQLException
        Description copied from interface: FbTransaction
        Retrieves the transaction id.

        The transaction id is the database transaction id, not to be confused with the attachment level transaction handle provided by FbTransaction.getHandle().

        Specified by:
        getTransactionId in interface FbTransaction
        Returns:
        Database transaction id.
        Throws:
        java.sql.SQLException
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • getDatabase

        protected FbDatabase getDatabase()