liquibase.change.custom.CustomSqlRollback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
package liquibase.change.custom;
import liquibase.database.Database;
import liquibase.exception.CustomChangeException;
import liquibase.exception.RollbackImpossibleException;
import liquibase.statement.SqlStatement;
/**
* Interface to implement that allows rollback of a custom sql change.
*
* @see liquibase.change.custom.CustomSqlChange
*/
public interface CustomSqlRollback {
/**
* Generates the SQL statements required to roll back the change
*
* @param database the target {@link liquibase.database.Database} associated to this change's rollback statements
* @return an array of {@link SqlStatement}s with the rollback statements
* @throws liquibase.exception.CustomChangeException if an exception occurs while processing this rollback
* @throws liquibase.exception.RollbackImpossibleException if rollback is not supported for this change
*/
SqlStatement[] generateRollbackStatements(Database database) throws CustomChangeException, RollbackImpossibleException;
}