So far I have been using ‘SimpleJdbcTemplate’ and used a ‘RowCallbackHadler’ to process the whole result of the query. At the moment I would like to receive an iterator-like object, which I could query for the next table row whe interested. Is the following behaviour possible in Spring/jdbc (preferrably slpring)?
So far I have been using ‘SimpleJdbcTemplate’ and used a ‘RowCallbackHadler’ to process the
Share
You can try using the JdbcTemplate method queryforRowSet
http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/jdbc/core/JdbcTemplate.html#queryForRowSet%28java.lang.String,%20java.lang.Object…%29