butler.sql.util
Class ResultSetIterator
java.lang.Object
butler.sql.util.ResultSetIterator
- All Implemented Interfaces:
- java.util.Iterator
public class ResultSetIterator
- extends java.lang.Object
- implements java.util.Iterator
Loops through a ResultSet and for every row the
process method on the availible RowProcessor is called.
- Author:
- Fredrik Bertilsson
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetIterator
public ResultSetIterator(java.sql.ResultSet rs)
- Creates a ResultSetIterator using the MapProcessor.
ResultSetIterator
public ResultSetIterator(java.sql.ResultSet rs,
RowProcessor processor)
ResultSetIterator
public ResultSetIterator(java.sql.ResultSet rs,
RowProcessor processor,
int maxNoOfRec)
setSource
public void setSource(java.lang.Object source)
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
finalize
protected void finalize()
- Overrides:
finalize
in class java.lang.Object