com.triactive.jdo.store.sql.expr
Class BufferedQueryIterator

java.lang.Object
  extended bycom.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().
 
Constructor Summary
BufferedQueryIterator(PersistenceManager pm, QueryStatement stmt, ResultExpression resultExpr)
           
BufferedQueryIterator(PersistenceManager pm, SqlExpression expr)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

last

protected java.lang.Object last
The last object returned by next().

Constructor Detail

BufferedQueryIterator

public BufferedQueryIterator(PersistenceManager pm,
                             SqlExpression expr)

BufferedQueryIterator

public BufferedQueryIterator(PersistenceManager pm,
                             QueryStatement stmt,
                             ResultExpression resultExpr)
Method Detail

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.