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 Deprecated Methods Modifier and Type Method Description List<Error>getErrors()StringgetSql()List<Warning>getWarnings()booleanisSuppressErrors()Deprecated.Will be removed in Flyway 6.0.voidsetSuppressErrors(boolean suppressErrors)Deprecated.Will be removed in Flyway 6.0.
-
-
-
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
@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:
trueif errors should be suppressed orfalseif 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-trueif errors should be suppressed orfalseif they should result in an exception being thrown.
-
-