Package liquibase.command.core
Class UpdateToTagSqlCommandStep
- java.lang.Object
-
- liquibase.command.AbstractCommandStep
-
- liquibase.command.core.AbstractUpdateCommandStep
-
- liquibase.command.core.UpdateToTagCommandStep
-
- liquibase.command.core.UpdateToTagSqlCommandStep
-
- All Implemented Interfaces:
CleanUpCommandStep,CommandStep
public class UpdateToTagSqlCommandStep extends UpdateToTagCommandStep
-
-
Field Summary
Fields Modifier and Type Field Description static CommandArgumentDefinition<String>CHANGELOG_FILE_ARGstatic String[]COMMAND_NAMEstatic CommandArgumentDefinition<String>CONTEXTS_ARGstatic CommandArgumentDefinition<String>LABEL_FILTER_ARGstatic CommandArgumentDefinition<Boolean>OUTPUT_DEFAULT_CATALOG_ARGstatic CommandArgumentDefinition<Boolean>OUTPUT_DEFAULT_SCHEMA_ARGstatic CommandArgumentDefinition<String>TAG_ARG-
Fields inherited from class liquibase.command.core.UpdateToTagCommandStep
CHANGELOG_PARAMETERS
-
Fields inherited from class liquibase.command.core.AbstractUpdateCommandStep
DEFAULT_CHANGE_EXEC_LISTENER_RESULT_KEY
-
Fields inherited from class liquibase.command.AbstractCommandStep
coreBundle
-
Fields inherited from interface liquibase.command.CommandStep
ORDER_DEFAULT, ORDER_NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description UpdateToTagSqlCommandStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustCommandDefinition(CommandDefinition commandDefinition)Default implementation makes no changesString[][]defineCommandNames()Defines new command names For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}.UpdateSummaryEnumgetShowSummary(CommandScope commandScope)List<Class<?>>requiredDependencies()Return a list of configured Classes that this command requires to be passed as a dependency.-
Methods inherited from class liquibase.command.core.UpdateToTagCommandStep
customMdcLogging, getChangelogFileArg, getCommandName, getContextsArg, getLabelFilterArg, getStandardChangelogIterator, getStatusChangelogIterator, postUpdateLog, run
-
Methods inherited from class liquibase.command.core.AbstractUpdateCommandStep
cleanUp, getShowSummaryOutput, getStandardChangelogIteratorFilters, isUpToDate, isUpToDateFastCheck, setDBLock, setFastCheckEnabled
-
Methods inherited from class liquibase.command.AbstractCommandStep
getOrder, providedDependencies, validate
-
-
-
-
Field Detail
-
COMMAND_NAME
public static final String[] COMMAND_NAME
-
CHANGELOG_FILE_ARG
public static final CommandArgumentDefinition<String> CHANGELOG_FILE_ARG
-
LABEL_FILTER_ARG
public static final CommandArgumentDefinition<String> LABEL_FILTER_ARG
-
CONTEXTS_ARG
public static final CommandArgumentDefinition<String> CONTEXTS_ARG
-
TAG_ARG
public static final CommandArgumentDefinition<String> TAG_ARG
-
OUTPUT_DEFAULT_SCHEMA_ARG
public static final CommandArgumentDefinition<Boolean> OUTPUT_DEFAULT_SCHEMA_ARG
-
OUTPUT_DEFAULT_CATALOG_ARG
public static final CommandArgumentDefinition<Boolean> OUTPUT_DEFAULT_CATALOG_ARG
-
-
Method Detail
-
getShowSummary
public UpdateSummaryEnum getShowSummary(CommandScope commandScope)
- Overrides:
getShowSummaryin classUpdateToTagCommandStep
-
defineCommandNames
public String[][] defineCommandNames()
Description copied from interface:CommandStepDefines new command names For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}. If it is a part of `liquibase example init`, this should return {"example", "init"}.This is used to determine the available command names.
This can return null if this step is not defining a new command but "cross-cutting" existing commands
- Specified by:
defineCommandNamesin interfaceCommandStep- Overrides:
defineCommandNamesin classUpdateToTagCommandStep
-
adjustCommandDefinition
public void adjustCommandDefinition(CommandDefinition commandDefinition)
Description copied from class:AbstractCommandStepDefault implementation makes no changes- Specified by:
adjustCommandDefinitionin interfaceCommandStep- Overrides:
adjustCommandDefinitionin classUpdateToTagCommandStep
-
requiredDependencies
public List<Class<?>> requiredDependencies()
Description copied from interface:CommandStepReturn a list of configured Classes that this command requires to be passed as a dependency.- Specified by:
requiredDependenciesin interfaceCommandStep- Overrides:
requiredDependenciesin classUpdateToTagCommandStep- Returns:
- list with the required classes types
-
-