org.apache.commons.dbutils
Interface ResultSetHandler
- All Known Implementing Classes:
- ArrayHandler, BeanHandler, org.apache.commons.dbutils.handlers.GenericListHandler, KeyedHandler, MapHandler, ScalarHandler
- public interface ResultSetHandler
Implementations of this interface convert ResultSets into other objects.
Method Summary |
java.lang.Object |
handle(java.sql.ResultSet rs)
Turn the ResultSet into an Object. |
handle
public java.lang.Object handle(java.sql.ResultSet rs)
throws java.sql.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:
java.sql.SQLException
- if a database access error occurs
Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.