接口的使用
org.springframework.jdbc.support.KeyHolder
使用KeyHolder的程序包 程序包 说明 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.org.springframework.jdbc.core中KeyHolder的使用
参数类型为KeyHolder的org.springframework.jdbc.core中的方法 修饰符和类型 方法 说明 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)org.springframework.jdbc.core.namedparam中KeyHolder的使用
参数类型为KeyHolder的org.springframework.jdbc.core.namedparam中的方法 修饰符和类型 方法 说明 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[] keyColumnNames)org.springframework.jdbc.core.simple中KeyHolder的使用
返回KeyHolder的org.springframework.jdbc.core.simple中的方法 修饰符和类型 方法 说明 protected 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.KeyHolderSimpleJdbcInsert. executeAndReturnKeyHolder(Map<String,?> args)KeyHolderSimpleJdbcInsert. executeAndReturnKeyHolder(SqlParameterSource parameterSource)KeyHolderSimpleJdbcInsertOperations. executeAndReturnKeyHolder(Map<String,?> args)Execute the insert using the values passed in and return the generated keys.KeyHolderSimpleJdbcInsertOperations. executeAndReturnKeyHolder(SqlParameterSource parameterSource)Execute the insert using the values passed in and return the generated keys.org.springframework.jdbc.object中KeyHolder的使用
参数类型为KeyHolder的org.springframework.jdbc.object中的方法 修饰符和类型 方法 说明 intSqlUpdate. update(Object[] params, KeyHolder generatedKeyHolder)Method 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.org.springframework.jdbc.support中KeyHolder的使用
实现KeyHolder的org.springframework.jdbc.support中的类 修饰符和类型 类 说明 classGeneratedKeyHolderThe standard implementation of theKeyHolderinterface, to be used for holding auto-generated keys (as potentially returned by JDBC insert statements).