public enum CliCommandType extends java.lang.Enum<CliCommandType> implements CommandType
| Enum Constant and Description |
|---|
CLEAR |
DESCRIBE |
EXECUTE |
EXIT |
HELP |
INSERT_INTO |
INVALID_COMMAND |
LS |
QUIT |
RM |
SELECT |
SET |
SHOW_FUNCTIONS |
SHOW_TABLES |
STOP |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
boolean |
argsAreOptional()
gets the argsAreOptional flag
|
static java.util.List<java.lang.String> |
getAllCommands()
static API to return all commands in this enumeration
|
java.lang.String |
getCommandName()
Gets the command name
|
java.lang.String |
getDescription()
gets the command description
|
java.lang.String |
getUsage()
gets the command usage
|
static CliCommandType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CliCommandType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CliCommandType SHOW_TABLES
public static final CliCommandType SHOW_FUNCTIONS
public static final CliCommandType DESCRIBE
public static final CliCommandType SELECT
public static final CliCommandType EXECUTE
public static final CliCommandType INSERT_INTO
public static final CliCommandType LS
public static final CliCommandType STOP
public static final CliCommandType RM
public static final CliCommandType HELP
public static final CliCommandType SET
public static final CliCommandType CLEAR
public static final CliCommandType EXIT
public static final CliCommandType QUIT
public static final CliCommandType VERSION
public static final CliCommandType INVALID_COMMAND
public static CliCommandType[] values()
for (CliCommandType c : CliCommandType.values()) System.out.println(c);
public static CliCommandType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.util.List<java.lang.String> getAllCommands()
getAllCommands in interface CommandTypepublic java.lang.String getCommandName()
getCommandName in interface CommandTypepublic java.lang.String getDescription()
getDescription in interface CommandTypepublic java.lang.String getUsage()
getUsage in interface CommandTypepublic boolean argsAreOptional()
argsAreOptional in interface CommandType