org.apache.commons.dbutils.handlers
public class MapListHandler extends GenericListHandler
ResultSetHandler
implementation that converts a
ResultSet
into a List
of Map
s.
This class is thread safe.ResultSetHandler
Modifier and Type | Field and Description |
---|---|
private RowProcessor |
convert
The RowProcessor implementation to use when converting rows
into Maps.
|
Constructor and Description |
---|
MapListHandler()
Creates a new instance of MapListHandler using a
BasicRowProcessor for conversion. |
MapListHandler(RowProcessor convert)
Creates a new instance of MapListHandler.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
handleRow(java.sql.ResultSet rs)
Converts the
ResultSet row into a Map object. |
handle
private RowProcessor convert
public MapListHandler()
BasicRowProcessor
for conversion.public MapListHandler(RowProcessor convert)
convert
- The RowProcessor
implementation
to use when converting rows into Maps.protected java.lang.Object handleRow(java.sql.ResultSet rs) throws java.sql.SQLException
ResultSet
row into a Map
object.handleRow
in class GenericListHandler
rs
- ResultSet
to process.Map
, never null.java.sql.SQLException
- if a database access error occursGenericListHandler.handle(ResultSet)