public interface ResultIterator<T> extends Iterable<T>, AutoCloseable
ObjectContext.iterate(org.apache.cayenne.query.Select, ResultIteratorCallback)
method that handles resource management.Modifier and Type | Method and Description |
---|---|
List<T> |
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.
|
T |
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()
Goes past current row.
|
forEach, iterator, spliterator
boolean hasNextRow()
T nextRow()
void skipRow()
void close()
close
in interface AutoCloseable
Copyright © 2001–2019 Apache Cayenne. All rights reserved.