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.object |
The classes in this package represent RDBMS queries, updates,
and stored procedures as threadsafe, reusable objects.
|
Modifier and Type | Class and Description |
---|---|
class |
ArgumentPreparedStatementSetter
Simple adapter for
PreparedStatementSetter that applies a given array of arguments. |
class |
ArgumentTypePreparedStatementSetter
Simple adapter for
PreparedStatementSetter that applies
given arrays of arguments and JDBC argument types. |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
PreparedStatementSetter |
PreparedStatementCreatorFactory.newPreparedStatementSetter(List<?> params)
Return a new PreparedStatementSetter for the given parameters.
|
PreparedStatementSetter |
PreparedStatementCreatorFactory.newPreparedStatementSetter(Object[] params)
Return a new PreparedStatementSetter for the given parameters.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
JdbcTemplate.query(PreparedStatementCreator psc,
PreparedStatementSetter pss,
ResultSetExtractor<T> rse)
Query using a prepared statement, allowing for a PreparedStatementCreator
and a PreparedStatementSetter.
|
<T> T |
JdbcTemplate.query(String sql,
PreparedStatementSetter pss,
ResultSetExtractor<T> rse) |
<T> T |
JdbcOperations.query(String sql,
PreparedStatementSetter pss,
ResultSetExtractor<T> rse)
Query using a prepared statement, reading the ResultSet with a ResultSetExtractor.
|
void |
JdbcTemplate.query(String sql,
PreparedStatementSetter pss,
RowCallbackHandler rch) |
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> |
JdbcTemplate.query(String sql,
PreparedStatementSetter pss,
RowMapper<T> rowMapper) |
<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.
|
protected int |
JdbcTemplate.update(PreparedStatementCreator psc,
PreparedStatementSetter pss) |
int |
JdbcTemplate.update(String sql,
PreparedStatementSetter pss) |
int |
JdbcOperations.update(String sql,
PreparedStatementSetter pss)
Issue an update statement using a PreparedStatementSetter to set bind parameters,
with given SQL.
|
Modifier and Type | Method and Description |
---|---|
protected PreparedStatementSetter |
SqlOperation.newPreparedStatementSetter(Object[] params)
Return a PreparedStatementSetter to perform an operation
with the given parameters.
|