protected class

MappingSqlQueryWithParameters.RowMapperImpl

extends Object
implements RowMapper<T>
java.lang.Object
   ↳ org.springframework.jdbc.object.MappingSqlQueryWithParameters.RowMapperImpl

Class Overview

Implementation of RowMapper that calls the enclosing class's mapRow method for each row.

Summary

Public Constructors
MappingSqlQueryWithParameters.RowMapperImpl(Object[] parameters, Map context)
Use an array results.
Public Methods
T mapRow(ResultSet rs, int rowNum)
Implementations must implement this method to map each row of data in the ResultSet.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.jdbc.core.RowMapper

Public Constructors

public MappingSqlQueryWithParameters.RowMapperImpl (Object[] parameters, Map context)

Use an array results. More efficient if we know how many results to expect.

Public Methods

public T mapRow (ResultSet rs, int rowNum)

Implementations must implement this method to map each row of data in the ResultSet. This method should not call next() on the ResultSet; it is only supposed to map values of the current row.

Parameters
rs the ResultSet to map (pre-initialized for the current row)
rowNum the number of the current row
Returns
  • the result object for the current row
Throws
SQLException