Package org.aktin.broker.db
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 Summary
Fields Modifier and Type Field Description static StringCHANGELOG_RESOURCE -
Constructor Summary
Constructors Constructor Description LiquibaseWrapper(Connection connection)Construct a liquibase wrapper for sql connection. -
Method Summary
-
Field Details
-
CHANGELOG_RESOURCE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
LiquibaseWrapper
Construct a liquibase wrapper for sql connection. Closing the wrapper will not callConnection.close().- Parameters:
connection- database connection- Throws:
liquibase.exception.LiquibaseException- error
-
-
Method Details
-
update
public void update() throws liquibase.exception.LiquibaseExceptionPerform 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:
closein interfaceAutoCloseable- Throws:
liquibase.exception.DatabaseException
-