|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultIterator<I>
Return the result of a query as an iterator. An iterator doesn't load the entire dataset into memory at once, it waits until the client application request the next row. This interface is useful for all types of queries and mostly for queries that might return a large number of items.
Implementors should not allow modifications to the iterator, ie.
it is not allowed to call the Iterator.remove()
method.
Method Summary | |
---|---|
void |
close()
Close the iterator and immediately release all resources associated with it. |
boolean |
isClosed()
Check if the iterator has been closed. |
Methods inherited from interface net.sf.basedb.core.query.QueryResult |
---|
getTotalCount |
Methods inherited from interface java.util.Iterator |
---|
hasNext, next, remove |
Method Detail |
---|
void close()
boolean isClosed()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |