|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2021 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -527,26 +527,26 @@ int update(String sql, SqlParameterSource paramSource, KeyHolder generatedKeyHol
|
527 | 527 | throws DataAccessException;
|
528 | 528 |
|
529 | 529 | /**
|
530 |
| - * Executes a batch using the supplied SQL statement with the batch of supplied arguments. |
| 530 | + * Execute a batch using the supplied SQL statement with the batch of supplied arguments. |
531 | 531 | * @param sql the SQL statement to execute
|
532 |
| - * @param batchValues the array of Maps containing the batch of arguments for the query |
| 532 | + * @param batchArgs the array of {@link SqlParameterSource} containing the batch of |
| 533 | + * arguments for the query |
533 | 534 | * @return an array containing the numbers of rows affected by each update in the batch
|
534 | 535 | * (may also contain special JDBC-defined negative values for affected rows such as
|
535 | 536 | * {@link java.sql.Statement#SUCCESS_NO_INFO}/{@link java.sql.Statement#EXECUTE_FAILED})
|
536 | 537 | * @throws DataAccessException if there is any problem issuing the update
|
537 | 538 | */
|
538 |
| - int[] batchUpdate(String sql, Map<String, ?>[] batchValues); |
| 539 | + int[] batchUpdate(String sql, SqlParameterSource[] batchArgs); |
539 | 540 |
|
540 | 541 | /**
|
541 |
| - * Execute a batch using the supplied SQL statement with the batch of supplied arguments. |
| 542 | + * Executes a batch using the supplied SQL statement with the batch of supplied arguments. |
542 | 543 | * @param sql the SQL statement to execute
|
543 |
| - * @param batchArgs the array of {@link SqlParameterSource} containing the batch of |
544 |
| - * arguments for the query |
| 544 | + * @param batchValues the array of Maps containing the batch of arguments for the query |
545 | 545 | * @return an array containing the numbers of rows affected by each update in the batch
|
546 | 546 | * (may also contain special JDBC-defined negative values for affected rows such as
|
547 | 547 | * {@link java.sql.Statement#SUCCESS_NO_INFO}/{@link java.sql.Statement#EXECUTE_FAILED})
|
548 | 548 | * @throws DataAccessException if there is any problem issuing the update
|
549 | 549 | */
|
550 |
| - int[] batchUpdate(String sql, SqlParameterSource[] batchArgs); |
| 550 | + int[] batchUpdate(String sql, Map<String, ?>[] batchValues); |
551 | 551 |
|
552 | 552 | }
|
0 commit comments