public class MapListHandler extends AbstractListHandler<Map<String,Object>>
ResultSetHandler
implementation that converts a
ResultSet
into a List
of Map
s.
This class is thread safe.ResultSetHandler
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 Map<String,Object> |
handleRow(ResultSet resultSet)
Converts the
ResultSet row into a Map object. |
handle
public MapListHandler()
BasicRowProcessor
for conversion.public MapListHandler(RowProcessor convert)
convert
- The RowProcessor
implementation
to use when converting rows into Maps.protected Map<String,Object> handleRow(ResultSet resultSet) throws SQLException
ResultSet
row into a Map
object.handleRow
in class AbstractListHandler<Map<String,Object>>
resultSet
- ResultSet
to process.Map
, never null.SQLException
- if a database access error occursAbstractListHandler.handle(ResultSet)
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.