public class InternalDiffCommandStep extends AbstractCommandStep
| Modifier and Type | Field and Description |
|---|---|
static String[] |
COMMAND_NAME |
static CommandArgumentDefinition<CompareControl> |
COMPARE_CONTROL_ARG |
static CommandArgumentDefinition<ObjectChangeFilter> |
OBJECT_CHANGE_FILTER_ARG |
static CommandArgumentDefinition<Boolean> |
PRINT_RESULT |
static CommandArgumentDefinition<Database> |
REFERENCE_DATABASE_ARG |
static CommandArgumentDefinition<SnapshotControl> |
REFERENCE_SNAPSHOT_CONTROL_ARG |
static CommandArgumentDefinition<SnapshotListener> |
SNAPSHOT_LISTENER_ARG |
static CommandArgumentDefinition<Class[]> |
SNAPSHOT_TYPES_ARG |
static CommandArgumentDefinition<Database> |
TARGET_DATABASE_ARG |
static CommandArgumentDefinition<SnapshotControl> |
TARGET_SNAPSHOT_CONTROL_ARG |
ORDER_DEFAULT, ORDER_NOT_APPLICABLE| Constructor and Description |
|---|
InternalDiffCommandStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustCommandDefinition(CommandDefinition commandDefinition)
Default implementation makes no changes
|
DiffResult |
createDiffResult(CommandScope commandScope) |
protected DatabaseSnapshot |
createReferenceSnapshot(CommandScope commandScope) |
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"}}.
|
static Class<? extends DatabaseObject>[] |
parseSnapshotTypes(String... snapshotTypes) |
void |
run(CommandResultsBuilder resultsBuilder)
Performs the business logic.
|
getOrder, validatepublic static final String[] COMMAND_NAME
public static final CommandArgumentDefinition<Database> REFERENCE_DATABASE_ARG
public static final CommandArgumentDefinition<Database> TARGET_DATABASE_ARG
public static final CommandArgumentDefinition<Class[]> SNAPSHOT_TYPES_ARG
public static final CommandArgumentDefinition<SnapshotListener> SNAPSHOT_LISTENER_ARG
public static final CommandArgumentDefinition<SnapshotControl> REFERENCE_SNAPSHOT_CONTROL_ARG
public static final CommandArgumentDefinition<SnapshotControl> TARGET_SNAPSHOT_CONTROL_ARG
public static final CommandArgumentDefinition<ObjectChangeFilter> OBJECT_CHANGE_FILTER_ARG
public static final CommandArgumentDefinition<CompareControl> COMPARE_CONTROL_ARG
public static final CommandArgumentDefinition<Boolean> PRINT_RESULT
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.
public void adjustCommandDefinition(CommandDefinition commandDefinition)
AbstractCommandStepadjustCommandDefinition in interface CommandStepadjustCommandDefinition in class AbstractCommandSteppublic static Class<? extends DatabaseObject>[] parseSnapshotTypes(String... snapshotTypes)
public void run(CommandResultsBuilder resultsBuilder) throws Exception
CommandStepCommandStep.getOrder(CommandDefinition) order.Exceptionpublic DiffResult createDiffResult(CommandScope commandScope) throws DatabaseException, InvalidExampleException
protected DatabaseSnapshot createTargetSnapshot(CommandScope commandScope) throws DatabaseException, InvalidExampleException
protected DatabaseSnapshot createReferenceSnapshot(CommandScope commandScope) throws DatabaseException, InvalidExampleException
Copyright © 2022 Liquibase.org. All rights reserved.