public class SyncHubCommandStep extends AbstractCliWrapperCommandStep
| Modifier and Type | Field and Description |
|---|---|
static CommandArgumentDefinition<String> |
CHANGELOG_FILE_ARG |
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<UUID> |
HUB_CONNECTION_ID_ARG |
static CommandArgumentDefinition<UUID> |
HUB_PROJECT_ID_ARG |
static CommandArgumentDefinition<String> |
PASSWORD_ARG |
static CommandArgumentDefinition<String> |
URL_ARG |
static CommandArgumentDefinition<String> |
USERNAME_ARG |
coreBundleORDER_DEFAULT, ORDER_NOT_APPLICABLE| Constructor and Description |
|---|
SyncHubCommandStep() |
| 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, providedDependencies, requiredDependencies, validatepublic static final String[] COMMAND_NAME
public static final CommandArgumentDefinition<String> URL_ARG
public static final CommandArgumentDefinition<String> DEFAULT_SCHEMA_NAME_ARG
public static final CommandArgumentDefinition<String> DEFAULT_CATALOG_NAME_ARG
public static final CommandArgumentDefinition<String> USERNAME_ARG
public static final CommandArgumentDefinition<String> PASSWORD_ARG
public static final CommandArgumentDefinition<String> CHANGELOG_FILE_ARG
public static final CommandArgumentDefinition<UUID> HUB_CONNECTION_ID_ARG
public static final CommandArgumentDefinition<UUID> HUB_PROJECT_ID_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
public void adjustCommandDefinition(CommandDefinition commandDefinition)
AbstractCommandStepadjustCommandDefinition in interface CommandStepadjustCommandDefinition in class AbstractCommandStepprotected 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 AbstractCliWrapperCommandStepCommandExecutionExceptionCopyright © 2023 Liquibase.org. All rights reserved.