Package liquibase.command
Class AbstractCommandStep
java.lang.Object
liquibase.command.AbstractCommandStep
- All Implemented Interfaces:
CommandStep
- Direct Known Subclasses:
AbstractArgumentCommandStep
,AbstractChangelogCommandStep
,AbstractCliWrapperCommandStep
,AbstractFutureRollbackCommandStep
,AbstractHelperCommandStep
,AbstractRollbackCommandStep
,AbstractUpdateCommandStep
,CalculateChecksumCommandStep
,ChangelogSyncCommandStep
,ClearChecksumsCommandStep
,DbDocCommandStep
,DiffCommandStep
,DropAllCommandStep
,ExecuteSqlCommandStep
,HistoryCommandStep
,InternalSnapshotCommandStep
,ListLocksCommandStep
,MarkNextChangesetRanCommandStep
,ReleaseLocksCommandStep
,ShowSummaryArgument
,SnapshotCommandStep
,SnapshotReferenceCommandStep
,StartH2CommandStep
,StatusCommandStep
,StopH2CommandStep
,TagCommandStep
,TagExistsCommandStep
,TestSystemDownCommand
,TestSystemUpCommand
,UnexpectedChangesetsCommandStep
,UpdateTestingRollbackCommandStep
,ValidateCommandStep
Convenience base class for
CommandStep
implementations.-
Field Summary
Fields inherited from interface liquibase.command.CommandStep
ORDER_DEFAULT, ORDER_NOT_APPLICABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustCommandDefinition
(CommandDefinition commandDefinition) Default implementation makes no changesint
getOrder
(CommandDefinition commandDefinition) The order in the pipeline that this step should be executed in.Returns a list of all the dependency Classes that this step providesReturn a list of configured Classes that this command requires to be passed as a dependency.void
validate
(CommandScope commandScope) Default implementation does no additional validation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface liquibase.command.CommandStep
defineCommandNames, run
-
Field Details
-
coreBundle
-
-
Constructor Details
-
AbstractCommandStep
public AbstractCommandStep()
-
-
Method Details
-
requiredDependencies
Description copied from interface:CommandStep
Return a list of configured Classes that this command requires to be passed as a dependency.- Specified by:
requiredDependencies
in interfaceCommandStep
- Returns:
- list with the required classes types
-
providedDependencies
Description copied from interface:CommandStep
Returns a list of all the dependency Classes that this step provides- Specified by:
providedDependencies
in interfaceCommandStep
- Returns:
- list with the provided classes types
-
getOrder
Description copied from interface:CommandStep
The order in the pipeline that this step should be executed in. Logic is generally based offCommandDefinition.getName()
but it can check other things in the definition such as arguments.- Specified by:
getOrder
in interfaceCommandStep
- Returns:
CommandStep.ORDER_DEFAULT
if the command scope's name matchesCommandStep.defineCommandNames()
. OtherwiseCommandStep.ORDER_NOT_APPLICABLE
-
validate
Default implementation does no additional validation.- Specified by:
validate
in interfaceCommandStep
- Throws:
CommandValidationException
-
adjustCommandDefinition
Default implementation makes no changes- Specified by:
adjustCommandDefinition
in interfaceCommandStep
-