public class SnapshotCommandStep extends AbstractCommandStep
| Modifier and Type | Field and Description |
|---|---|
static String[] |
COMMAND_NAME |
static CommandArgumentDefinition<Database> |
DATABASE_ARG |
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<SnapshotControl> |
SNAPSHOT_CONTROL_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
|
String[][] |
defineCommandNames()
Defines new command names
For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}.
|
Map<String,Object> |
getSnapshotMetadata() |
void |
run(CommandResultsBuilder resultsBuilder)
Performs the business logic.
|
void |
setSnapshotMetadata(Map<String,Object> snapshotMetadata) |
getOrder, 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 static final CommandArgumentDefinition<Database> DATABASE_ARG
public static final CommandArgumentDefinition<SnapshotControl> SNAPSHOT_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.
public void adjustCommandDefinition(CommandDefinition commandDefinition)
AbstractCommandStepadjustCommandDefinition in interface CommandStepadjustCommandDefinition in class AbstractCommandSteppublic void run(CommandResultsBuilder resultsBuilder) throws Exception
CommandStepCommandStep.getOrder(CommandDefinition) order.ExceptionCopyright © 2022 Liquibase.org. All rights reserved.