public enum SqlParamDirection extends java.lang.Enum<SqlParamDirection>
Enum Constant | Description |
---|---|
Input |
Used for Input variables.
|
InputOutput |
The parameter can perform both input and output.
|
Output |
Used for Output variable and value will be returned to calling environment.
|
ReturnValue |
The parameter represents a return value from an operation such as a stored procedure, built-in function, or user-defined function.
|
Modifier and Type | Method | Description |
---|---|---|
static SqlParamDirection |
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 SqlParamDirection |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static SqlParamDirection[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlParamDirection Input
public static final SqlParamDirection Output
public static final SqlParamDirection InputOutput
public static final SqlParamDirection ReturnValue
public static SqlParamDirection[] values()
for (SqlParamDirection c : SqlParamDirection.values()) System.out.println(c);
public static SqlParamDirection 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 SqlParamDirection forValue(int value)
value
- enum constant indexpublic int getValue()