Uses of Interface
org.springframework.jdbc.core.RowMapper
Packages that use RowMapper
Package
Description
Provides the core JDBC framework, based on JdbcTemplate
and its associated callback interfaces and helper objects.
Context metadata abstraction for the configuration and execution
of table inserts and stored procedure calls.
JdbcTemplate variant with named parameter support.
Simplification layer for table inserts and stored procedure calls.
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 RowMapperModifier and TypeClassDescriptionclass
RowMapper
implementation that converts a row into a new instance of the specified mapped target class.class
RowMapper
implementation that creates ajava.util.Map
for each row, representing all columns as key-value pairs: one entry for each column, with the column name as key.class
RowMapper
implementation that converts a row into a new instance of the specified mapped target class.class
RowMapper
implementation that converts a single column into a single result value per row.Methods in org.springframework.jdbc.core that return RowMapperModifier and TypeMethodDescriptionJdbcTemplate.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 RowMapperModifier and TypeMethodDescription<T> List<T>
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>
Deprecated.<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>
Execute a query given static SQL, mapping each row to a result object via a RowMapper.<T> List<T>
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>
<T> List<T>
Deprecated.<T> List<T>
JdbcTemplate.query
(String sql, PreparedStatementSetter pss, RowMapper<T> rowMapper) <T> List<T>
<T> List<T>
<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 ofJdbcOperations.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 RowMapperModifierConstructorDescriptionResultSetSupportingSqlParameter
(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 theSqlReturnResultSet
class. -
Uses of RowMapper in org.springframework.jdbc.core.metadata
Methods in org.springframework.jdbc.core.metadata with parameters of type RowMapperModifier and TypeMethodDescriptionCallMetaDataContext.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 RowMapperModifier and TypeMethodDescription<T> List<T>
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>
Query given SQL to create a prepared statement from SQL, mapping each row to a Java object via a RowMapper.<T> List<T>
<T> List<T>
NamedParameterJdbcTemplate.query
(String sql, SqlParameterSource paramSource, RowMapper<T> rowMapper) <T> List<T>
<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 RowMapperModifier and TypeMethodDescriptionvoid
AbstractJdbcCall.addDeclaredRowMapper
(String parameterName, RowMapper<?> rowMapper) Add aRowMapper
for the specified parameter or column.SimpleJdbcCall.returningResultSet
(String parameterName, RowMapper<?> rowMapper) SimpleJdbcCallOperations.returningResultSet
(String parameterName, RowMapper<?> rowMapper) Used to specify when a ResultSet is returned by the stored procedure and you want it mapped by aRowMapper
. -
Uses of RowMapper in org.springframework.jdbc.object
Classes in org.springframework.jdbc.object that implement RowMapperModifier and TypeClassDescriptionprotected class
Implementation of RowMapper that calls the enclosing class'smapRow
method for each row.protected class
Implementation of RowMapper that calls the enclosing class'supdateRow()
method for each row.Methods in org.springframework.jdbc.object that return RowMapperModifier and TypeMethodDescriptionGenericSqlQuery.newRowMapper
(Object[] parameters, Map<?, ?> context) MappingSqlQueryWithParameters.newRowMapper
(Object[] parameters, Map<?, ?> context) Implementation of protected abstract method.SqlQuery.newRowMapper
(Object[] parameters, Map<?, ?> context) Subclasses must implement this method to extract an object per row, to be returned by theexecute
method as an aggregatedList
.UpdatableSqlQuery.newRowMapper
(Object[] parameters, Map<?, ?> context) Implementation of the superclass template method.Methods in org.springframework.jdbc.object with parameters of type RowMapperModifier and TypeMethodDescriptionvoid
GenericSqlQuery.setRowMapper
(RowMapper<T> rowMapper) Set a specificRowMapper
instance to use for this query.Method parameters in org.springframework.jdbc.object with type arguments of type RowMapperModifier and TypeMethodDescriptionvoid
GenericSqlQuery.setRowMapperClass
(Class<? extends RowMapper> rowMapperClass)
JdbcOperations.query(String, RowMapper, Object...)