public class IteratorResultSetHandler extends Object implements ResultSetHandler
ResultSet
returning an iterator of maps.
The ResultSet
backing the returned ResultSetIterator
will be closed when the connection it came from
is closed.Constructor and Description |
---|
IteratorResultSetHandler(RowHandler rowHandler,
StatementStreamingResultSetCloser streamingResultSetCloser) |
Modifier and Type | Method and Description |
---|---|
ResultSetIterator |
processResultSet(DbConnection connection,
ResultSet resultSet) |
boolean |
requiresMultipleOpenedResults()
Indicates whether or not the resultSet handler requires that the
connection supports multiple opened results in order to process
the resultSet.
|
public IteratorResultSetHandler(RowHandler rowHandler, StatementStreamingResultSetCloser streamingResultSetCloser)
public ResultSetIterator processResultSet(DbConnection connection, ResultSet resultSet) throws SQLException
processResultSet
in interface ResultSetHandler
SQLException
public boolean requiresMultipleOpenedResults()
ResultSetHandler
requiresMultipleOpenedResults
in interface ResultSetHandler
true
is multiple opened results is required, false
otherwiseCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.