When I query a database and receive a (forward-only, read-only) ResultSet back, the ResultSet acts like a list of database rows.
I am trying to find some way to trea
I think most of above implementations has a nondeterministic hasNext method. Calling it two times will move cursor to the second row. I would advise to use something like that:
hasNext
new Iterator[ResultSet] { def hasNext = { !resultSet.isLast } def next() = { resultSet.next() resultSet } }