getRow()

Syntax:

int getRow()
           throws SQLException

Description:

Retrieves the current row number. The first row is number 1, the second number 2, and so on.

Returns:

the current row number; 0 if there is no current row

Throws:

SQLException - if a database access error occurs or this method is called on a closed result set.

Reference:

For more information, reference JDBC documentation for: ResultSet.getRow()