is new.
java.lang.Objectjava.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.
,
Statement.executeUpdate(java.lang.String, java.lang.String [])
,
Statement.executeUpdate(java.lang.String, int)
| 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 |
|---|
NO_KEYS_RETURNED
public static final GeneratedKeysNO_KEYS_RETURNED
NO_KEYS
Equivalent to: Statement.executeUpdate(String sql, Statement.NO_GENERATED_KEYS)
RETURNED_KEYS_DRIVER_DEFINED
public static final GeneratedKeysRETURNED_KEYS_DRIVER_DEFINED
ALL_KEYS
Equivalent to: Statement.executeUpdate(String sql, Statement.RETURN_GENERATED_KEYS)
RETURNED_KEYS_COLUMNS_SPECIFIED
public static final
GeneratedKeys
RETURNED_KEYS_COLUMNS_SPECIFIED
Equivalent to: Statement.executeUpdate(String sql, String [] colNames)
| Method Detail |
|---|
public static GeneratedKeys[] values()
for (GeneratedKeys c : GeneratedKeys.values()) System.out.println(c);
public static GeneratedKeys valueOf(String name)