nextRow()

Retrieves the next row in the query result vector .

Syntax

Vector nextRow()
 

Parameters

None.

Return values

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

Exceptions

DtpConnectionException - If a database error occurs.

Notes

The nextRow() method returns one row of data from the query associated with the current relationship database. 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 data from the initial query.

See also

hasMoreRows(), executeSQL(), getUpdateCount()

Copyright IBM Corp. 2003