|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.DataResultIterator<I>
public class DataResultIterator<I extends BasicData>
Return the results of a DataQuery as an iterator. This type
of iterator is only used for batchable items like reporter and raw data.
It is expected that the query uses the stateless Hibernate session available
from DbControl.getStatelessSession(). If
The returned objects are automatically disconnected from the Hibernate session
to avoid memory problems and bypassing permission checks.
DataQuery.iterate(DbControl)| Method Summary | |
|---|---|
void |
close()
From the ResultIterator interface --------------------------------- |
Item |
getItemType()
Get the type of items contained in this list. |
int |
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 |
| Method Detail |
|---|
public int getTotalCount()
getTotalCount in interface QueryResultQuery.setReturnTotalCount(boolean)public void close()
close in interface ResultIterator<I extends BasicData>public boolean isClosed()
ResultIterator
isClosed in interface ResultIterator<I extends BasicData>public boolean hasNext()
hasNext in interface Iterator<I extends BasicData>public I next()
next in interface Iterator<I extends BasicData>public void remove()
remove in interface Iterator<I extends BasicData>UnsupportedOperationException - Alwayspublic Item getItemType()
Item object or null if not known
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||