Interface Statement


  • public interface Statement
    The statement relevant to an event.

    Flyway Pro and Flyway Enterprise only

    • Method Detail

      • getSql

        String getSql()
        Returns:
        The SQL statement.
      • getWarnings

        List<Warning> getWarnings()
        Returns:
        The warnings that were raised during the execution of the statement. null if the statement hasn't been executed yet.
      • getErrors

        List<Error> getErrors()
        Returns:
        The errors that were thrown during the execution of the statement. null if the statement hasn't been executed yet.
      • isSuppressErrors

        boolean isSuppressErrors()
        Retrieves the current state of error suppression.
        Returns:
        true if errors should be suppressed or false if they should result in an exception being thrown.
      • setSuppressErrors

        void setSuppressErrors​(boolean suppressErrors)
        Sets the current state of error suppression.
        Parameters:
        suppressErrors - true if errors should be suppressed or false if they should result in an exception being thrown.