public class SnapshotCommandStep extends AbstractCliWrapperCommandStep
| Modifier and Type | Field and Description |
|---|---|
static String[] |
COMMAND_NAME |
static CommandArgumentDefinition<String> |
DEFAULT_CATALOG_NAME_ARG |
static CommandArgumentDefinition<String> |
DEFAULT_SCHEMA_NAME_ARG |
static CommandArgumentDefinition<String> |
DRIVER_ARG |
static CommandArgumentDefinition<String> |
DRIVER_PROPERTIES_FILE_ARG |
static CommandArgumentDefinition<String> |
PASSWORD_ARG |
static CommandArgumentDefinition<String> |
SCHEMAS_ARG |
static CommandArgumentDefinition<String> |
SNAPSHOT_FORMAT_ARG |
static CommandArgumentDefinition<String> |
URL_ARG |
static CommandArgumentDefinition<String> |
USERNAME_ARG |
ORDER_DEFAULT, ORDER_NOT_APPLICABLE| Constructor and Description |
|---|
SnapshotCommandStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustCommandDefinition(CommandDefinition commandDefinition)
Default implementation makes no changes
|
protected String[] |
collectArguments(CommandScope commandScope)
Called by
AbstractCliWrapperCommandStep.run(CommandResultsBuilder) to create the actual arguments passed to Main.run(String[]). |
String[][] |
defineCommandNames()
Defines new command names
For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}.
|
collectArguments, preRunCheck, removeArgumentValues, rungetOrder, validatepublic static final String[] COMMAND_NAME
public static final CommandArgumentDefinition<String> USERNAME_ARG
public static final CommandArgumentDefinition<String> PASSWORD_ARG
public static final CommandArgumentDefinition<String> URL_ARG
public static final CommandArgumentDefinition<String> SCHEMAS_ARG
public static final CommandArgumentDefinition<String> DEFAULT_SCHEMA_NAME_ARG
public static final CommandArgumentDefinition<String> DEFAULT_CATALOG_NAME_ARG
public static final CommandArgumentDefinition<String> SNAPSHOT_FORMAT_ARG
public static final CommandArgumentDefinition<String> DRIVER_ARG
public static final CommandArgumentDefinition<String> DRIVER_PROPERTIES_FILE_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.
protected String[] collectArguments(CommandScope commandScope) throws CommandExecutionException
AbstractCliWrapperCommandStepAbstractCliWrapperCommandStep.run(CommandResultsBuilder) to create the actual arguments passed to Main.run(String[]).
Implementations should generally call AbstractCliWrapperCommandStep.collectArguments(CommandScope, List, String)
and possibly AbstractCliWrapperCommandStep.removeArgumentValues(String[], String...)collectArguments in class AbstractCliWrapperCommandStepCommandExecutionExceptionpublic void adjustCommandDefinition(CommandDefinition commandDefinition)
AbstractCommandStepadjustCommandDefinition in interface CommandStepadjustCommandDefinition in class AbstractCommandStepCopyright © 2022 Liquibase.org. All rights reserved.