org.jcon.data
Class ResultSetIterator

java.lang.Object
  extended by org.jcon.data.ResultSetIterator
All Implemented Interfaces:
java.util.Iterator

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

Puts an Iterator wrapper around a ResultSet. next() returns a ResultSetMap object; copy it if you need a modifiable critter.

Author:
Paul Reavis

Constructor Summary
ResultSetIterator(java.sql.ResultSet source)
          Creates a new ResultSetIterator from a ResultSet.
 
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
 

Constructor Detail

ResultSetIterator

public ResultSetIterator(java.sql.ResultSet source)
                  throws java.sql.SQLException
Creates a new ResultSetIterator from a ResultSet.

Throws:
java.sql.SQLException
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