protected class MappingSqlQueryWithParameters.RowMapperImpl extends Object implements RowMapper<T>
mapRow
method for each row.Constructor and Description |
---|
RowMapperImpl(Object[] parameters,
Map<?,?> context)
Use an array results.
|
Modifier and Type | Method and Description |
---|---|
T |
mapRow(ResultSet rs,
int rowNum)
Implementations must implement this method to map each row of data in the
ResultSet . |
@Nullable public T mapRow(ResultSet rs, int rowNum) throws SQLException
RowMapper
ResultSet
. This method should not call 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 rownull
)SQLException
- if an SQLException is encountered while getting
column values (that is, there's no need to catch SQLException)