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,InitProjectCommandStep,InternalSnapshotCommandStep,ListLocksCommandStep,LpmCommandStep,MarkNextChangesetRanCommandStep,ReleaseLocksCommandStep,ShowSummaryArgument,SnapshotCommandStep,SnapshotReferenceCommandStep,StartH2CommandStep,StatusCommandStep,StopH2CommandStep,TagCommandStep,TagExistsCommandStep,TestSystemDownCommand,TestSystemUpCommand,UnexpectedChangesetsCommandStep,UpdateTestingRollbackCommandStep,ValidateCommandStep
Convenience base class for
CommandStep implementations.-
Field Summary
FieldsFields 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 changesintgetOrder(CommandDefinition commandDefinition) The order in the pipeline that this step should be executed in.protected voidhandleOutput(CommandResultsBuilder resultsBuilder, String output) 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.voidvalidate(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, waitMethods inherited from interface liquibase.command.CommandStep
defineCommandNames, isInternal, run
-
Field Details
-
coreBundle
-
-
Constructor Details
-
AbstractCommandStep
public AbstractCommandStep()
-
-
Method Details
-
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- Returns:
- list with the required classes types
-
providedDependencies
Description copied from interface:CommandStepReturns a list of all the dependency Classes that this step provides- Specified by:
providedDependenciesin interfaceCommandStep- Returns:
- list with the provided classes types
-
getOrder
Description copied from interface:CommandStepThe 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:
getOrderin interfaceCommandStep- Returns:
CommandStep.ORDER_DEFAULTif the command scope's name matchesCommandStep.defineCommandNames(). OtherwiseCommandStep.ORDER_NOT_APPLICABLE
-
validate
Default implementation does no additional validation.- Specified by:
validatein interfaceCommandStep- Throws:
CommandValidationException
-
adjustCommandDefinition
Default implementation makes no changes- Specified by:
adjustCommandDefinitionin interfaceCommandStep
-
handleOutput
- Parameters:
resultsBuilder-output-- Throws:
IOException- Writes the output of command results to the stdout buffer
-