Top Description Methods
liquibase.change.custom

public Interface CustomSqlRollback

Imports
liquibase.database.Database, liquibase.exception.CustomChangeException, .RollbackImpossibleException, liquibase.statement.SqlStatement

Interface to implement that allows rollback of a custom sql change.
See Also
liquibase.change.custom.CustomSqlChange

Method Summary

Modifier and TypeMethod and Description
public SqlStatement[]

Returns:

an array of SqlStatements with the rollback statements
generateRollbackStatements
(Database
the target liquibase.database.Database associated to this change's rollback statements
database
)

Generates the SQL statements required to roll back the change

Method Detail

generateRollbackStatementsback to summary
public SqlStatement[] generateRollbackStatements(Database database) throws CustomChangeException, RollbackImpossibleException

Generates the SQL statements required to roll back the change

Parameters
database:Database

the target liquibase.database.Database associated to this change's rollback statements

Returns:SqlStatement[]

an array of SqlStatements with the rollback statements

Exceptions
CustomChangeException:
if an exception occurs while processing this rollback
RollbackImpossibleException:
if rollback is not supported for this change