T
- the target List generic typepublic abstract class AbstractListHandler<T> extends Object implements ResultSetHandler<List<T>>
ResultSetHandler
classes that convert ResultSet
into List
.ResultSetHandler
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-2013 The Apache Software Foundation. All Rights Reserved.