SQL/MX Programming Manual for Java

SQLJ Runtime Package
HP NonStop SQL/MX Programming Manual for Java523726-003
B-8
ResultSetIterator Method Details
Throws
SQLException (if an error occurs while trying to close the iterator)
See Also
isClosed() on page B-5
getResultSet()
Returns the JDBC ResultSet object associated with the specified iterator. For more
information, see Creating a JDBC Result Set From an Iterator on page 3-57.
For portability, invoke this method before invoking the first next() method on the
iterator.
Returns
The JDBC ResultSet object for the specified iterator. For more information about
JDBC result sets, see the JDBC Driver for SQL/MX Programmer’s Reference.
Throws
SQLException (if the JDBC ResultSet object is unavailable for the specified
iterator)
getWarnings()
Returns the first warning reported by calls on the specified iterator and then chains
subsequent warnings to the
SQLWarning. Each time the iterator advances to the next
row, the warning chain is automatically cleared. This warning chain includes only
warnings caused by the iterator methods.
Warnings caused by statement execution, such as fetching OUT parameters, are
chained on the ExecutionContext object. For more information, see getWarnings()
on page B-14 and SQL Warnings on page 3-63.
Returns
Returns null if there are no errors; otherwise, returns the first SQLWarning
Throws
SQLException (if an error occurs while trying to access the database)
public abstract ResultSet getResultSet()
throws SQLException
public abstract SQLWarning getWarnings()
throws SQLException