Uses of Interface
org.springframework.jdbc.core.PreparedStatementSetter
Package
Description
Provides the core JDBC framework, based on JdbcTemplate
and its associated callback interfaces and helper objects.
The classes in this package represent RDBMS queries, updates, and stored
procedures as threadsafe, reusable objects.
-
Uses of PreparedStatementSetter in org.springframework.jdbc.core
Modifier and TypeClassDescriptionclass
Simple adapter forPreparedStatementSetter
that applies a given array of arguments.class
Simple adapter forPreparedStatementSetter
that applies the given arrays of arguments and JDBC argument types.Modifier and TypeMethodDescriptionprotected PreparedStatementSetter
JdbcTemplate.newArgPreparedStatementSetter
(Object[] args) Create a new arg-based PreparedStatementSetter using the args passed in.protected PreparedStatementSetter
JdbcTemplate.newArgTypePreparedStatementSetter
(Object[] args, int[] argTypes) Create a new arg-type-based PreparedStatementSetter using the args and types passed in.PreparedStatementCreatorFactory.newPreparedStatementSetter
(Object[] params) Return a new PreparedStatementSetter for the given parameters.PreparedStatementCreatorFactory.newPreparedStatementSetter
(List<?> params) Return a new PreparedStatementSetter for the given parameters.Modifier and TypeMethodDescription<T> T
JdbcOperations.query
(String sql, PreparedStatementSetter pss, ResultSetExtractor<T> rse) Query using a prepared statement, reading the ResultSet with a ResultSetExtractor.void
JdbcOperations.query
(String sql, PreparedStatementSetter pss, RowCallbackHandler rch) Query given SQL to create a prepared statement from SQL and a PreparedStatementSetter implementation that knows how to bind values to the query, reading the ResultSet on a per-row basis with a RowCallbackHandler.<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> T
JdbcTemplate.query
(String sql, PreparedStatementSetter pss, ResultSetExtractor<T> rse) void
JdbcTemplate.query
(String sql, PreparedStatementSetter pss, RowCallbackHandler rch) <T> List<T>
JdbcTemplate.query
(String sql, PreparedStatementSetter pss, RowMapper<T> rowMapper) <T> T
JdbcTemplate.query
(PreparedStatementCreator psc, PreparedStatementSetter pss, ResultSetExtractor<T> rse) Query using a prepared statement, allowing for a PreparedStatementCreator and a PreparedStatementSetter.<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>
JdbcTemplate.queryForStream
(String sql, PreparedStatementSetter pss, RowMapper<T> rowMapper) <T> Stream<T>
JdbcTemplate.queryForStream
(PreparedStatementCreator psc, PreparedStatementSetter pss, RowMapper<T> rowMapper) Query using a prepared statement, allowing for a PreparedStatementCreator and a PreparedStatementSetter.int
JdbcOperations.update
(String sql, PreparedStatementSetter pss) Issue an update statement using a PreparedStatementSetter to set bind parameters, with given SQL.int
JdbcTemplate.update
(String sql, PreparedStatementSetter pss) protected int
JdbcTemplate.update
(PreparedStatementCreator psc, PreparedStatementSetter pss) -
Uses of PreparedStatementSetter in org.springframework.jdbc.object
Modifier and TypeMethodDescriptionprotected final PreparedStatementSetter
SqlOperation.newPreparedStatementSetter
(Object[] params) Return a PreparedStatementSetter to perform an operation with the given parameters.