TopBlend: Here is the first difference. There are 14 differences. is old. is new.


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 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.

Since:
1.6
See Also:
AutoGeneratedKeys , Statement.executeUpdate(java.lang.String, java.lang.String []) , Statement.executeUpdate(java.lang.String, int)

Enum Constant Summary
NO_KEYS_RETURNED ALL_KEYS
          Equivalent to: Statement.executeUpdate(String sql, Statement.NO_GENERATED_KEYS) to Statement.RETURN_GENERATED_KEYS
RETURNED_KEYS_COLUMNS_SPECIFIED NO_KEYS
          Equivalent to: Statement.executeUpdate(String sql, String [] colNames) to Statement.NO_GENERATED_KETS
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 NO_KEYS


public static final GeneratedKeysNO_KEYS_RETURNED NO_KEYS 
Equivalent to: Statement.executeUpdate(String sql, Statement.NO_GENERATED_KEYS) Equivalent to Statement.NO_GENERATED_KETS


RETURNED_KEYS_DRIVER_DEFINED ALL_KEYS


public static final GeneratedKeysRETURNED_KEYS_DRIVER_DEFINED ALL_KEYS 
Equivalent to: Statement.executeUpdate(String sql, Statement.RETURN_GENERATED_KEYS) Equivalent to Statement.RETURN_GENERATED_KEYS


RETURNED_KEYS_COLUMNS_SPECIFIED


 
public static final GeneratedKeysRETURNED_KEYS_COLUMNS_SPECIFIED 
Equivalent to: Statement.executeUpdate(String sql, String [] colNames)

Method Detail

values


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

Returns:
an array containing the constants of this enum type, inthe order they are 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 anenum 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 constantwith the specified name
NullPointerException - if the argument is null