public class InternalGenerateChangelogCommandStep extends InternalDiffChangelogCommandStep
| Modifier and Type | Field and Description |
|---|---|
static CommandArgumentDefinition<String> |
AUTHOR_ARG |
static String[] |
COMMAND_NAME |
static CommandArgumentDefinition<String> |
CONTEXT_ARG |
CHANGELOG_FILE_ARG, DIFF_OUTPUT_CONTROL_ARGCOMPARE_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 |
|---|
InternalGenerateChangelogCommandStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustCommandDefinition(CommandDefinition commandDefinition)
Default implementation makes no changes
|
protected DatabaseSnapshot |
createTargetSnapshot(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"}}.
|
void |
run(CommandResultsBuilder resultsBuilder)
Performs the business logic.
|
createDiffToChangeLogObject, outputBestPracticeMessagecreateDiffResult, createReferenceSnapshot, parseSnapshotTypesgetOrder, validatepublic static final String[] COMMAND_NAME
public static final CommandArgumentDefinition<String> AUTHOR_ARG
public static final CommandArgumentDefinition<String> CONTEXT_ARG
public InternalGenerateChangelogCommandStep()
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 InternalDiffChangelogCommandSteppublic void adjustCommandDefinition(CommandDefinition commandDefinition)
AbstractCommandStepadjustCommandDefinition in interface CommandStepadjustCommandDefinition in class InternalDiffChangelogCommandSteppublic void run(CommandResultsBuilder resultsBuilder) throws Exception
CommandStepCommandStep.getOrder(CommandDefinition) order.run in interface CommandSteprun in class InternalDiffChangelogCommandStepExceptionprotected DatabaseSnapshot createTargetSnapshot(CommandScope commandScope) throws DatabaseException, InvalidExampleException
createTargetSnapshot in class InternalDiffCommandStepDatabaseExceptionInvalidExampleExceptionCopyright © 2022 Liquibase.org. All rights reserved.