public class LimitResultIterator extends Object implements ResultIterator
| Modifier and Type | Field and Description |
|---|---|
protected int |
fetchedSoFar |
protected int |
fetchLimit |
protected Map<String,Object> |
nextDataObjectIds |
protected boolean |
nextRow |
protected int |
offset |
protected ResultIterator |
wrappedIterator |
| Constructor and Description |
|---|
LimitResultIterator(ResultIterator wrappedIterator,
int offset,
int fetchLimit) |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected ResultIterator wrappedIterator
protected int fetchLimit
protected int offset
protected int fetchedSoFar
protected boolean nextRow
public LimitResultIterator(ResultIterator wrappedIterator, int offset, int fetchLimit) throws CayenneException
CayenneExceptionpublic void close()
throws CayenneException
ResultIteratorclose in interface ResultIteratorCayenneExceptionpublic List<?> allRows() throws CayenneException
ResultIteratorallRows in interface ResultIteratorCayenneExceptionpublic boolean hasNextRow()
throws CayenneException
ResultIteratorhasNextRow in interface ResultIteratorCayenneExceptionpublic Object nextRow() throws CayenneException
ResultIteratornextRow in interface ResultIteratorCayenneExceptionpublic void skipRow()
throws CayenneException
skipRow in interface ResultIteratorCayenneExceptionCopyright © 2001–2018 Apache Cayenne. All rights reserved.