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 resultSet)
Whole
ResultSet handler. |
protected abstract T |
handleRow(ResultSet resultSet)
Row handler.
|
public AbstractListHandler()
public List<T> handle(ResultSet resultSet) 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>>resultSet - ResultSet to process.SQLException - error occurshandleRow(ResultSet)protected abstract T handleRow(ResultSet resultSet) throws SQLException
resultSet - ResultSet to process.SQLException - error occursCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.