public class CopyTableContentsSubcommand extends java.lang.Object implements CopySubCommandHook
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_COMMAND |
Constructor and Description |
---|
CopyTableContentsSubcommand(<any> datasourceServiceProvider,
<any> terminalServiceProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addAutoCompletEntries(AutocompleteHelper autocompleteHelper,
TerminalSession session) |
boolean |
consumes(CommandParser parser,
TerminalSession session) |
CommandResult |
execute(CommandParser parser,
TerminalSession session) |
java.lang.String |
getBaseCommand() |
public static final java.lang.String BASE_COMMAND
public CopyTableContentsSubcommand(<any> datasourceServiceProvider, <any> terminalServiceProvider)
public boolean consumes(CommandParser parser, TerminalSession session)
consumes
in interface TerminalCommandHook
public java.lang.String getBaseCommand()
getBaseCommand
in interface SubCommand
@CliHelpMessage(messageClass=DatasourcesMessages.class,name="tableContents",description="commandCopyTableContents_description",nonOptArgs={@NonOptArgument(name="sourceDatasource",description="commandCopyTableContents_sourceDatasource",mandatory=true),@NonOptArgument(name="sourceTable",description="commandCopyTableContents_sourceTable",mandatory=true),@NonOptArgument(name="destinationDatasource",description="commandCopyTableContents_destinationDatasource",mandatory=true),@NonOptArgument(name="destinationTable",description="commandCopyTableContents_destinationTable",mandatory=true),@NonOptArgument(name="primaryKeys",description="commandCopyTableContents_primaryKeys",mandatory=true),@NonOptArgument(name="copyPrimaryKeys",description="commandCopyTableContents_copyPrimaryKeys",mandatory=true),@NonOptArgument(name="batchSize",description="commandCopyTableContents_batchSize",mandatory=false)}) public CommandResult execute(CommandParser parser, TerminalSession session) throws TerminalException
execute
in interface TerminalCommandHook
TerminalException
public void addAutoCompletEntries(AutocompleteHelper autocompleteHelper, TerminalSession session)
addAutoCompletEntries
in interface TerminalCommandHook