|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.access.jdbc.LimitResultIterator<T>
public class LimitResultIterator<T>
Field Summary | |
---|---|
protected ResultIterator<T> |
delegate
|
protected int |
fetchedSoFar
|
protected int |
fetchLimit
|
protected Map<String,Object> |
nextDataObjectIds
|
protected boolean |
nextRow
|
protected int |
offset
|
Constructor Summary | |
---|---|
LimitResultIterator(ResultIterator<T> delegate,
int offset,
int fetchLimit)
|
Method Summary | |
---|---|
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. |
Iterator<T> |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ResultIterator<T> delegate
protected Map<String,Object> nextDataObjectIds
protected int fetchLimit
protected int offset
protected int fetchedSoFar
protected boolean nextRow
Constructor Detail |
---|
public LimitResultIterator(ResultIterator<T> delegate, int offset, int fetchLimit)
Method Detail |
---|
public Iterator<T> iterator()
iterator
in interface Iterable<T>
public void close()
ResultIterator
close
in interface ResultIterator<T>
public List<T> allRows()
ResultIterator
allRows
in interface ResultIterator<T>
public boolean hasNextRow()
ResultIterator
hasNextRow
in interface ResultIterator<T>
public T nextRow()
ResultIterator
nextRow
in interface ResultIterator<T>
public void skipRow()
ResultIterator
skipRow
in interface ResultIterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |