java.sql
Enum GeneratedKeys

java.lang.Object
  extended by java.lang.Enum<GeneratedKeys>
      extended by java.sql.GeneratedKeys
All Implemented Interfaces:
Serializable, Comparable<GeneratedKeys>

public enum GeneratedKeys
extends Enum<GeneratedKeys>

Enumeration for Statement static fields deemed interesting for EoD developers. The following formal mappings to the underlying JDBC API.

Since:
1.6
See Also:
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

NO_KEYS

public static final GeneratedKeys NO_KEYS
Equivalent to Statement.NO_GENERATED_KETS


ALL_KEYS

public static final GeneratedKeys ALL_KEYS
Equivalent to Statement.RETURN_GENERATED_KEYS

Method Detail

values

public static final GeneratedKeys[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(GeneratedKeys c : GeneratedKeys.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static GeneratedKeys valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name