# Uses of Interface
org.springframework.jdbc.core.RowMapper

Packages that use RowMapper
Package
Description
org.springframework.jdbc.core
Provides the core JDBC framework, based on JdbcTemplate and its associated callback interfaces and helper objects.
org.springframework.jdbc.core.metadata
Context metadata abstraction for the configuration and execution of table inserts and stored procedure calls.
org.springframework.jdbc.core.namedparam
JdbcTemplate variant with named parameter support.
org.springframework.jdbc.core.simple
Simplification layer for common JDBC interactions.
org.springframework.jdbc.object
The classes in this package represent RDBMS queries, updates, and stored procedures as threadsafe, reusable objects.

## Uses of RowMapper in org.springframework.jdbc.core

Classes in org.springframework.jdbc.core that implement RowMapper
Modifier and Type
Class
Description
`class`
`BeanPropertyRowMapper<T>`
`RowMapper` implementation that converts a row into a new instance of the specified mapped target class.
`class`
`ColumnMapRowMapper`
`RowMapper` implementation that creates a `java.util.Map` for each row, representing all columns as key-value pairs: one entry for each column, with the column name as key.
`class`
`DataClassRowMapper<T>`
`RowMapper` implementation that converts a row into a new instance of the specified mapped target class.
`class`
`SimplePropertyRowMapper<T>`
`RowMapper` implementation that converts a row into a new instance of the specified mapped target class.
`class`
`SingleColumnRowMapper<T>`
`RowMapper` implementation that converts a single column into a single result value per row.
Methods in org.springframework.jdbc.core that return RowMapper
Modifier and Type
Method
Description
`protected RowMapper<Map<String,Object>>`
JdbcTemplate.`getColumnMapRowMapper()`
Create a new RowMapper for reading columns as key-value pairs.
`RowMapper<?>`
ResultSetSupportingSqlParameter.`getRowMapper()`
Return the RowMapper held by this parameter, if any.
`protected <T> RowMapper<T>`
JdbcTemplate.`getSingleColumnRowMapper(Class<T> requiredType)`
Create a new RowMapper for reading result objects from a single column.
Methods in org.springframework.jdbc.core with parameters of type RowMapper
Modifier and Type
Method
Description
`<T> List<T>`
JdbcOperations.`query(String sql, Object[] args, int[] argTypes, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a result object via a RowMapper.
`<T> List<T>`
JdbcOperations.`query(String sql, Object[] args, RowMapper<T> rowMapper)`
Deprecated.
as of 5.3, in favor of `JdbcOperations.query(String, RowMapper, Object...)`
`<T> List<T>`
JdbcOperations.`query(String sql, PreparedStatementSetter pss, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a PreparedStatementSetter implementation that knows how to bind values to the query, mapping each row to a result object via a RowMapper.
`<T> List<T>`
JdbcOperations.`query(String sql, RowMapper<T> rowMapper)`
Execute a query given static SQL, mapping each row to a result object via a RowMapper.
`<T> List<T>`
JdbcOperations.`query(String sql, RowMapper<T> rowMapper, Object... args)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a result object via a RowMapper.
`<T> List<T>`
JdbcOperations.`query(PreparedStatementCreator psc, RowMapper<T> rowMapper)`
Query using a prepared statement, mapping each row to a result object via a RowMapper.
`<T> List<T>`
JdbcTemplate.`query(String sql, Object[] args, int[] argTypes, RowMapper<T> rowMapper)`
`<T> List<T>`
JdbcTemplate.`query(String sql, Object[] args, RowMapper<T> rowMapper)`
Deprecated.
`<T> List<T>`
JdbcTemplate.`query(String sql, PreparedStatementSetter pss, RowMapper<T> rowMapper)`
`<T> List<T>`
JdbcTemplate.`query(String sql, RowMapper<T> rowMapper)`
`<T> List<T>`
JdbcTemplate.`query(String sql, RowMapper<T> rowMapper, Object... args)`
`<T> List<T>`
JdbcTemplate.`query(PreparedStatementCreator psc, RowMapper<T> rowMapper)`
`<T> T`
JdbcOperations.`queryForObject(String sql, Object[] args, int[] argTypes, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping a single result row to a result object via a RowMapper.
`<T> T`
JdbcOperations.`queryForObject(String sql, Object[] args, RowMapper<T> rowMapper)`
Deprecated.
as of 5.3, in favor of `JdbcOperations.queryForObject(String, RowMapper, Object...)`
`<T> T`
JdbcOperations.`queryForObject(String sql, RowMapper<T> rowMapper)`
Execute a query given static SQL, mapping a single result row to a result object via a RowMapper.
`<T> T`
JdbcOperations.`queryForObject(String sql, RowMapper<T> rowMapper, Object... args)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping a single result row to a result object via a RowMapper.
`<T> T`
JdbcTemplate.`queryForObject(String sql, Object[] args, int[] argTypes, RowMapper<T> rowMapper)`
`<T> T`
JdbcTemplate.`queryForObject(String sql, Object[] args, RowMapper<T> rowMapper)`
Deprecated.
`<T> T`
JdbcTemplate.`queryForObject(String sql, RowMapper<T> rowMapper)`
`<T> T`
JdbcTemplate.`queryForObject(String sql, RowMapper<T> rowMapper, Object... args)`
`<T> Stream<T>`
JdbcOperations.`queryForStream(String sql, PreparedStatementSetter pss, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a PreparedStatementSetter implementation that knows how to bind values to the query, mapping each row to a result object via a RowMapper, and turning it into an iterable and closeable Stream.
`<T> Stream<T>`
JdbcOperations.`queryForStream(String sql, RowMapper<T> rowMapper)`
Execute a query given static SQL, mapping each row to a result object via a RowMapper, and turning it into an iterable and closeable Stream.
`<T> Stream<T>`
JdbcOperations.`queryForStream(String sql, RowMapper<T> rowMapper, Object... args)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a result object via a RowMapper, and turning it into an iterable and closeable Stream.
`<T> Stream<T>`
JdbcOperations.`queryForStream(PreparedStatementCreator psc, RowMapper<T> rowMapper)`
Query using a prepared statement, mapping each row to a result object via a RowMapper, and turning it into an iterable and closeable Stream.
`<T> Stream<T>`
JdbcTemplate.`queryForStream(String sql, PreparedStatementSetter pss, RowMapper<T> rowMapper)`
`<T> Stream<T>`
JdbcTemplate.`queryForStream(String sql, RowMapper<T> rowMapper)`
`<T> Stream<T>`
JdbcTemplate.`queryForStream(String sql, RowMapper<T> rowMapper, Object... args)`
`<T> Stream<T>`
JdbcTemplate.`queryForStream(PreparedStatementCreator psc, PreparedStatementSetter pss, RowMapper<T> rowMapper)`
Query using a prepared statement, allowing for a PreparedStatementCreator and a PreparedStatementSetter.
`<T> Stream<T>`
JdbcTemplate.`queryForStream(PreparedStatementCreator psc, RowMapper<T> rowMapper)`
Constructors in org.springframework.jdbc.core with parameters of type RowMapper
Modifier
Constructor
Description
``
`ResultSetSupportingSqlParameter(String name, int sqlType, RowMapper<?> rm)`
Create a new ResultSetSupportingSqlParameter.
``
`RowMapperResultSetExtractor(RowMapper<T> rowMapper)`
Create a new RowMapperResultSetExtractor.
``
`RowMapperResultSetExtractor(RowMapper<T> rowMapper, int rowsExpected)`
Create a new RowMapperResultSetExtractor.
``
`SqlInOutParameter(String name, int sqlType, RowMapper<?> rm)`
Create a new SqlInOutParameter.
``
`SqlOutParameter(String name, int sqlType, RowMapper<?> rm)`
Create a new SqlOutParameter.
``
`SqlReturnResultSet(String name, RowMapper<?> mapper)`
Create a new instance of the `SqlReturnResultSet` class.

## Uses of RowMapper in org.springframework.jdbc.core.metadata

Methods in org.springframework.jdbc.core.metadata with parameters of type RowMapper
Modifier and Type
Method
Description
`SqlParameter`
CallMetaDataContext.`createReturnResultSetParameter(String parameterName, RowMapper<?> rowMapper)`
Create a ReturnResultSetParameter/SqlOutParameter depending on the support provided by the JDBC driver used for the database in use.

## Uses of RowMapper in org.springframework.jdbc.core.namedparam

Methods in org.springframework.jdbc.core.namedparam with parameters of type RowMapper
Modifier and Type
Method
Description
`<T> List<T>`
NamedParameterJdbcOperations.`query(String sql, Map<String,?> paramMap, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a Java object via a RowMapper.
`<T> List<T>`
NamedParameterJdbcOperations.`query(String sql, SqlParameterSource paramSource, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a Java object via a RowMapper.
`<T> List<T>`
NamedParameterJdbcOperations.`query(String sql, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL, mapping each row to a Java object via a RowMapper.
`<T> List<T>`
NamedParameterJdbcTemplate.`query(String sql, Map<String,?> paramMap, RowMapper<T> rowMapper)`
`<T> List<T>`
NamedParameterJdbcTemplate.`query(String sql, SqlParameterSource paramSource, RowMapper<T> rowMapper)`
`<T> List<T>`
NamedParameterJdbcTemplate.`query(String sql, RowMapper<T> rowMapper)`
`<T> T`
NamedParameterJdbcOperations.`queryForObject(String sql, Map<String,?> paramMap, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping a single result row to a Java object via a RowMapper.
`<T> T`
NamedParameterJdbcOperations.`queryForObject(String sql, SqlParameterSource paramSource, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping a single result row to a Java object via a RowMapper.
`<T> T`
NamedParameterJdbcTemplate.`queryForObject(String sql, Map<String,?> paramMap, RowMapper<T> rowMapper)`
`<T> T`
NamedParameterJdbcTemplate.`queryForObject(String sql, SqlParameterSource paramSource, RowMapper<T> rowMapper)`
`<T> Stream<T>`
NamedParameterJdbcOperations.`queryForStream(String sql, Map<String,?> paramMap, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a Java object via a RowMapper, and turning it into an iterable and closeable Stream.
`<T> Stream<T>`
NamedParameterJdbcOperations.`queryForStream(String sql, SqlParameterSource paramSource, RowMapper<T> rowMapper)`
Query given SQL to create a prepared statement from SQL and a list of arguments to bind to the query, mapping each row to a Java object via a RowMapper, and turning it into an iterable and closeable Stream.
`<T> Stream<T>`
NamedParameterJdbcTemplate.`queryForStream(String sql, Map<String,?> paramMap, RowMapper<T> rowMapper)`
`<T> Stream<T>`
NamedParameterJdbcTemplate.`queryForStream(String sql, SqlParameterSource paramSource, RowMapper<T> rowMapper)`

## Uses of RowMapper in org.springframework.jdbc.core.simple

Methods in org.springframework.jdbc.core.simple with parameters of type RowMapper
Modifier and Type
Method
Description
`void`
AbstractJdbcCall.`addDeclaredRowMapper(String parameterName, RowMapper<?> rowMapper)`
Add a `RowMapper` for the specified parameter or column.
`<T> JdbcClient.MappedQuerySpec<T>`
JdbcClient.StatementSpec.`query(RowMapper<T> rowMapper)`
Proceed towards execution of a mapped query, with several options available in the returned query specification.
`SimpleJdbcCall`
SimpleJdbcCall.`returningResultSet(String parameterName, RowMapper<?> rowMapper)`
`SimpleJdbcCallOperations`
SimpleJdbcCallOperations.`returningResultSet(String parameterName, RowMapper<?> rowMapper)`
Used to specify when a ResultSet is returned by the stored procedure and you want it mapped by a `RowMapper`.

## Uses of RowMapper in org.springframework.jdbc.object

Classes in org.springframework.jdbc.object that implement RowMapper
Modifier and Type
Class
Description
`protected class`
`MappingSqlQueryWithParameters.RowMapperImpl`
Implementation of RowMapper that calls the enclosing class's `mapRow` method for each row.
`protected class`
`UpdatableSqlQuery.RowMapperImpl`
Implementation of RowMapper that calls the enclosing class's `updateRow()` method for each row.
Methods in org.springframework.jdbc.object that return RowMapper
Modifier and Type
Method
Description
`protected RowMapper<T>`
GenericSqlQuery.`newRowMapper(Object[] parameters, Map<?,?> context)`
`protected RowMapper<T>`
MappingSqlQueryWithParameters.`newRowMapper(Object[] parameters, Map<?,?> context)`
Implementation of protected abstract method.
`protected abstract RowMapper<T>`
SqlQuery.`newRowMapper(Object[] parameters, Map<?,?> context)`
Subclasses must implement this method to extract an object per row, to be returned by the `execute` method as an aggregated `List`.
`protected RowMapper<T>`
UpdatableSqlQuery.`newRowMapper(Object[] parameters, Map<?,?> context)`
Implementation of the superclass template method.
Methods in org.springframework.jdbc.object with parameters of type RowMapper
Modifier and Type
Method
Description
`void`
GenericSqlQuery.`setRowMapper(RowMapper<T> rowMapper)`
Set a specific `RowMapper` instance to use for this query.
Method parameters in org.springframework.jdbc.object with type arguments of type RowMapper
Modifier and Type
Method
Description
`void`
GenericSqlQuery.`setRowMapperClass(Class<? extends RowMapper> rowMapperClass)`
Set a `RowMapper` class for this query, creating a fresh `RowMapper` instance per execution.