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
CayenneException
public void close() throws CayenneException
ResultIterator
close
in interface ResultIterator
CayenneException
public List<?> allRows() throws CayenneException
ResultIterator
allRows
in interface ResultIterator
CayenneException
public boolean hasNextRow() throws CayenneException
ResultIterator
hasNextRow
in interface ResultIterator
CayenneException
public Object nextRow() throws CayenneException
ResultIterator
nextRow
in interface ResultIterator
CayenneException
public void skipRow() throws CayenneException
skipRow
in interface ResultIterator
CayenneException
Copyright © 2001–2018 Apache Cayenne. All rights reserved.