Class LiquibaseWrapper

java.lang.Object
org.aktin.broker.db.LiquibaseWrapper
All Implemented Interfaces:
AutoCloseable

public class LiquibaseWrapper
extends Object
implements AutoCloseable
Wraps the liquibase API with operations that are supported for the AKTIN database.
Author:
R.W.Majeed
  • Field Details

  • Constructor Details

    • LiquibaseWrapper

      public LiquibaseWrapper​(Connection connection) throws liquibase.exception.LiquibaseException
      Construct a liquibase wrapper for sql connection. Closing the wrapper will not call Connection.close().
      Parameters:
      connection - database connection
      Throws:
      liquibase.exception.LiquibaseException - error
  • Method Details

    • update

      public void update() throws liquibase.exception.LiquibaseException
      Perform liquibase update operation
      Throws:
      liquibase.exception.LiquibaseException - liquibase error
      See Also:
      Liquibase.update(Contexts, LabelExpression)
    • reset

      public void reset() throws liquibase.exception.LiquibaseException
      Throws:
      liquibase.exception.LiquibaseException
    • close

      public void close() throws liquibase.exception.DatabaseException
      Specified by:
      close in interface AutoCloseable
      Throws:
      liquibase.exception.DatabaseException