Package org.apache.tomcat.dbcp.dbcp2
Enum PoolingConnection.StatementType
- java.lang.Object
- 
- java.lang.Enum<PoolingConnection.StatementType>
- 
- org.apache.tomcat.dbcp.dbcp2.PoolingConnection.StatementType
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<PoolingConnection.StatementType>
 - Enclosing class:
- PoolingConnection
 
 public static enum PoolingConnection.StatementType extends java.lang.Enum<PoolingConnection.StatementType> Statement types.- Since:
- 2.0 protected enum., 2.4.0 public enum.
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description CALLABLE_STATEMENTCallable statement.PREPARED_STATEMENTPrepared statement.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static PoolingConnection.StatementTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PoolingConnection.StatementType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
CALLABLE_STATEMENTpublic static final PoolingConnection.StatementType CALLABLE_STATEMENT Callable statement.
 - 
PREPARED_STATEMENTpublic static final PoolingConnection.StatementType PREPARED_STATEMENT Prepared statement.
 
- 
 - 
Method Detail- 
valuespublic static PoolingConnection.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 (PoolingConnection.StatementType c : PoolingConnection.StatementType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static PoolingConnection.StatementType valueOf(java.lang.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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 
- 
 
-