|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.ItemResultIterator<I>
public class ItemResultIterator<I extends BasicItem>
Return the results of an ItemQuery as an iterator.
ItemQuery.iterate(DbControl)| Field Summary | |
|---|---|
private ScrollIterator<? extends BasicData> |
data
The internal iterator of BasicData objects. |
private DbControl |
dc
The DbControl tthat was used in the query. |
private Class<I> |
itemClass
The class of the items returned by the query (and this object). |
private Item |
itemType
The type of items returned by the query. |
private long |
totalCount
The total number of items. |
| Constructor Summary | |
|---|---|
ItemResultIterator(ScrollIterator<? extends BasicData> data,
DbControl dc,
Class<I> itemClass,
long totalCount)
|
|
| Method Summary | |
|---|---|
void |
close()
From the ResultIterator interface --------------------------------- |
Item |
getItemType()
Get the type of items contained in this list. |
long |
getTotalCount()
From the QueryResult interface --------------------------------- |
boolean |
hasNext()
|
boolean |
isClosed()
Check if the iterator has been closed. |
I |
next()
|
void |
remove()
Not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final ScrollIterator<? extends BasicData> data
private final DbControl dc
private final Class<I extends BasicItem> itemClass
private final long totalCount
private final Item itemType
| Constructor Detail |
|---|
ItemResultIterator(ScrollIterator<? extends BasicData> data,
DbControl dc,
Class<I> itemClass,
long totalCount)
| Method Detail |
|---|
public long getTotalCount()
getTotalCount in interface QueryResultQuery.setReturnTotalCount(boolean)public void close()
close in interface ResultIterator<I extends BasicItem>public boolean isClosed()
ResultIterator
isClosed in interface ResultIterator<I extends BasicItem>public boolean hasNext()
hasNext in interface Iterator<I extends BasicItem>public I next()
next in interface Iterator<I extends BasicItem>public void remove()
remove in interface Iterator<I extends BasicItem>UnsupportedOperationException - Alwayspublic Item getItemType()
Item object or null if not known
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||