Class BeanStreamingHandler<T>
- java.lang.Object
-
- dev.aherscu.qa.jgiven.jdbc.utils.dbutils.StreamingResultSetHandler<T>
-
- dev.aherscu.qa.jgiven.jdbc.utils.dbutils.BeanStreamingHandler<T>
-
- All Implemented Interfaces:
org.apache.commons.dbutils.ResultSetHandler<Stream<T>>
public class BeanStreamingHandler<T> extends StreamingResultSetHandler<T>
ResultSetHandler implementation that converts the ResultSet into a Stream of Object[]s.- See Also:
ResultSetHandler
-
-
Constructor Summary
Constructors Constructor Description BeanStreamingHandler(Class<? extends T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
handleRow(ResultSet rs)
Row handler.-
Methods inherited from class dev.aherscu.qa.jgiven.jdbc.utils.dbutils.StreamingResultSetHandler
handle
-
-
-
-
Method Detail
-
handleRow
protected T handleRow(ResultSet rs) throws SQLException
Description copied from class:StreamingResultSetHandler
Row handler. Method converts current row into some Java object.- Specified by:
handleRow
in classStreamingResultSetHandler<T>
- Parameters:
rs
- ResultSet to process.- Returns:
- row processing result
- Throws:
SQLException
- error occurs
-
-