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