Class CopyTableContentsSubcommand
java.lang.Object
net.datenwerke.rs.base.service.datasources.terminal.commands.CopyTableContentsSubcommand
- All Implemented Interfaces:
Hook,CopySubCommandHook,SubCommand,TerminalCommandHook
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCopyTableContentsSubcommand(<any> datasourceServiceProvider, <any> terminalServiceProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAutoCompletEntries(AutocompleteHelper autocompleteHelper, TerminalSession session) booleanconsumes(CommandParser parser, TerminalSession session) execute(CommandParser parser, TerminalSession session)
-
Field Details
-
BASE_COMMAND
- See Also:
-
-
Constructor Details
-
CopyTableContentsSubcommand
public CopyTableContentsSubcommand(<any> datasourceServiceProvider, <any> terminalServiceProvider)
-
-
Method Details
-
consumes
- Specified by:
consumesin interfaceTerminalCommandHook
-
getBaseCommand
- Specified by:
getBaseCommandin interfaceSubCommand
-
execute
@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 - Specified by:
executein interfaceTerminalCommandHook- Throws:
TerminalException
-
addAutoCompletEntries
- Specified by:
addAutoCompletEntriesin interfaceTerminalCommandHook
-