Enum QueryInfo.StatementType
- java.lang.Object
-
- java.lang.Enum<QueryInfo.StatementType>
-
- com.opencloud.slee.resources.dbquery.QueryInfo.StatementType
-
- All Implemented Interfaces:
Serializable
,Comparable<QueryInfo.StatementType>
- Enclosing interface:
- QueryInfo
public static enum QueryInfo.StatementType extends Enum<QueryInfo.StatementType>
The type of Statement.- Since:
- 1.3
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALLABLE
The setParameters method will supply a#setParameters(java.sql.CallableStatement)
.PREPARED
The setParameters method will supply aQueryInfo.setParameters(java.sql.PreparedStatement)
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryInfo.StatementType
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueryInfo.StatementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREPARED
public static final QueryInfo.StatementType PREPARED
The setParameters method will supply aQueryInfo.setParameters(java.sql.PreparedStatement)
.
-
CALLABLE
public static final QueryInfo.StatementType CALLABLE
The setParameters method will supply a#setParameters(java.sql.CallableStatement)
.
-
-
Method Detail
-
values
public static QueryInfo.StatementType[] 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 (QueryInfo.StatementType c : QueryInfo.StatementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryInfo.StatementType 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
-
-