public enum SqlCommandType extends java.lang.Enum<SqlCommandType>
Enum Constant | Description |
---|---|
StoredProcedure |
The name of a stored procedure.
|
Text |
An SQL text command.
|
Modifier and Type | Method | Description |
---|---|---|
static SqlCommandType |
getSqlCommandType(int value) |
retreives the enum constant of the specified value, if exists.
|
static SqlCommandType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SqlCommandType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlCommandType Text
public static final SqlCommandType StoredProcedure
public static SqlCommandType[] values()
for (SqlCommandType c : SqlCommandType.values()) System.out.println(c);
public static SqlCommandType 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 SqlCommandType getSqlCommandType(int value) throws java.lang.IllegalArgumentException
value
- enum constant indexjava.lang.IllegalArgumentException