JDBC code to find number of rows in a ResultSet code example
Example: number of records in a resultset
resultSet.last();
rows = resultSet.getRow();
resultSet.beforeFirst();
return resultSet;
resultSet.last();
rows = resultSet.getRow();
resultSet.beforeFirst();
return resultSet;