public enum StatementType extends Enum<StatementType>
| 枚举常量和说明 |
|---|
Callable
使用 java.sql.CallableStatement
|
Prepared
使用 java.sql.PreparedStatement
|
Statement
使用 java.sql.Statement
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getTypeName() |
static StatementType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static StatementType |
valueOfCode(String code,
StatementType defaultType) |
static StatementType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final StatementType Statement
public static final StatementType Prepared
public static final StatementType Callable
public static StatementType[] values()
for (StatementType c : StatementType.values()) System.out.println(c);
public static StatementType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getTypeName()
public static StatementType valueOfCode(String code, StatementType defaultType)
Copyright © 2021. All rights reserved.