protected class MappingSqlQueryWithParameters.RowMapperImpl extends java.lang.Object implements RowMapper<T>
mapRow
method for each row.Modifier and Type | Field and Description |
---|---|
private java.util.Map |
context |
private java.lang.Object[] |
params |
Constructor and Description |
---|
MappingSqlQueryWithParameters.RowMapperImpl(java.lang.Object[] parameters,
java.util.Map context)
Use an array results.
|
Modifier and Type | Method and Description |
---|---|
T |
mapRow(java.sql.ResultSet rs,
int rowNum)
Implementations must implement this method to map each row of data
in the ResultSet.
|
private final java.lang.Object[] params
private final java.util.Map context
public MappingSqlQueryWithParameters.RowMapperImpl(java.lang.Object[] parameters, java.util.Map context)
public T mapRow(java.sql.ResultSet rs, int rowNum) throws java.sql.SQLException
RowMapper
next()
on
the ResultSet; it is only supposed to map values of the current row.mapRow
in interface RowMapper<T>
rs
- the ResultSet to map (pre-initialized for the current row)rowNum
- the number of the current rowjava.sql.SQLException
- if a SQLException is encountered getting
column values (that is, there's no need to catch SQLException)