java.lang.Objectjava.lang.Enum<GeneratedKeys>
java.sql.GeneratedKeys
public enum GeneratedKeys
Enumeration for Statement static fields deemed interesting for EoD developers. The following formal mappings to the underlying JDBC API.
NO_KEYS
is equivalent to Statement.NO_GENERATED_KEYS
ALL_KEYS
is equivalent to Statement.RETURN_GENERATED_KEYS
AutoGeneratedKeys
Enum Constant Summary | |
---|---|
ALL_KEYS
Equivalent to Statement.RETURN_GENERATED_KEYS |
|
NO_KEYS
Equivalent to Statement.NO_GENERATED_KETS |
Method Summary | |
---|---|
static GeneratedKeys |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GeneratedKeys[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GeneratedKeys NO_KEYS
public static final GeneratedKeys ALL_KEYS
Method Detail |
---|
public static final GeneratedKeys[] values()
for(GeneratedKeys c : GeneratedKeys.values()) System.out.println(c);
public static GeneratedKeys valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name