saffron.runtime
Class ResultSetIterator
java.lang.Object
|
+--saffron.runtime.ResultSetIterator
- All Implemented Interfaces:
- Iterator
- public class ResultSetIterator
- extends Object
- implements Iterator
A ResultSetIterator
is an adapter which converts a ResultSet
to a Iterator
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resultSet
protected ResultSet resultSet
row
private Object row
ResultSetIterator
public ResultSetIterator(ResultSet resultSet)
moveToNext
private void moveToNext()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator
makeRow
protected Object makeRow()
throws SQLException
- Creates an object representing the current row of the result set.
The default implementation of this method returns a
Row
, but
derived classes may override this.
SQLException