@@ -506,20 +506,23 @@ <T> List<T> queryForList(String sql, Map<String, ?> paramMap, Class<T> elementTy
506506 /**
507507 * Issue an update via a prepared statement, binding the given arguments,
508508 * returning generated keys.
509+ * <p>This method requires support for generated keys in the JDBC driver.
509510 * @param sql the SQL containing named parameters
510511 * @param paramSource container of arguments and SQL types to bind to the query
511512 * @param generatedKeyHolder a {@link KeyHolder} that will hold the generated keys
512513 * @return the number of rows affected
513514 * @throws DataAccessException if there is any problem issuing the update
514515 * @see MapSqlParameterSource
515516 * @see org.springframework.jdbc.support.GeneratedKeyHolder
517+ * @see java.sql.DatabaseMetaData#supportsGetGeneratedKeys()
516518 */
517519 int update (String sql , SqlParameterSource paramSource , KeyHolder generatedKeyHolder )
518520 throws DataAccessException ;
519521
520522 /**
521523 * Issue an update via a prepared statement, binding the given arguments,
522524 * returning generated keys.
525+ * <p>This method requires support for generated keys in the JDBC driver.
523526 * @param sql the SQL containing named parameters
524527 * @param paramSource container of arguments and SQL types to bind to the query
525528 * @param generatedKeyHolder a {@link KeyHolder} that will hold the generated keys
@@ -528,6 +531,7 @@ int update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHol
528531 * @throws DataAccessException if there is any problem issuing the update
529532 * @see MapSqlParameterSource
530533 * @see org.springframework.jdbc.support.GeneratedKeyHolder
534+ * @see java.sql.DatabaseMetaData#supportsGetGeneratedKeys()
531535 */
532536 int update (String sql , SqlParameterSource paramSource , KeyHolder generatedKeyHolder , String [] keyColumnNames )
533537 throws DataAccessException ;
@@ -558,6 +562,7 @@ int update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHol
558562 /**
559563 * Execute a batch using the supplied SQL statement with the batch of supplied
560564 * arguments, returning generated keys.
565+ * <p>This method requires support for generated keys in the JDBC driver.
561566 * @param sql the SQL statement to execute
562567 * @param batchArgs the array of {@link SqlParameterSource} containing the batch of
563568 * arguments for the query
@@ -568,12 +573,14 @@ int update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHol
568573 * @throws DataAccessException if there is any problem issuing the update
569574 * @since 6.1
570575 * @see org.springframework.jdbc.support.GeneratedKeyHolder
576+ * @see java.sql.DatabaseMetaData#supportsGetGeneratedKeys()
571577 */
572578 int [] batchUpdate (String sql , SqlParameterSource [] batchArgs , KeyHolder generatedKeyHolder );
573579
574580 /**
575581 * Execute a batch using the supplied SQL statement with the batch of supplied arguments,
576582 * returning generated keys.
583+ * <p>This method requires support for generated keys in the JDBC driver.
577584 * @param sql the SQL statement to execute
578585 * @param batchArgs the array of {@link SqlParameterSource} containing the batch of
579586 * arguments for the query
@@ -585,7 +592,9 @@ int update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHol
585592 * @throws DataAccessException if there is any problem issuing the update
586593 * @since 6.1
587594 * @see org.springframework.jdbc.support.GeneratedKeyHolder
595+ * @see java.sql.DatabaseMetaData#supportsGetGeneratedKeys()
588596 */
589597 int [] batchUpdate (String sql , SqlParameterSource [] batchArgs , KeyHolder generatedKeyHolder ,
590598 String [] keyColumnNames );
599+
591600}
0 commit comments