Package org.flywaydb.core.api.callback
Interface Statement
-
public interface StatementThe statement relevant to an event.Flyway Pro and Flyway Enterprise only
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Error>getErrors()StringgetSql()List<Warning>getWarnings()booleanisSuppressErrors()Retrieves the current state of error suppression.voidsetSuppressErrors(boolean suppressErrors)Sets the current state of error suppression.
-
-
-
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.
nullif the statement hasn't been executed yet.
-
getErrors
List<Error> getErrors()
- Returns:
- The errors that were thrown during the execution of the statement.
nullif the statement hasn't been executed yet.
-
isSuppressErrors
boolean isSuppressErrors()
Retrieves the current state of error suppression.- Returns:
trueif errors should be suppressed orfalseif they should result in an exception being thrown.
-
setSuppressErrors
void setSuppressErrors(boolean suppressErrors)
Sets the current state of error suppression.- Parameters:
suppressErrors-trueif errors should be suppressed orfalseif they should result in an exception being thrown.
-
-