nextRow()

Retrieves the next row from the query result .

Syntax

Vector nextRow()
 

Parameters

None.

Return values

Returns the next row of the query result as a Vector object.

Exceptions

CwDBSQLException - If a database error occurs.

Notes

The nextRow() method returns one row of data from the query result associated with the current connection. Use this method to retrieve results from a query that returns data. Such queries include a

SELECT statement and a stored procedure. Only one query can be associated with the connection at a time. Therefore, if you execute another query before nextRow() returns the last row of data, you lose the query result from the initial query.

See also

hasMoreRows(), executePreparedSQL(), executeSQL(), executeStoredProcedure()

Copyright IBM Corp. 2003