ResultSet.next

ResultSet.next

Interface Overview | Interface Members | This Package | All Packages

Syntax
public abstract boolean next() throws SQLException
Returns
true if the new current row is valid; false if there are no more rows
Description
A ResultSet is initially positioned before its first row; the first call to next makes the first row the current row; the second call makes the second row the current row, etc.

If an input stream from the previous row is open, it is implicitly closed. The ResultSet's warning chain is cleared when a new row is read.

Exceptions
SQLException if a database-access error occurs.