Class MapStreamingHandler
- java.lang.Object
-
- dev.aherscu.qa.jgiven.jdbc.utils.dbutils.StreamingResultSetHandler<Map<String,Object>>
-
- dev.aherscu.qa.jgiven.jdbc.utils.dbutils.MapStreamingHandler
-
- All Implemented Interfaces:
org.apache.commons.dbutils.ResultSetHandler<Stream<Map<String,Object>>>
public class MapStreamingHandler extends StreamingResultSetHandler<Map<String,Object>>
ResultSetHandler implementation that converts the ResultSet into a Stream of Map. There is one map for each row in the ResultSet. The keys are the column names (as returned by - See Also:
ResultSetHandler
-
-
Constructor Summary
Constructors Constructor Description MapStreamingHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
handleRow(ResultSet resultSet)
Row handler.-
Methods inherited from class dev.aherscu.qa.jgiven.jdbc.utils.dbutils.StreamingResultSetHandler
handle
-
-
-
-
Method Detail
-
handleRow
protected Map<String,Object> handleRow(ResultSet resultSet) throws SQLException
Description copied from class:StreamingResultSetHandler
Row handler. Method converts current row into some Java object.- Specified by:
handleRow
in classStreamingResultSetHandler<Map<String,Object>>
- Parameters:
resultSet
- ResultSet to process.- Returns:
- row processing result
- Throws:
SQLException
- error occurs
-
-