Package liquibase.command.core
Class HistoryCommandStep
java.lang.Object
liquibase.command.AbstractCommandStep
liquibase.command.AbstractCliWrapperCommandStep
liquibase.command.core.HistoryCommandStep
- All Implemented Interfaces:
CommandStep
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandArgumentDefinition<String>static final String[]static final CommandArgumentDefinition<String>static final CommandArgumentDefinition<String>static final CommandArgumentDefinition<String>static final CommandArgumentDefinition<String>static final CommandArgumentDefinition<HistoryFormat>static final CommandArgumentDefinition<String>static final CommandArgumentDefinition<String>static final CommandArgumentDefinition<String>Fields inherited from class liquibase.command.AbstractCommandStep
coreBundleFields inherited from interface liquibase.command.CommandStep
ORDER_DEFAULT, ORDER_NOT_APPLICABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustCommandDefinition(CommandDefinition commandDefinition) Default implementation makes no changesprotected String[]collectArguments(CommandScope commandScope) Called byAbstractCliWrapperCommandStep.run(CommandResultsBuilder)to create the actual arguments passed toMain.run(String[]).String[][]Defines new command names For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}.Methods inherited from class liquibase.command.AbstractCliWrapperCommandStep
collectArguments, preRunCheck, removeArgumentValues, runMethods inherited from class liquibase.command.AbstractCommandStep
getOrder, providedDependencies, requiredDependencies, validate
-
Field Details
-
COMMAND_NAME
-
URL_ARG
-
DEFAULT_SCHEMA_NAME_ARG
-
DEFAULT_CATALOG_NAME_ARG
-
USERNAME_ARG
-
PASSWORD_ARG
-
CHANGELOG_FILE_ARG
-
DRIVER_ARG
-
DRIVER_PROPERTIES_FILE_ARG
-
FORMAT_ARG
-
-
Constructor Details
-
HistoryCommandStep
public HistoryCommandStep()
-
-
Method Details
-
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
-
adjustCommandDefinition
Description copied from class:AbstractCommandStepDefault implementation makes no changes- Specified by:
adjustCommandDefinitionin interfaceCommandStep- Overrides:
adjustCommandDefinitionin classAbstractCommandStep
-
collectArguments
Description copied from class:AbstractCliWrapperCommandStepCalled byAbstractCliWrapperCommandStep.run(CommandResultsBuilder)to create the actual arguments passed toMain.run(String[]).Implementations should generally call
AbstractCliWrapperCommandStep.collectArguments(CommandScope, List, String)and possiblyAbstractCliWrapperCommandStep.removeArgumentValues(String[], String...)- Specified by:
collectArgumentsin classAbstractCliWrapperCommandStep- Throws:
CommandExecutionException
-