public class MapListHandler extends AbstractListHandler<Map<String,Object>>
ResultSetHandler implementation that converts a
ResultSet into a List of Maps.
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 rs)
Converts the
ResultSet row into a Map object. |
handlepublic 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 rs) throws SQLException
ResultSet row into a Map object.handleRow in class AbstractListHandler<Map<String,Object>>rs - ResultSet to process.Map, never null.SQLException - if a database access error occursAbstractListHandler.handle(ResultSet)Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.