getMoreResults()
Syntax:
boolean getMoreResults() throws SQLException
Description:
Moves to this Statement object's next result, returns true if it is a ResultSet
object, and implicitly closes any current ResultSet
object(s) obtained with the method getResultSet
.
There are no more results when the following is true:
// stmt is a Statement object ((stmt.getMoreResults() == false) && (stmt.getUpdateCount() == -1))
Returns:
true if the next result is a ResultSet
object; false if it is an update count or there are no more results
Throws:
SQLException - if a database access error occurs or the statement has been closed
Reference:
For more information, reference JDBC documentation for: Statement.getMoreResults()