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, BeanHandler, BeanListHandler, ColumnListHandler, KeyedHandler, MapHandler, MapListHandler, ScalarHandler

public interface ResultSetHandler<T>

Implementations of this interface convert ResultSets into other objects.


Method Summary
 T handle(ResultSet rs)
          Turn the ResultSet into an Object.
 

Method Detail

handle

T handle(ResultSet rs)
         throws SQLException
Turn the ResultSet into an Object.

Parameters:
rs - The ResultSet 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 return null if the ResultSet contained 0 rows.
Throws:
SQLException - if a database access error occurs


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.