java.lang.Object java.lang.Enum<GeneratedKeys> java.sql.GeneratedKeys
public enum GeneratedKeys
Enumeration used by the Update annotation elmement keys to indicate whether auto-generated keys will be returned by a method decorated by the Update annotation. The enumeration is also used to indicate whether the JDBC driver determines which columns are to be returned as the auto-generated keys or the user has defined the columns to be returned as the auto-generated keys.
Enumeration for Statement static fields deemed interesting for EoD developers. The following formal mappings to the underlying JDBC API.
Enum Constant Summary | |
---|---|
NO_KEYS_RETURNED
Equivalent to: Statement.executeUpdate(String sql, Statement.NO_GENERATED_KEYS) |
|
RETURNED_KEYS_COLUMNS_SPECIFIED
Equivalent to: Statement.executeUpdate(String sql, String [] colNames) |
|
RETURNED_KEYS_DRIVER_DEFINED
Equivalent to: Statement.executeUpdate(String sql, Statement.RETURN_GENERATED_KEYS) |
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, inthe order they are 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 GeneratedKeysNO_KEYS_RETURNEDNO_KEYS
public static final GeneratedKeysRETURNED_KEYS_DRIVER_DEFINEDALL_KEYS
public static final GeneratedKeysRETURNED_KEYS_COLUMNS_SPECIFIED
Method Detail |
---|
public static GeneratedKeys[] values()
for (GeneratedKeys c : GeneratedKeys.values()) System.out.println(c);
public static GeneratedKeys valueOf(String name)