public class LiquibaseContext extends liquibase.Liquibase implements AutoCloseable
| Constructor and Description |
|---|
LiquibaseContext(LiquibaseConfig config,
liquibase.resource.ResourceAccessor resourceAccessor,
liquibase.database.Database database)
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeLogSync()
Implementation of the
Liquibase.changeLogSync(Contexts, LabelExpression) method. |
void |
changeLogSync(Writer output)
Implementation of the
Liquibase.changeLogSync(Contexts, LabelExpression, Writer) method. |
void |
checkLiquibaseTables(boolean updateExistingNullChecksums,
liquibase.changelog.DatabaseChangeLog databaseChangeLog)
Implementation of the
Liquibase.checkLiquibaseTables(boolean, DatabaseChangeLog, Contexts, LabelExpression)
method. |
void |
close()
Close the database connection for the liquibase instance.
|
liquibase.Contexts |
createContexts()
Creates the default contexts base on the configuration
|
liquibase.LabelExpression |
createLabels()
Creates the default labels base on the configuration
|
void |
futureRollbackSQL(Integer count,
Writer output,
boolean checkLiquibaseTables)
Implementation of the
Liquibase.futureRollbackSQL(Integer, Contexts, LabelExpression, Writer, boolean)
method. |
void |
futureRollbackSQL(String tag,
Writer output)
Implementation of the
Liquibase.futureRollbackSQL(String, Contexts, LabelExpression, Writer) method. |
String |
getChangeLog()
Gets the change log file path
|
List<liquibase.changelog.ChangeSetStatus> |
getChangeSetStatuses()
Implementation of the
Liquibase.getChangeSetStatuses(Contexts, LabelExpression, boolean) method |
LiquibaseConfig |
getConfiguration()
Gets the liquibase configuration
|
Collection<liquibase.changelog.RanChangeSet> |
listUnexpectedChangeSets()
Implementation of the
Liquibase.listUnexpectedChangeSets(Contexts, LabelExpression) method. |
List<liquibase.changelog.ChangeSet> |
listUnrunChangeSets()
Implementation of the
Liquibase.listUnrunChangeSets(Contexts, LabelExpression, boolean) method |
void |
markNextChangeSetRan()
Implementation of the
Liquibase.markNextChangeSetRan(Contexts, LabelExpression) method. |
void |
markNextChangeSetRan(Writer output)
Implementation of the
Liquibase.markNextChangeSetRan(Contexts, LabelExpression, Writer) method. |
void |
reportStatus(boolean verbose,
Writer output)
Implementation of the
Liquibase.reportStatus(boolean, Contexts, Writer) method. |
void |
reportUnexpectedChangeSets(boolean verbose,
Writer output)
Implementation of the
Liquibase.reportStatus(boolean, Contexts, LabelExpression, Writer) method |
void |
rollback(Date dateToRollBackTo,
String rollbackScript)
Implementation of the
Liquibase.rollback(Date, String, Contexts, LabelExpression) method. |
void |
rollback(Date dateToRollBackTo,
String rollbackScript,
liquibase.Contexts contexts,
liquibase.LabelExpression labelExpression,
Writer output)
Implementation of the
Liquibase.rollback(Date, String, Contexts, LabelExpression, Writer) method. |
void |
rollback(Date dateToRollBackTo,
String rollbackScript,
Writer output)
Implementation of the
Liquibase.rollback(Date, String, Contexts, LabelExpression, Writer) method. |
void |
rollback(int changesToRollback,
String rollbackScript)
Implementation of the
Liquibase.rollback(int, String, Contexts, LabelExpression) method. |
void |
rollback(int changesToRollback,
String rollbackScript,
Writer output)
Implementation of the
Liquibase.rollback(int, String, Contexts, LabelExpression, Writer) method. |
void |
rollback(String tagToRollBackTo,
String rollbackScript)
Implementation of the
Liquibase.rollback(String, String, Contexts, LabelExpression) method. |
void |
rollback(String tagToRollBackTo,
String rollbackScript,
Writer output)
Implementation of the
Liquibase.rollback(String, String, Contexts, LabelExpression, Writer) method. |
void |
update()
Implementation of the
Liquibase.update(Contexts, LabelExpression) method |
void |
update(int changesToApply)
Implementation of the
Liquibase.rollback(int, String, Contexts, LabelExpression) method. |
void |
update(int changesToApply,
Writer output)
Implementation of the
Liquibase.rollback(int, String, Contexts, LabelExpression, Writer) method. |
void |
update(String tag,
Writer output)
Implementation of the
Liquibase.update(String, Contexts, LabelExpression, Writer) method |
void |
updateTestingRollback()
Implementation of the
Liquibase.updateTestingRollback(String, Contexts, LabelExpression) method. |
buildRawSQLChange, calculateCheckSum, calculateCheckSum, changeLogSync, changeLogSync, changeLogSync, changeLogSync, changeLogSync, checkLiquibaseTables, clearCheckSums, createRollbackVisitor, createUpdateVisitor, diff, dropAll, dropAll, executeRollbackScript, forceReleaseLocks, futureRollbackSQL, futureRollbackSQL, futureRollbackSQL, futureRollbackSQL, futureRollbackSQL, futureRollbackSQL, futureRollbackSQL, futureRollbackSQL, futureRollbackSQL, futureRollbackSQL, generateChangeLog, generateChangeLog, generateDocumentation, generateDocumentation, generateDocumentation, getChangeLogFile, getChangeLogParameters, getChangeSetStatuses, getChangeSetStatuses, getChangeSetStatuses, getConnection, getDatabase, getDatabaseChangeLog, getHubConnectionId, getLog, getResourceAccessor, getStandardChangelogIterator, isSafeToRunUpdate, listLocks, listUnexpectedChangeSets, listUnexpectedChangeSets, listUnrunChangeSets, listUnrunChangeSets, listUnrunChangeSets, markNextChangeSetRan, markNextChangeSetRan, markNextChangeSetRan, markNextChangeSetRan, outputHeader, removeRunStatus, reportLocks, reportStatus, reportStatus, reportStatus, reportUnexpectedChangeSets, reportUnexpectedChangeSets, resetServices, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, rollback, setChangeExecListener, setChangeLogParameter, setChangeLogSyncListener, setHubConnectionId, tag, tagExists, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, updateTestingRollback, updateTestingRollback, updateTestingRollback, validatepublic LiquibaseContext(LiquibaseConfig config, liquibase.resource.ResourceAccessor resourceAccessor, liquibase.database.Database database)
config - the liquibase configurationresourceAccessor - the liquibase resource accessordatabase - the liquibase databasepublic LiquibaseConfig getConfiguration()
public String getChangeLog()
public liquibase.LabelExpression createLabels()
public liquibase.Contexts createContexts()
public List<liquibase.changelog.ChangeSetStatus> getChangeSetStatuses() throws liquibase.exception.LiquibaseException
Liquibase.getChangeSetStatuses(Contexts, LabelExpression, boolean) methodliquibase.exception.LiquibaseException - if the method failspublic void update()
throws liquibase.exception.LiquibaseException
Liquibase.update(Contexts, LabelExpression) methodliquibase.exception.LiquibaseException - if the method failspublic List<liquibase.changelog.ChangeSet> listUnrunChangeSets() throws liquibase.exception.LiquibaseException
Liquibase.listUnrunChangeSets(Contexts, LabelExpression, boolean) methodliquibase.exception.LiquibaseException - if the method failspublic void update(String tag, Writer output) throws liquibase.exception.LiquibaseException
Liquibase.update(String, Contexts, LabelExpression, Writer) methodupdate in class liquibase.Liquibasetag - the tagoutput - the outputliquibase.exception.LiquibaseException - if the method failspublic void update(int changesToApply)
throws liquibase.exception.LiquibaseException
Liquibase.rollback(int, String, Contexts, LabelExpression) method.changesToApply - changes to applyliquibase.exception.LiquibaseException - if the method failspublic void update(int changesToApply,
Writer output)
throws liquibase.exception.LiquibaseException
Liquibase.rollback(int, String, Contexts, LabelExpression, Writer) method.changesToApply - changes to applyoutput - the outputliquibase.exception.LiquibaseException - if the method failspublic void rollback(int changesToRollback,
String rollbackScript,
Writer output)
throws liquibase.exception.LiquibaseException
Liquibase.rollback(int, String, Contexts, LabelExpression, Writer) method.rollback in class liquibase.LiquibasechangesToRollback - changes to roll backrollbackScript - the rollback scriptoutput - the outputliquibase.exception.LiquibaseException - if the method failspublic void rollback(int changesToRollback,
String rollbackScript)
throws liquibase.exception.LiquibaseException
Liquibase.rollback(int, String, Contexts, LabelExpression) method.rollback in class liquibase.LiquibasechangesToRollback - changes to roll backrollbackScript - the rollback scriptliquibase.exception.LiquibaseException - if the method failspublic void rollback(String tagToRollBackTo, String rollbackScript, Writer output) throws liquibase.exception.LiquibaseException
Liquibase.rollback(String, String, Contexts, LabelExpression, Writer) method.rollback in class liquibase.LiquibasetagToRollBackTo - tag to roll back torollbackScript - the rollback scriptoutput - the outputliquibase.exception.LiquibaseException - if the method failspublic void rollback(String tagToRollBackTo, String rollbackScript) throws liquibase.exception.LiquibaseException
Liquibase.rollback(String, String, Contexts, LabelExpression) method.rollback in class liquibase.LiquibasetagToRollBackTo - tag to roll back torollbackScript - the rollback scriptliquibase.exception.LiquibaseException - if the method failspublic void rollback(Date dateToRollBackTo, String rollbackScript, Writer output) throws liquibase.exception.LiquibaseException
Liquibase.rollback(Date, String, Contexts, LabelExpression, Writer) method.rollback in class liquibase.Liquibaseoutput - the outputdateToRollBackTo - date to roll back torollbackScript - the rollback scriptliquibase.exception.LiquibaseException - if the method failspublic void rollback(Date dateToRollBackTo, String rollbackScript, liquibase.Contexts contexts, liquibase.LabelExpression labelExpression, Writer output) throws liquibase.exception.LiquibaseException
Liquibase.rollback(Date, String, Contexts, LabelExpression, Writer) method.rollback in class liquibase.Liquibaseoutput - the outputdateToRollBackTo - date to roll back torollbackScript - the rollback scriptcontexts - the contextslabelExpression - the label expressionliquibase.exception.LiquibaseException - if the method failspublic void rollback(Date dateToRollBackTo, String rollbackScript) throws liquibase.exception.LiquibaseException
Liquibase.rollback(Date, String, Contexts, LabelExpression) method.rollback in class liquibase.LiquibasedateToRollBackTo - date to roll back torollbackScript - the rollback scriptliquibase.exception.LiquibaseException - if the method failspublic void changeLogSync()
throws liquibase.exception.LiquibaseException
Liquibase.changeLogSync(Contexts, LabelExpression) method.liquibase.exception.LiquibaseException - if the method failspublic void changeLogSync(Writer output) throws liquibase.exception.LiquibaseException
Liquibase.changeLogSync(Contexts, LabelExpression, Writer) method.output - the outputliquibase.exception.LiquibaseException - if the method failspublic void markNextChangeSetRan(Writer output) throws liquibase.exception.LiquibaseException
Liquibase.markNextChangeSetRan(Contexts, LabelExpression, Writer) method.output - the outputliquibase.exception.LiquibaseException - if the method failspublic void markNextChangeSetRan()
throws liquibase.exception.LiquibaseException
Liquibase.markNextChangeSetRan(Contexts, LabelExpression) method.liquibase.exception.LiquibaseException - if the method failspublic void futureRollbackSQL(String tag, Writer output) throws liquibase.exception.LiquibaseException
Liquibase.futureRollbackSQL(String, Contexts, LabelExpression, Writer) method.futureRollbackSQL in class liquibase.Liquibasetag - the tagoutput - the outputliquibase.exception.LiquibaseException - if the method failspublic void futureRollbackSQL(Integer count, Writer output, boolean checkLiquibaseTables) throws liquibase.exception.LiquibaseException
Liquibase.futureRollbackSQL(Integer, Contexts, LabelExpression, Writer, boolean)
method.count - the countoutput - the outputcheckLiquibaseTables - check liquibase tablesliquibase.exception.LiquibaseException - if the method failspublic void updateTestingRollback()
throws liquibase.exception.LiquibaseException
Liquibase.updateTestingRollback(String, Contexts, LabelExpression) method.liquibase.exception.LiquibaseException - if the method fails.public void checkLiquibaseTables(boolean updateExistingNullChecksums,
liquibase.changelog.DatabaseChangeLog databaseChangeLog)
throws liquibase.exception.LiquibaseException
Liquibase.checkLiquibaseTables(boolean, DatabaseChangeLog, Contexts, LabelExpression)
method.updateExistingNullChecksums - update existing null checksumsdatabaseChangeLog - database change logliquibase.exception.LiquibaseException - if the method fails.public void reportStatus(boolean verbose,
Writer output)
throws liquibase.exception.LiquibaseException
Liquibase.reportStatus(boolean, Contexts, Writer) method.verbose - the verbose flagoutput - the outputliquibase.exception.LiquibaseException - if the method fails.public Collection<liquibase.changelog.RanChangeSet> listUnexpectedChangeSets() throws liquibase.exception.LiquibaseException
Liquibase.listUnexpectedChangeSets(Contexts, LabelExpression) method.liquibase.exception.LiquibaseException - if the method fails.public void reportUnexpectedChangeSets(boolean verbose,
Writer output)
throws liquibase.exception.LiquibaseException
Liquibase.reportStatus(boolean, Contexts, LabelExpression, Writer) methodverbose - the verbose flagoutput - the writer outputliquibase.exception.LiquibaseException - if the method fails.public void close()
throws liquibase.exception.LiquibaseException
close in interface AutoCloseableclose in class liquibase.Liquibaseliquibase.exception.LiquibaseException - if the method failsCopyright © 2021 JBoss by Red Hat. All rights reserved.