|
||||||||||
| 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.
| Method Summary | |
|---|---|
void |
close()
Closes ResultIterator and associated ResultSet. |
List<DataRow> |
dataRows(boolean close)
Returns all unread data rows from ResultSet and closes this iterator if asked to do so. |
int |
getDataRowWidth()
Returns the number of columns in the result row. |
boolean |
hasNextRow()
Returns true if there is at least one more record that can be read from the iterator. |
Map<String,Object> |
nextDataRow()
Returns the next result row as a Map. |
Map<String,Object> |
nextObjectId(DbEntity entity)
Returns a map of ObjectId values from the next result row. |
void |
skipDataRow()
Skips current data row instead of reading it. |
| Method Detail |
|---|
List<DataRow> dataRows(boolean close)
throws CayenneException
CayenneException
boolean hasNextRow()
throws CayenneException
CayenneException
Map<String,Object> nextDataRow()
throws CayenneException
CayenneException
Map<String,Object> nextObjectId(DbEntity entity)
throws CayenneException
CayenneException
void skipDataRow()
throws CayenneException
CayenneException
void close()
throws CayenneException
CayenneExceptionint getDataRowWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||