net.ontopia.persistence.proxy
Class QueryResultIterator<E>

java.lang.Object
  extended by net.ontopia.persistence.proxy.QueryResultIterator<E>
All Implemented Interfaces:
java.util.Iterator<E>

public class QueryResultIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>

INTERNAL: Interator wrapper class for QueryResultIFs. A column index can be specified to iterate certain columns. The default column is 0. The iterator does not currently support the remove() method.


Field Summary
protected  boolean has_next
           
protected  int index
           
protected  QueryResultIF result
           
 
Constructor Summary
QueryResultIterator(QueryResultIF result)
           
QueryResultIterator(QueryResultIF result, int index)
           
 
Method Summary
 void close()
          INTERNAL: Close iterator and release any resources held by it.
protected  void finalize()
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected QueryResultIF result

index

protected int index

has_next

protected boolean has_next
Constructor Detail

QueryResultIterator

public QueryResultIterator(QueryResultIF result)

QueryResultIterator

public QueryResultIterator(QueryResultIF result,
                           int index)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<E>

next

public E next()
Specified by:
next in interface java.util.Iterator<E>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<E>

close

public void close()
INTERNAL: Close iterator and release any resources held by it.


finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object


Copyright © 2000-2012 Ontopia.