Uses of Class
liquibase.Contexts
Package
Description
Liquibase top level namespace package.
-
Uses of Contexts in liquibase
Modifier and TypeMethodDescriptionvoid
Liquibase.changeLogSync
(String tag, Contexts contexts, LabelExpression labelExpression) Synchronizes the changelog with the database up to a specified tag.void
Liquibase.changeLogSync
(String tag, Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.changeLogSync
(Contexts contexts) Deprecated.use version with LabelExpressionvoid
Liquibase.changeLogSync
(Contexts contexts, LabelExpression labelExpression) void
Liquibase.changeLogSync
(Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.checkLiquibaseTables
(boolean updateExistingNullChecksums, DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labelExpression) protected void
Liquibase.futureRollbackSQL
(Integer count, String tag, Contexts contexts, LabelExpression labelExpression, Writer output) protected void
Liquibase.futureRollbackSQL
(Integer count, String tag, Contexts contexts, LabelExpression labelExpression, Writer output, boolean checkLiquibaseTables) void
Liquibase.futureRollbackSQL
(Integer count, Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.futureRollbackSQL
(Integer count, Contexts contexts, LabelExpression labelExpression, Writer output, boolean checkLiquibaseTables) void
Liquibase.futureRollbackSQL
(String tag, Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.futureRollbackSQL
(Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.generateDocumentation
(String outputDirectory, Contexts contexts, LabelExpression labelExpression, CatalogAndSchema... schemaList) Liquibase.getChangeSetStatuses
(Contexts contexts) Deprecated.use version with LabelExpressionLiquibase.getChangeSetStatuses
(Contexts contexts, LabelExpression labelExpression) Liquibase.getChangeSetStatuses
(Contexts contexts, LabelExpression labelExpression, boolean checkLiquibaseTables) Returns the ChangeSetStatuses of all changesets in the change log file and history in the order they would be ran.protected ChangeLogIterator
Liquibase.getStandardChangelogIterator
(Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) Return a ChangeLogIterator constructed with standard filters for processing the specified changelog.protected boolean
Liquibase.isUpToDateFastCheck
(Contexts contexts, LabelExpression labelExpression) Deprecated.this method has been moved toFastCheckService
, use that one instead.Liquibase.listUnexpectedChangeSets
(Contexts contexts, LabelExpression labelExpression) Liquibase.listUnrunChangeSets
(Contexts contexts) Deprecated.use version with LabelExpressionLiquibase.listUnrunChangeSets
(Contexts contexts, LabelExpression labels) Liquibase.listUnrunChangeSets
(Contexts contexts, LabelExpression labels, boolean checkLiquibaseTables) void
Liquibase.markNextChangeSetRan
(Contexts contexts, LabelExpression labelExpression) void
Liquibase.markNextChangeSetRan
(Contexts contexts, LabelExpression labelExpression, Writer output) boolean
Returns true if the passed runtime contexts match this context expressionstatic boolean
ContextExpression.matchesAll
(Collection<ContextExpression> expressions, Contexts contexts) void
Liquibase.reportStatus
(boolean verbose, Contexts contexts, Writer out) void
Liquibase.reportStatus
(boolean verbose, Contexts contexts, LabelExpression labels, Writer out) void
Liquibase.reportUnexpectedChangeSets
(boolean verbose, Contexts contexts, LabelExpression labelExpression, Writer out) void
void
Liquibase.rollback
(int changesToRollback, String rollbackScript, Contexts contexts, LabelExpression labelExpression) Rolls back a specified number of changesets.void
Liquibase.rollback
(int changesToRollback, String rollbackScript, Contexts contexts, LabelExpression labelExpression, Writer output) void
void
Liquibase.rollback
(int changesToRollback, Contexts contexts, LabelExpression labelExpression) void
Liquibase.rollback
(int changesToRollback, Contexts contexts, LabelExpression labelExpression, Writer output) void
void
void
Liquibase.rollback
(String tagToRollBackTo, String rollbackScript, Contexts contexts, LabelExpression labelExpression) Rolls back the database to a specific tag, using either a generated or user-defined rollback script.void
Liquibase.rollback
(String tagToRollBackTo, String rollbackScript, Contexts contexts, LabelExpression labelExpression, Writer output) void
void
void
Liquibase.rollback
(String tagToRollBackTo, Contexts contexts, LabelExpression labelExpression) void
Liquibase.rollback
(String tagToRollBackTo, Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.rollback
(Date dateToRollBackTo, String rollbackScript, Contexts contexts, LabelExpression labelExpression) Rolls back all changesets that were applied after the specified date.void
Liquibase.rollback
(Date dateToRollBackTo, String rollbackScript, Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.rollback
(Date dateToRollBackTo, Contexts contexts, LabelExpression labelExpression) void
Liquibase.rollback
(Date dateToRollBackTo, Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.update
(int changesToApply, Contexts contexts, LabelExpression labelExpression) Updates the database schema with the specified number of changesets, within the given contexts and matching the given label expression.void
Liquibase.update
(int changesToApply, Contexts contexts, LabelExpression labelExpression, Writer output) void
void
void
Liquibase.update
(String tag, Contexts contexts, LabelExpression labelExpression) Updates the database to a specified tag.void
Liquibase.update
(String tag, Contexts contexts, LabelExpression labelExpression, Writer output) void
Executes Liquibase "update" logic which ensures that the configuredDatabase
is up to date according to the configured changelog file.void
void
Liquibase.update
(Contexts contexts, LabelExpression labelExpression) Executes Liquibase update with given contexts and label expression.void
Liquibase.update
(Contexts contexts, LabelExpression labelExpression, boolean checkLiquibaseTables) Updates the database schema to the latest version.void
Liquibase.update
(Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.update
(Contexts contexts, LabelExpression labelExpression, Writer output, boolean checkLiquibaseTables) void
Liquibase.updateCountSql
(int count, Contexts contexts, LabelExpression labelExpression, Writer output) void
Liquibase.updateTestingRollback
(String tag, Contexts contexts, LabelExpression labelExpression) void
Liquibase.updateTestingRollback
(Contexts contexts, LabelExpression labelExpression) void
Liquibase.updateToTagSql
(String tag, Contexts contexts, LabelExpression labelExpression, Writer writer) ModifierConstructorDescriptionRuntimeEnvironment
(Database targetDatabase, Contexts contexts, LabelExpression labelExpression) -
Uses of Contexts in liquibase.changelog
Modifier and TypeMethodDescriptionChangeLogParameters.getContexts()
Gets the contexts to filter calls toChangeLogParameters.getValue(String, DatabaseChangeLog)
etc. with.Modifier and TypeMethodDescriptionboolean
FastCheckService.isUpToDateFastCheck
(List<ChangeSetFilter> changesetFilters, Database database, DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labelExpression) Performs check of the historyService to determine if there is no unrun changesets without obtaining an exclusive write lock.void
ChangeLogParameters.setContexts
(Contexts contexts) Sets the contexts to filter calls toChangeLogParameters.getValue(String, DatabaseChangeLog)
etc. with.void
AbstractChangeLogHistoryService.upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) void
ChangeLogHistoryService.upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) Updates null checksum valuesvoid
MockChangeLogHistoryService.upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) void
StandardChangeLogHistoryService.upgradeChecksums
(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels) void
DatabaseChangeLog.validate
(Database database, Contexts contexts, LabelExpression labelExpression) -
Uses of Contexts in liquibase.changelog.filter
-
Uses of Contexts in liquibase.command.core
Modifier and TypeMethodDescriptionprotected void
UpdateTestingRollbackCommandStep.finalUpdate
(Liquibase liquibase, String tag, Contexts contexts, LabelExpression labelExpression) Runs the final update operation in the update-testing-rollback chainprotected void
AbstractFutureRollbackCommandStep.futureRollbackSQL
(Integer count, String tag, Contexts contexts, LabelExpression labelExpression, Writer output, Database database, DatabaseChangeLog changeLog, ChangeExecListener changeExecListener) AbstractUpdateCommandStep.getStandardChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) protected ChangeLogIterator
StatusCommandStep.getStandardChangelogIterator
(Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog, Database database) UpdateCountCommandStep.getStandardChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog databaseChangeLog) UpdateToTagCommandStep.getStandardChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) protected List<ChangeSetFilter>
AbstractUpdateCommandStep.getStandardChangelogIteratorFilters
(Database database, Contexts contexts, LabelExpression labelExpression) AbstractUpdateCommandStep.getStatusChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) UpdateCountCommandStep.getStatusChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog databaseChangeLog) UpdateToTagCommandStep.getStatusChangelogIterator
(CommandScope commandScope, Database database, Contexts contexts, LabelExpression labelExpression, DatabaseChangeLog changeLog) protected void
UpdateTestingRollbackCommandStep.initialUpdate
(Liquibase liquibase, String tag, Contexts contexts, LabelExpression labelExpression) Runs the first update operation in the update-testing-rollback chainboolean
AbstractUpdateCommandStep.isUpToDate
(CommandScope commandScope, Database database, DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labelExpression, OutputStream outputStream) Checks if the database is up-to-date.static Collection<RanChangeSet>
UnexpectedChangesetsCommandStep.listUnexpectedChangeSets
(Database database, DatabaseChangeLog changeLog, Contexts contexts, LabelExpression labelExpression) StatusCommandStep.listUnrunChangeSets
(Contexts contexts, LabelExpression labels, DatabaseChangeLog changeLog, Database database) protected void
UpdateTestingRollbackCommandStep.rollbackUpdate
(Liquibase liquibase, int changesetsToRollback, Contexts contexts, LabelExpression labelExpression) Runs the rollback operation in the update-testing-rollback chain which rolls back the initial update -
Uses of Contexts in liquibase.command.core.helpers
Modifier and TypeMethodDescriptionstatic void
DatabaseChangelogCommandStep.addCommandFiltersMdc
(LabelExpression labelExpression, Contexts contexts)