getMoreResults(int current)

Syntax:

boolean getMoreResults(int current)
                       throws SQLException

Description:

Moves to this Statement object's next result, deals with any current ResultSet object(s) according to the instructions specified by the given flag, and returns true if the next result is a ResultSet object.

There are no more results when the following is true:

// stmt is a Statement object
((stmt.getMoreResults(current) == false) && (stmt.getUpdateCount() == -1))

Parameters:

current

one of the following Statement constants indicating what should happen to current ResultSet objects obtained using the method: only supports getResultSet: Statement.CLOSE_CURRENT_RESULT

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

SQLFeatureNotSupportedException - if targetSqlType is a ARRAY, DATALINK, JAVA_OBJECT, REF, ROWID, SQLXML, or STRUCT.

Reference:

For more information, reference JDBC documentation for: Statement.getMoreResults(int)