Class LiquibaseChangeExecListener
java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.liquibase.LiquibaseChangeExecListener
- All Implemented Interfaces:
liquibase.changelog.visitor.ChangeExecListener
public class LiquibaseChangeExecListener
extends Object
implements liquibase.changelog.visitor.ChangeExecListener
Listener which gets notified by liquibase and logs currently running and failed changesets.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
preconditionErrored
(liquibase.exception.PreconditionErrorException error, liquibase.precondition.core.PreconditionContainer.ErrorOption onError) void
preconditionFailed
(liquibase.exception.PreconditionFailedException error, liquibase.precondition.core.PreconditionContainer.FailOption onFail) void
ran
(liquibase.change.Change change, liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog changeLog, liquibase.database.Database database) void
ran
(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database, liquibase.changelog.ChangeSet.ExecType execType) void
rollbackFailed
(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database, Exception e) void
rolledBack
(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database) void
runFailed
(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database, Exception exception) void
willRollback
(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database) void
willRun
(liquibase.change.Change change, liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog changeLog, liquibase.database.Database database) void
willRun
(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database, liquibase.changelog.ChangeSet.RunStatus runStatus)
-
Constructor Details
-
LiquibaseChangeExecListener
-
-
Method Details
-
willRun
public void willRun(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database, liquibase.changelog.ChangeSet.RunStatus runStatus) - Specified by:
willRun
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
ran
public void ran(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database, liquibase.changelog.ChangeSet.ExecType execType) - Specified by:
ran
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
willRollback
public void willRollback(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database) - Specified by:
willRollback
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
rolledBack
public void rolledBack(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database) - Specified by:
rolledBack
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
rollbackFailed
public void rollbackFailed(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database, Exception e) - Specified by:
rollbackFailed
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
preconditionFailed
public void preconditionFailed(liquibase.exception.PreconditionFailedException error, liquibase.precondition.core.PreconditionContainer.FailOption onFail) - Specified by:
preconditionFailed
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
preconditionErrored
public void preconditionErrored(liquibase.exception.PreconditionErrorException error, liquibase.precondition.core.PreconditionContainer.ErrorOption onError) - Specified by:
preconditionErrored
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
willRun
public void willRun(liquibase.change.Change change, liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog changeLog, liquibase.database.Database database) - Specified by:
willRun
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
ran
public void ran(liquibase.change.Change change, liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog changeLog, liquibase.database.Database database) - Specified by:
ran
in interfaceliquibase.changelog.visitor.ChangeExecListener
-
runFailed
public void runFailed(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database, Exception exception) - Specified by:
runFailed
in interfaceliquibase.changelog.visitor.ChangeExecListener
-