com.interface21.jdbc.core
Interface ResultSetExtracter
- public interface ResultSetExtracter
Callback interfaces used by the JdbcTemplate class's
doWithResultSetXXXX() methods.
Implementations of this interface
perform the actual work of extracting results,
but don't need to worry about exception handling. SQLexceptions
will be caught and handled correctly by the JdbcTemplate class.
The RowCallbackHandler is usually a simpler choice for passing to callback methods.
- Since:
- April 24, 2003
- Version:
- $Id: ResultSetExtracter.java,v 1.1 2003/04/24 14:09:58 johnsonr Exp $
- Author:
- Rod Johnson
- See Also:
RowCallbackHandler
|
Method Summary |
void |
extractData(java.sql.ResultSet rs)
Implementations must implement this method to process
all rows in the ResultSet. |
extractData
public void extractData(java.sql.ResultSet rs)
throws java.sql.SQLException
- Implementations must implement this method to process
all rows in the ResultSet.
- Parameters:
ResultSet - ResultSet to extract data from.
Implementations should not close this: it will be closed
by the JdbcTemplate.- Throws:
java.sql.SQLException - if a SQLException is encountered getting
column values or navigating (that is, there's no need to catch SQLException)
Rod Johnson and Spring contributors 2001-2003.