public enum StatementType extends Enum<StatementType>
| Modifier and Type | Method and Description |
|---|---|
static StatementType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static <T extends Statement> |
valueOf(T statement) |
static StatementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static <T extends Statement> StatementType valueOf(T statement)
T - statement typestatement - statementCopyright © 2019. All rights reserved.