Package liquibase.changelog.visitor
Interface ChangeExecListener
- All Known Implementing Classes:
AbstractChangeExecListener
,DefaultChangeExecListener
,LoggingChangeExecListener
public interface ChangeExecListener
An implementation of ChangeExecListener can be called by UpdateVisitor or
RollbackVisitor for each changeset that is actually run.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
ran
(Change change, ChangeSet changeSet, DatabaseChangeLog changeLog, Database database) void
ran
(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, ChangeSet.ExecType execType) Called after the given changeset is run.void
rollbackFailed
(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, Exception exception) void
rolledBack
(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database) Called after a change is rolled back.void
runFailed
(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, Exception exception) void
willRollback
(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database) Called before a change is rolled back.void
willRun
(Change change, ChangeSet changeSet, DatabaseChangeLog changeLog, Database database) void
willRun
(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, ChangeSet.RunStatus runStatus) Called just before a given changeset is run.
-
Method Details
-
willRun
void willRun(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, ChangeSet.RunStatus runStatus) Called just before a given changeset is run.- Parameters:
changeSet
- that will be rundatabaseChangeLog
- parent changelogdatabase
- the database the change will be run againstrunStatus
- of the current change from the database
-
ran
void ran(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, ChangeSet.ExecType execType) Called after the given changeset is run.- Parameters:
changeSet
- changeSet that was rundatabaseChangeLog
- the parent changelogdatabase
- the database the change was run againstexecType
- is the result
-
willRollback
Called before a change is rolled back.- Parameters:
changeSet
- changeSet that was rolled backdatabaseChangeLog
- parent change logdatabase
- the database the rollback was executed on.
-
rolledBack
Called after a change is rolled back.- Parameters:
changeSet
- changeSet that was rolled backdatabaseChangeLog
- parent change logdatabase
- the database the rollback was executed on.
-
preconditionFailed
-
preconditionErrored
void preconditionErrored(PreconditionErrorException error, PreconditionContainer.ErrorOption onError) -
willRun
-
ran
-
runFailed
void runFailed(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, Exception exception) -
rollbackFailed
void rollbackFailed(ChangeSet changeSet, DatabaseChangeLog databaseChangeLog, Database database, Exception exception)
-