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

        @Deprecated
        boolean isSuppressErrors()
        Deprecated.
        Will be removed in Flyway 6.0. Use Error.isHandled() and Warning.isHandled() instead.
        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

        @Deprecated
        void setSuppressErrors​(boolean suppressErrors)
        Deprecated.
        Will be removed in Flyway 6.0. Use Error.setHandled() and Warning.setHandled() instead.
        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.