de.mguennewig.pobjects
Interface PObjResultSet

All Known Implementing Classes:
JdbcQuery.PObjJdbcResultSet

public interface PObjResultSet

A result set provides an interface to process the results of a Query row by row.

It maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row. The next() method moves the cursor to the next row, and because it returns false when there are no more rows in the result set, it can be used in a while loop to iterate through the result set.

Author:
Michael Günnewig
See Also:
ResultSet

Method Summary
 void close()
          Closes this result set and frees any held resources.
 Record[] getRow()
          Retrieves the current row from this result set.
 boolean next()
          Moves cursor to the next row in the result set.
 

Method Detail

close

void close()
Closes this result set and frees any held resources.

After closing a result set it can not be used anymore.

Throws:
PObjReadError - if any database error occurs.

next

boolean next()
Moves cursor to the next row in the result set.

Returns:
true if the next row is valid, otherwise false.
Throws:
PObjReadError - if any database error occurs.

getRow

Record[] getRow()
Retrieves the current row from this result set.

Throws:
PObjReadError - if any database error occurs.