public class SqlTerminalCommand extends java.lang.Object implements InteractiveCommandHook
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_COMMAND |
Constructor and Description |
---|
SqlTerminalCommand(DbPoolService dbPoolService) |
Modifier and Type | Method and Description |
---|---|
void |
addAutoCompletEntries(AutocompleteHelper autocompleteHelper,
TerminalSession session) |
boolean |
consumes(CommandParser parser,
TerminalSession session) |
CommandResult |
ctrlC() |
CommandResult |
execute(CommandParser parser,
TerminalSession session) |
CommandResult |
executeSubsequent(java.lang.String command) |
boolean |
isKeepInteractiveSession() |
public static final java.lang.String BASE_COMMAND
public SqlTerminalCommand(DbPoolService dbPoolService)
public boolean consumes(CommandParser parser, TerminalSession session)
consumes
in interface TerminalCommandHook
@CliHelpMessage(messageClass=DatasourcesMessages.class, name="sql", description="commandSql_description", nonOptArgs=@NonOptArgument(name="datasource",description="commandSql_datasource",mandatory=true)) public CommandResult execute(CommandParser parser, TerminalSession session)
execute
in interface TerminalCommandHook
public CommandResult executeSubsequent(java.lang.String command)
executeSubsequent
in interface InteractiveCommandHook
public void addAutoCompletEntries(AutocompleteHelper autocompleteHelper, TerminalSession session)
addAutoCompletEntries
in interface TerminalCommandHook
public boolean isKeepInteractiveSession()
isKeepInteractiveSession
in interface InteractiveCommandHook
public CommandResult ctrlC()
ctrlC
in interface InteractiveCommandHook