org.springframework.jdbc.core
Interface ResultSetExtractor


public interface ResultSetExtractor

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.

Author:
Rod Johnson
Version: $Id: ResultSetExtractor.java,v 1.1 2003/08/22 08:18:33 jhoeller Exp $
Since: April 24, 2003
See Also: RowCallbackHandler

Method Summary
 voidextractData(ResultSet rs)
          Implementations must implement this method to process all rows in the ResultSet.

Method Detail

extractData

public void extractData(ResultSet rs)
throws java.sql.SQLException
Implementations must implement this method to process all rows in the ResultSet.
Parameters:
rs - ResultSet to extract data from. Implementations should not close this: it will be closed by the JdbcTemplate.
Throws:
SQLException - if a SQLException is encountered getting column values or navigating (that is, there's no need to catch SQLException)