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.namedparam |
JdbcTemplate variant with named parameter support.
|
org.springframework.jdbc.core.simple |
Simplification layer for table inserts and stored procedure calls.
|
org.springframework.jdbc.object |
The classes in this package represent RDBMS queries, updates,
and stored procedures as threadsafe, reusable objects.
|
org.springframework.jdbc.support |
Support classes for the JDBC framework, used by the classes in the
jdbc.core and jdbc.object packages.
|
Modifier and Type | Method and Description |
---|---|
int |
JdbcTemplate.update(PreparedStatementCreator psc,
KeyHolder generatedKeyHolder) |
int |
JdbcOperations.update(PreparedStatementCreator psc,
KeyHolder generatedKeyHolder)
Issue an update statement using a PreparedStatementCreator to provide SQL and
any required parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
NamedParameterJdbcOperations.update(java.lang.String sql,
SqlParameterSource paramSource,
KeyHolder generatedKeyHolder)
Issue an update via a prepared statement, binding the given arguments,
returning generated keys.
|
int |
NamedParameterJdbcTemplate.update(java.lang.String sql,
SqlParameterSource paramSource,
KeyHolder generatedKeyHolder) |
int |
NamedParameterJdbcOperations.update(java.lang.String sql,
SqlParameterSource paramSource,
KeyHolder generatedKeyHolder,
java.lang.String[] keyColumnNames)
Issue an update via a prepared statement, binding the given arguments,
returning generated keys.
|
int |
NamedParameterJdbcTemplate.update(java.lang.String sql,
SqlParameterSource paramSource,
KeyHolder generatedKeyHolder,
java.lang.String[] keyColumnNames) |
Modifier and Type | Method and Description |
---|---|
protected KeyHolder |
AbstractJdbcInsert.doExecuteAndReturnKeyHolder(java.util.Map<java.lang.String,?> args)
Method that provides execution of the insert using the passed-in
Map of parameters and returning all generated keys.
|
protected KeyHolder |
AbstractJdbcInsert.doExecuteAndReturnKeyHolder(SqlParameterSource parameterSource)
Method that provides execution of the insert using the passed-in
SqlParameterSource and returning all generated keys. |
KeyHolder |
SimpleJdbcInsert.executeAndReturnKeyHolder(java.util.Map<java.lang.String,?> args) |
KeyHolder |
SimpleJdbcInsertOperations.executeAndReturnKeyHolder(java.util.Map<java.lang.String,?> args)
Execute the insert using the values passed in and return the generated keys.
|
KeyHolder |
SimpleJdbcInsert.executeAndReturnKeyHolder(SqlParameterSource parameterSource) |
KeyHolder |
SimpleJdbcInsertOperations.executeAndReturnKeyHolder(SqlParameterSource parameterSource)
Execute the insert using the values passed in and return the generated keys.
|
Modifier and Type | Method and Description |
---|---|
int |
SqlUpdate.update(java.lang.Object[] params,
KeyHolder generatedKeyHolder)
Method to execute the update given arguments and
retrieve the generated keys using a KeyHolder.
|
int |
SqlUpdate.updateByNamedParam(java.util.Map<java.lang.String,?> paramMap,
KeyHolder generatedKeyHolder)
Method to execute the update given arguments and
retrieve the generated keys using a KeyHolder.
|
Modifier and Type | Class and Description |
---|---|
class |
GeneratedKeyHolder
The standard implementation of the
KeyHolder interface, to be used for
holding auto-generated keys (as potentially returned by JDBC insert statements). |