com.triactive.jdo.store.sql.expr
Class BufferedQueryIterator
java.lang.Object
com.triactive.jdo.store.sql.expr.BufferedQueryIterator
- All Implemented Interfaces:
- java.util.Iterator
- public class BufferedQueryIterator
- extends java.lang.Object
- implements java.util.Iterator
An iterator over all the results from a QueryStatement.
The constructor executes the query and buffers the entire result set in a
list in memory, which is then served up via this iterator.
- Author:
- Mike Martin
Field Summary |
protected java.lang.Object |
last
The last object returned by next() . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
last
protected java.lang.Object last
- The last object returned by
next()
.
BufferedQueryIterator
public BufferedQueryIterator(PersistenceManager pm,
SqlExpression expr)
BufferedQueryIterator
public BufferedQueryIterator(PersistenceManager pm,
QueryStatement stmt,
ResultExpression resultExpr)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
Copyright © 2001-2007 The TJDO Project All Rights Reserved.