public abstract boolean getMoreResults () throws SQLException

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

Exceptions:
SQLException    if a database access error occurs or this method is called on a closed Statement

See also:
execute