public final enum java.sql
GeneratedKeys


Hide details Login
Java SE 6
  
Extends: Enum

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.
since1.6
See also java.sql.AutoGeneratedKeys, executeUpdate(java.lang.String, java.lang.String []), executeUpdate(java.lang.String, int)

Enum constants
final public static GeneratedKeys NO_KEYS_RETURNED
Equivalent to: Statement.executeUpdate(String sql, Statement.NO_GENERATED_KEYS)
final public static GeneratedKeys RETURNED_KEYS_DRIVER_DEFINED
Equivalent to: Statement.executeUpdate(String sql, Statement.RETURN_GENERATED_KEYS)
final public static GeneratedKeys RETURNED_KEYS_COLUMNS_SPECIFIED
Equivalent to: Statement.executeUpdate(String sql, String [] colNames)

Methods
public static GeneratedKeys valueOf(String name)
public static GeneratedKeys[] values()