net.ontopia.persistence.proxy
Class QueryResultIterator<E>
java.lang.Object
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.
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 |
result
protected QueryResultIF result
index
protected int index
has_next
protected boolean has_next
QueryResultIterator
public QueryResultIterator(QueryResultIF result)
QueryResultIterator
public QueryResultIterator(QueryResultIF result,
int index)
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.