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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LiquibaseChangeExecListener

      public LiquibaseChangeExecListener(ProgressLogger logger)
  • 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 interface liquibase.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 interface liquibase.changelog.visitor.ChangeExecListener
    • willRollback

      public void willRollback(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database)
      Specified by:
      willRollback in interface liquibase.changelog.visitor.ChangeExecListener
    • rolledBack

      public void rolledBack(liquibase.changelog.ChangeSet changeSet, liquibase.changelog.DatabaseChangeLog databaseChangeLog, liquibase.database.Database database)
      Specified by:
      rolledBack in interface liquibase.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 interface liquibase.changelog.visitor.ChangeExecListener
    • preconditionFailed

      public void preconditionFailed(liquibase.exception.PreconditionFailedException error, liquibase.precondition.core.PreconditionContainer.FailOption onFail)
      Specified by:
      preconditionFailed in interface liquibase.changelog.visitor.ChangeExecListener
    • preconditionErrored

      public void preconditionErrored(liquibase.exception.PreconditionErrorException error, liquibase.precondition.core.PreconditionContainer.ErrorOption onError)
      Specified by:
      preconditionErrored in interface liquibase.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 interface liquibase.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 interface liquibase.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 interface liquibase.changelog.visitor.ChangeExecListener