Uses of Interface
org.springframework.jdbc.support.KeyHolder
Packages that use KeyHolder
Package
Description
Provides the core JDBC framework, based on JdbcTemplate
and its associated callback interfaces and helper objects.
JdbcTemplate variant with named parameter support.
Simplification layer for common JDBC interactions.
The classes in this package represent RDBMS queries, updates, and stored
procedures as threadsafe, reusable objects.
Support classes for the JDBC framework, used by the classes in the
jdbc.core and jdbc.object packages.
-
Uses of KeyHolder in org.springframework.jdbc.core
Methods in org.springframework.jdbc.core with parameters of type KeyHolderModifier and TypeMethodDescriptionint[]JdbcOperations.batchUpdate(PreparedStatementCreator psc, BatchPreparedStatementSetter pss, KeyHolder generatedKeyHolder) Issue multiple update statements on a single PreparedStatement, using batch updates and a BatchPreparedStatementSetter to set values.int[]JdbcTemplate.batchUpdate(PreparedStatementCreator psc, BatchPreparedStatementSetter pss, KeyHolder generatedKeyHolder) intJdbcOperations.update(PreparedStatementCreator psc, KeyHolder generatedKeyHolder) Issue an update statement using a PreparedStatementCreator to provide SQL and any required parameters.intJdbcTemplate.update(PreparedStatementCreator psc, KeyHolder generatedKeyHolder) -
Uses of KeyHolder in org.springframework.jdbc.core.namedparam
Methods in org.springframework.jdbc.core.namedparam with parameters of type KeyHolderModifier and TypeMethodDescriptionint[]NamedParameterJdbcOperations.batchUpdate(String sql, SqlParameterSource[] batchArgs, KeyHolder generatedKeyHolder) Execute a batch using the supplied SQL statement with the batch of supplied arguments, returning generated keys.int[]NamedParameterJdbcOperations.batchUpdate(String sql, SqlParameterSource[] batchArgs, KeyHolder generatedKeyHolder, String[] keyColumnNames) Execute a batch using the supplied SQL statement with the batch of supplied arguments, returning generated keys.int[]NamedParameterJdbcTemplate.batchUpdate(String sql, SqlParameterSource[] batchArgs, KeyHolder generatedKeyHolder) int[]NamedParameterJdbcTemplate.batchUpdate(String sql, SqlParameterSource[] batchArgs, KeyHolder generatedKeyHolder, String @Nullable [] keyColumnNames) intNamedParameterJdbcOperations.update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHolder) Issue an update via a prepared statement, binding the given arguments, returning generated keys.intNamedParameterJdbcOperations.update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHolder, String[] keyColumnNames) Issue an update via a prepared statement, binding the given arguments, returning generated keys.intNamedParameterJdbcTemplate.update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHolder) intNamedParameterJdbcTemplate.update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHolder, String @Nullable [] keyColumnNames) -
Uses of KeyHolder in org.springframework.jdbc.core.simple
Methods in org.springframework.jdbc.core.simple that return KeyHolderModifier and TypeMethodDescriptionprotected KeyHolderAbstractJdbcInsert.doExecuteAndReturnKeyHolder(Map<String, ?> args) Method that provides execution of the insert using the passed-in Map of parameters and returning all generated keys.protected KeyHolderAbstractJdbcInsert.doExecuteAndReturnKeyHolder(SqlParameterSource parameterSource) Method that provides execution of the insert using the passed-inSqlParameterSourceand returning all generated keys.SimpleJdbcInsert.executeAndReturnKeyHolder(Map<String, ?> args) SimpleJdbcInsert.executeAndReturnKeyHolder(SqlParameterSource parameterSource) SimpleJdbcInsertOperations.executeAndReturnKeyHolder(Map<String, ?> args) Execute the insert using the values passed in and return the generated keys.SimpleJdbcInsertOperations.executeAndReturnKeyHolder(SqlParameterSource parameterSource) Execute the insert using the values passed in and return the generated keys.Methods in org.springframework.jdbc.core.simple with parameters of type KeyHolder -
Uses of KeyHolder in org.springframework.jdbc.object
Methods in org.springframework.jdbc.object with parameters of type KeyHolderModifier and TypeMethodDescriptionintMethod to execute the update given arguments and retrieve the generated keys using a KeyHolder.intSqlUpdate.updateByNamedParam(Map<String, ?> paramMap, KeyHolder generatedKeyHolder) Method to execute the update given arguments and retrieve the generated keys using a KeyHolder. -
Uses of KeyHolder in org.springframework.jdbc.support
Classes in org.springframework.jdbc.support that implement KeyHolderModifier and TypeClassDescriptionclassThe standard implementation of theKeyHolderinterface, to be used for holding auto-generated keys (as potentially returned by JDBC insert statements).