|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultIterator
Defines API of an iterator over the records returned as a result of SelectQuery execution. Usually a ResultIterator is supported by an open java.sql.ResultSet, therefore most of the methods would throw checked exceptions. ResultIterators must be explicitly closed when the user is done working with them.
Result "rows", depending on the query, may be represented as scalar values, DataRows, or Object[] arrays containing a mix of scalars and DataRows.
Method Summary | |
---|---|
List<?> |
allRows()
Returns all yet unread rows from ResultSet without closing it. |
void |
close()
Closes ResultIterator and associated ResultSet. |
boolean |
hasNextRow()
Returns true if there is at least one more record that can be read from the iterator. |
Object |
nextRow()
Returns the next result row that is, depending on the query, may be a scalar value, a DataRow, or an Object[] array containing a mix of scalars and DataRows. |
void |
skipRow()
|
Method Detail |
---|
List<?> allRows() throws CayenneException
CayenneException
boolean hasNextRow() throws CayenneException
CayenneException
Object nextRow() throws CayenneException
CayenneException
void skipRow() throws CayenneException
CayenneException
void close() throws CayenneException
CayenneException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |