Package org.apache.commons.dbutils
Interface ResultSetHandler<T>
-
- Type Parameters:
T
- the target type the input ResultSet will be converted to.
- All Known Implementing Classes:
AbstractKeyedHandler
,AbstractListHandler
,ArrayHandler
,ArrayListHandler
,BaseResultSetHandler
,BeanHandler
,BeanListHandler
,BeanMapHandler
,ColumnListHandler
,KeyedHandler
,MapHandler
,MapListHandler
,ScalarHandler
public interface ResultSetHandler<T>
Implementations of this interface convert ResultSets into other objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
handle(java.sql.ResultSet rs)
Turn theResultSet
into an Object.
-
-
-
Method Detail
-
handle
T handle(java.sql.ResultSet rs) throws java.sql.SQLException
Turn theResultSet
into an Object.- Parameters:
rs
- TheResultSet
to handle. It has not been touched before being passed to this method.- Returns:
- An Object initialized with
ResultSet
data. It is legal for implementations to returnnull
if theResultSet
contained 0 rows. - Throws:
java.sql.SQLException
- if a database access error occurs
-
-