|
|||||||||
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.
For more information see Cayenne User Guide.
Method Summary | |
---|---|
void |
close()
Closes ResultIterator and associated ResultSet. |
java.util.List |
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. |
java.util.Map |
nextDataRow()
Returns the next result row as a Map. |
java.util.Map |
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 |
---|
java.util.List dataRows(boolean close) throws CayenneException
CayenneException
boolean hasNextRow() throws CayenneException
CayenneException
java.util.Map nextDataRow() throws CayenneException
CayenneException
java.util.Map nextObjectId(DbEntity entity) throws CayenneException
CayenneException
void skipDataRow() throws CayenneException
CayenneException
void close() throws CayenneException
CayenneException
int getDataRowWidth()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |