I\'ve got a class that implements Iterator with a ResultSet as a data member. Essentially the class looks like this:
public class A implements Iterator{
Do you expect most of the data in your result set to actually be used? If so, pre-cache it. It's quite trivial using eg Spring
List> rows = jdbcTemplate.queryForList(sql); return rows.iterator();
Adjust to suit your taste.