T
- the target List generic typepublic abstract class AbstractListHandler<T> extends Object implements ResultSetHandler<List<T>>
ResultSetHandler
classes that convert ResultSet
into List
.ResultSetHandler
Constructor and Description |
---|
AbstractListHandler() |
Modifier and Type | Method and Description |
---|---|
List<T> |
handle(ResultSet rs)
Whole
ResultSet handler. |
protected abstract T |
handleRow(ResultSet rs)
Row handler.
|
public List<T> handle(ResultSet rs) throws SQLException
ResultSet
handler. It produce List
as
result. To convert individual rows into Java objects it uses
handleRow(ResultSet)
method.handle
in interface ResultSetHandler<List<T>>
rs
- ResultSet
to process.SQLException
- error occurshandleRow(ResultSet)
protected abstract T handleRow(ResultSet rs) throws SQLException
rs
- ResultSet
to process.SQLException
- error occursCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.