complex
Class ResultSetIterator

java.lang.Object
  extended bycomplex.ResultSetIterator
All Implemented Interfaces:
java.util.Iterator

public class ResultSetIterator
extends java.lang.Object
implements java.util.Iterator


Field Summary
(package private)  boolean hasNext
           
(package private)  boolean isGeo
           
(package private)  java.sql.ResultSet result
           
(package private)  DBSession session
           
 
Constructor Summary
ResultSetIterator(DBSession session, java.sql.ResultSet result, boolean isGeo)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
          Returns the next row as an DBCell.
 void remove()
          Deletes the current row from the ResultSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

java.sql.ResultSet result

hasNext

boolean hasNext

session

DBSession session

isGeo

boolean isGeo
Constructor Detail

ResultSetIterator

public ResultSetIterator(DBSession session,
                         java.sql.ResultSet result,
                         boolean isGeo)
Method Detail

hasNext

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

next

public java.lang.Object next()
Returns the next row as an DBCell.

Specified by:
next in interface java.util.Iterator
Returns:
An DBCell with the same number of elements as columns in the ResultSet.
See Also:
Iterator.next()

remove

public void remove()
Deletes the current row from the ResultSet.

Specified by:
remove in interface java.util.Iterator
See Also:
Iterator.remove()