public class InternalDiffChangelogCommandStep extends InternalDiffCommandStep
| Modifier and Type | Field and Description |
|---|---|
static CommandArgumentDefinition<String> |
CHANGELOG_FILE_ARG |
static String[] |
COMMAND_NAME |
static CommandArgumentDefinition<DiffOutputControl> |
DIFF_OUTPUT_CONTROL_ARG |
COMPARE_CONTROL_ARG, OBJECT_CHANGE_FILTER_ARG, PRINT_RESULT, REFERENCE_DATABASE_ARG, REFERENCE_SNAPSHOT_CONTROL_ARG, SNAPSHOT_LISTENER_ARG, SNAPSHOT_TYPES_ARG, TARGET_DATABASE_ARG, TARGET_SNAPSHOT_CONTROL_ARGORDER_DEFAULT, ORDER_NOT_APPLICABLE| Constructor and Description |
|---|
InternalDiffChangelogCommandStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustCommandDefinition(CommandDefinition commandDefinition)
Default implementation makes no changes
|
protected DiffToChangeLog |
createDiffToChangeLogObject(DiffResult diffResult,
CommandScope commandScope) |
String[][] |
defineCommandNames()
Defines new command names
For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}.
|
protected void |
outputBestPracticeMessage() |
void |
run(CommandResultsBuilder resultsBuilder)
Performs the business logic.
|
createDiffResult, createReferenceSnapshot, createTargetSnapshot, parseSnapshotTypesgetOrder, validatepublic static final String[] COMMAND_NAME
public static final CommandArgumentDefinition<String> CHANGELOG_FILE_ARG
public static final CommandArgumentDefinition<DiffOutputControl> DIFF_OUTPUT_CONTROL_ARG
public String[][] defineCommandNames()
CommandStepThis 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.
defineCommandNames in interface CommandStepdefineCommandNames in class InternalDiffCommandSteppublic void adjustCommandDefinition(CommandDefinition commandDefinition)
AbstractCommandStepadjustCommandDefinition in interface CommandStepadjustCommandDefinition in class InternalDiffCommandSteppublic void run(CommandResultsBuilder resultsBuilder) throws Exception
CommandStepCommandStep.getOrder(CommandDefinition) order.run in interface CommandSteprun in class InternalDiffCommandStepExceptionprotected DiffToChangeLog createDiffToChangeLogObject(DiffResult diffResult, CommandScope commandScope)
protected void outputBestPracticeMessage()
Copyright © 2022 Liquibase.org. All rights reserved.