defineCommandNames() matches the command,
add the dependencies and run the pipeline.
CommandScope#execute()
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ORDER_DEFAULT
Deprecated
Returned by getOrder(CommandDefinition) if you are unsure where in the pipeline your step should go, use this value.
|
| public static final int | ORDER_NOT_APPLICABLE
Deprecated
Returned by getOrder(CommandDefinition) if this step should not be a part of the pipeline.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | adjustCommandDefinition(CommandDefinition commandDefinition)
Called by the command pipeline setup to adjust the |
| public String[][] | defineCommandNames()
Defines new command names For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}. |
| public int | Returns: -1 if this step does not apply to the given command
Deprecated
The order in the pipeline that this step should be executed in.
Logic is generally based off |
| public List | Returns: list with the provided classes typesReturns a list of all the dependency Classes that this step provides |
| public List | Returns: list with the required classes typesReturn a list of configured Classes that this command requires to be passed as a dependency. |
| public void | |
| public void | validate(CommandScope commandScope)
Validates that the |
| ORDER_DEFAULT | back to summary |
|---|---|
| public static final int ORDER_DEFAULT
Deprecated
Returned by | |
| ORDER_NOT_APPLICABLE | back to summary |
|---|---|
| public static final int ORDER_NOT_APPLICABLE
Deprecated
Returned by | |
| adjustCommandDefinition | back to summary |
|---|---|
| public void adjustCommandDefinition(CommandDefinition commandDefinition) Called by the command pipeline setup to adjust the | |
| defineCommandNames | back to summary |
|---|---|
| public String[][] defineCommandNames() Defines 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 | |
| getOrder | back to summary |
|---|---|
| public int getOrder(CommandDefinition commandDefinition)
Deprecated
The order in the pipeline that this step should be executed in.
Logic is generally based off
| |
| providedDependencies | back to summary |
|---|---|
| public List Returns a list of all the dependency Classes that this step provides | |
| requiredDependencies | back to summary |
|---|---|
| public List Return a list of configured Classes that this command requires to be passed as a dependency. | |
| run | back to summary |
|---|---|
| public void run(CommandResultsBuilder resultsBuilder) throws Exception Performs the business logic.
This method should not be called directly. It is called by the overall pipeline logic in the | |
| validate | back to summary |
|---|---|
| public void validate(CommandScope commandScope) throws CommandValidationException Validates that the | |