public enum CommandType extends java.lang.Enum<CommandType>
Enum Constant | Description |
---|---|
StoredProcedure |
The name of a stored procedure.
|
TableDirect |
The name of a table.
|
Text |
An SQL text command.
|
Modifier and Type | Method | Description |
---|---|---|
static CommandType |
forValue(int value) |
retreives the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
|
static CommandType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static CommandType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandType Text
public static final CommandType StoredProcedure
public static final CommandType TableDirect
public static CommandType[] values()
for (CommandType c : CommandType.values()) System.out.println(c);
public static CommandType 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 CommandType forValue(int value)
value
- enum constant indexpublic int getValue()