Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6356028

Change of the GeneratedKeys enums for JDBC 4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.1
    • core-libs
    • None
    • b66
    • generic
    • generic
    • Not verified

      Need to change the enums in GeneratedKeys.java to


      NO_KEYS_RETURNED (Previously NO_KEYS)
      RETURNED_KEYS_DRIVER_DEFINED
      RETURNED_KEYS_COLUMNS_SPECIFIED


      ALL_KEYS goes away.

      The following will be required in the implementation of QueryObjectGenerator

       Modify the GeneratedKeys enums which are currently ALL_KEYS, NO_KEYS
      to be:

      RETURN_KEYS_DRIVER_DEFINED, RETURN_KEYS_COLUMNS_DEFINED, NO_KEYS

      If RETURN_KEYS_DRIVER_DEFINED then the method

      executeUpdate(String query, int autoGeneratedKeys)

      is invoked

      if RETURN_KEYS_COLUMN_SPECIFIED then the method

      executeUpdate(String query, String [] cols)


      The change is need due to the fact that many drivers only support
      executeUpdate(String query, int autoGeneratedKeys)

            ahandasunw Amit Handa (Inactive)
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: