SQL/MX Programming Manual for Java

SQLJ Runtime Package
HP NonStop SQL/MX Programming Manual for Java523726-003
B-7
sqlj.runtime.ResultSetIterator Interface
sqlj.runtime.ResultSetIterator Interface
The ResultSetIterator interface includes a set of methods that manage the
behavior of iterators and result sets in an SQLJ program. For more information, see
Iterators and Result Sets on page 3-48.
ResultSetIterator Method Details
clearWarnings()
Causes the getWarnings() method to return null until a new warning is reported for
the specified iterator.
Throws
SQLException (if an error occurs while trying to access the database)
close()
Closes the specified iterator object and releases any underlying resources.
public interface ResultSetIterator
Table B-4. ResultSetIterator Methods Summary
Method Description
clearWarnings()
Causes the getWarnings() method to return null until a
new warning is reported for the specified iterator.
close()
Closes the specified iterator object and releases underlying
resources.
getResultSet()
Returns the JDBC ResultSet object associated with the
specified iterator.
getWarnings()
Returns the first warning reported by calls on the specified
iterator and then chains subsequent warnings to the
SQLWarning.
isClosed()
Determines if the iterator has been closed.
next()
Advances the specified iterator to the next row.
public abstract void clearWarnings()
throws SQLException
public abstract void close()
throws SQLException