org.springframework.jdbc.core
Interface RowMapper


public interface RowMapper

An interfaces used by the StoredProcedure class for mapping returned result sets. Implementations of this interface perform the actual work of mapping rows, but don't need to worry about exception handling. SQLExceptions will be caught and handled correctly by the JdbcTemplate class.

Author:
Thomas Risberg

Method Summary
 java.lang.Object mapRow(java.sql.ResultSet rs, int rowNum)
          Implementations must implement this method to map each row of data in the ResultSet.
 

Method Detail

mapRow

public java.lang.Object mapRow(java.sql.ResultSet rs,
                               int rowNum)
                        throws java.sql.SQLException
Implementations must implement this method to map each row of data in the ResultSet. This method should not call next() on the ResultSet, but extract the current values.

Parameters:
rs - the ResultSet to map
rowNum - The number of the current row
Throws:
java.sql.SQLException - if a SQLException is encountered getting column values (that is, there's no need to catch SQLException)


Copyright (C) 2003-2004 The Spring Framework Project.