Package com.alibaba.druid.sql.ast
Enum SQLParameter.ParameterType
- java.lang.Object
-
- java.lang.Enum<SQLParameter.ParameterType>
-
- com.alibaba.druid.sql.ast.SQLParameter.ParameterType
-
- All Implemented Interfaces:
Serializable,Comparable<SQLParameter.ParameterType>
- Enclosing class:
- SQLParameter
public static enum SQLParameter.ParameterType extends Enum<SQLParameter.ParameterType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SQLParameter.ParameterTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SQLParameter.ParameterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final SQLParameter.ParameterType DEFAULT
-
IN
public static final SQLParameter.ParameterType IN
-
OUT
public static final SQLParameter.ParameterType OUT
-
INOUT
public static final SQLParameter.ParameterType INOUT
-
-
Method Detail
-
values
public static SQLParameter.ParameterType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SQLParameter.ParameterType c : SQLParameter.ParameterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SQLParameter.ParameterType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-