Interface FBObjectListener.StatementListener

    • Method Detail

      • getConnection

        FBConnection getConnection()
                            throws java.sql.SQLException
        Get the connection object to which this listener belongs to.
        Returns:
        instance of FBConnection
        Throws:
        java.sql.SQLException - if something went wrong.
      • executionStarted

        void executionStarted​(FBStatement stmt)
                       throws java.sql.SQLException
        Notify listener that statement execution is being started.
        Parameters:
        stmt - statement that is being executed.
        Throws:
        java.sql.SQLException - if something went wrong.
      • statementClosed

        void statementClosed​(FBStatement stmt)
                      throws java.sql.SQLException
        Notify the listener that statement was closed.
        Parameters:
        stmt - statement that was closed.
        Throws:
        java.sql.SQLException
      • statementCompleted

        void statementCompleted​(FBStatement stmt)
                         throws java.sql.SQLException
        Notify the listener that statement is completed. This is shortcut method for statementCompleted(AbstractStatement, true).
        Parameters:
        stmt - statement that was completed.
        Throws:
        java.sql.SQLException
      • statementCompleted

        void statementCompleted​(FBStatement stmt,
                                boolean success)
                         throws java.sql.SQLException
        Notify the listener that statement is completed and tell whether execution was successful or not.
        Parameters:
        stmt - statement that was completed.
        success - true if completion was successful.
        Throws:
        java.sql.SQLException - if an error occurred.