|
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.ReporterScoreResultIterator
public class ReporterScoreResultIterator
This is a temporary solution for returning reporter list scores as an iterator. This class will be replaced by a more generic query functionality in the future.
ReporterList| Field Summary | |
|---|---|
private ScrollIterator<ReporterListScoreData> |
data
The internal iterator of data layer objects. |
private DbControl |
dc
The DbControl that was used in the query. |
private Item |
itemType
The type of items returned by the query. |
private long |
totalCount
The total number of items. |
| Constructor Summary | |
|---|---|
ReporterScoreResultIterator(ScrollIterator<ReporterListScoreData> data,
DbControl dc,
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. |
ReporterScore |
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<ReporterListScoreData> data
private final DbControl dc
private final long totalCount
private final Item itemType
| Constructor Detail |
|---|
ReporterScoreResultIterator(ScrollIterator<ReporterListScoreData> data,
DbControl dc,
long totalCount)
| Method Detail |
|---|
public long getTotalCount()
getTotalCount in interface QueryResultQuery.setReturnTotalCount(boolean)public void close()
close in interface ResultIterator<ReporterScore>public boolean isClosed()
ResultIterator
isClosed in interface ResultIterator<ReporterScore>public boolean hasNext()
hasNext in interface Iterator<ReporterScore>public ReporterScore next()
next in interface Iterator<ReporterScore>public void remove()
remove in interface Iterator<ReporterScore>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 | ||||||||