|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.access.jdbc.LimitResultIterator
public class LimitResultIterator
| Field Summary | |
|---|---|
protected int |
fetchedSoFar
|
protected int |
fetchLimit
|
protected Map<String,Object> |
nextDataObjectIds
|
protected boolean |
nextRow
|
protected int |
offset
|
protected ResultIterator |
wrappedIterator
|
| Constructor Summary | |
|---|---|
LimitResultIterator(ResultIterator wrappedIterator,
int offset,
int fetchLimit)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes ResultIterator and associated ResultSet. |
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. |
Map |
nextDataRow()
Returns the next result row as a Map. |
Object |
nextId(DbEntity entity)
Reads and returns an id column or columns for the DbEntity. |
Map<String,Object> |
nextObjectId(DbEntity entity)
Returns a map of ObjectId values from the next result row. |
protected Map |
readDataRow()
|
Object |
readId(DbEntity entity)
|
void |
skipDataRow()
Skips current data row instead of reading it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ResultIterator wrappedIterator
protected Map<String,Object> nextDataObjectIds
protected int fetchLimit
protected int offset
protected int fetchedSoFar
protected boolean nextRow
| Constructor Detail |
|---|
public LimitResultIterator(ResultIterator wrappedIterator,
int offset,
int fetchLimit)
throws CayenneException
CayenneException| Method Detail |
|---|
protected Map readDataRow()
throws CayenneException
CayenneException
public void close()
throws CayenneException
ResultIterator
close in interface ResultIteratorCayenneException
public List dataRows(boolean close)
throws CayenneException
ResultIterator
dataRows in interface ResultIteratorCayenneExceptionpublic int getDataRowWidth()
ResultIterator
getDataRowWidth in interface ResultIterator
public boolean hasNextRow()
throws CayenneException
ResultIterator
hasNextRow in interface ResultIteratorCayenneException
public Map nextDataRow()
throws CayenneException
ResultIterator
nextDataRow in interface ResultIteratorCayenneException
public Object nextId(DbEntity entity)
throws CayenneException
ResultIteratorResultIterator.nextObjectId(DbEntity)).
nextId in interface ResultIteratorCayenneException
public Map<String,Object> nextObjectId(DbEntity entity)
throws CayenneException
ResultIterator
nextObjectId in interface ResultIteratorCayenneException
public void skipDataRow()
throws CayenneException
ResultIterator
skipDataRow in interface ResultIteratorCayenneException
public Object readId(DbEntity entity)
throws CayenneException
CayenneException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||