01: package liquibase.change.custom;
02:
03: import liquibase.database.Database;
04: import liquibase.exception.CustomChangeException;
05: import liquibase.exception.RollbackImpossibleException;
06: import liquibase.exception.UnsupportedChangeException;
07:
08: public interface CustomTaskRollback {
09:
10: /**
11: * Method called to rollback the change.
12: * @param database Database the change is being executed against.
13: * @throws liquibase.exception.CustomChangeException an exception occurs while processing this rollback
14: * @throws liquibase.exception.UnsupportedChangeException if this change is not supported by the {@link liquibase.database.Database} passed as argument
15: * @throws liquibase.exception.RollbackImpossibleException if rollback is not supported for this change
16: */
17: public void rollback(Database database)
18: throws CustomChangeException, UnsupportedChangeException,
19: RollbackImpossibleException;
20: }
|