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

ResultSet.getStatement()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 8.0pe
    • core-libs
    • b53
    • sparc
    • solaris_8
    • Not verified

      public Statement getStatement()
                             throws SQLException
            Retrieves the Statement object that produced this ResultSet object.
            If the result set was generated some other way, such as by a
            DatabaseMetaData method, this method returns null.

      Two interpretations here:
      - Some contend that, excepting the DatabaseMetaData case, in addition to Statement class objects, Statement subclass object should be returned if they were the object that produced the ResultSet.

      - Some contend that, excepting the DatabaseMetaData case, one should only returns the Statement object when the object is a Statement, and not when
      it is a PreparedStatement, or CallableStatement.
      Which is it ?
      ###@###.### 2004-02-02

            lancea Lance Andersen
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: