@@ -896,6 +896,8 @@ <T> List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> ele
896
896
* @param pss object to set parameters on the PreparedStatement
897
897
* created by this method
898
898
* @return an array of the number of rows affected by each statement
899
+ * (may also contain special JDBC-defined negative values for affected rows such as
900
+ * {@link java.sql.Statement#SUCCESS_NO_INFO}/{@link java.sql.Statement#EXECUTE_FAILED})
899
901
* @throws DataAccessException if there is any problem issuing the update
900
902
*/
901
903
int [] batchUpdate (String sql , BatchPreparedStatementSetter pss ) throws DataAccessException ;
@@ -905,6 +907,8 @@ <T> List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> ele
905
907
* @param sql the SQL statement to execute
906
908
* @param batchArgs the List of Object arrays containing the batch of arguments for the query
907
909
* @return an array containing the numbers of rows affected by each update in the batch
910
+ * (may also contain special JDBC-defined negative values for affected rows such as
911
+ * {@link java.sql.Statement#SUCCESS_NO_INFO}/{@link java.sql.Statement#EXECUTE_FAILED})
908
912
* @throws DataAccessException if there is any problem issuing the update
909
913
*/
910
914
int [] batchUpdate (String sql , List <Object []> batchArgs ) throws DataAccessException ;
@@ -916,20 +920,24 @@ <T> List<T> queryForList(String sql, Object[] args, int[] argTypes, Class<T> ele
916
920
* @param argTypes the SQL types of the arguments
917
921
* (constants from {@code java.sql.Types})
918
922
* @return an array containing the numbers of rows affected by each update in the batch
923
+ * (may also contain special JDBC-defined negative values for affected rows such as
924
+ * {@link java.sql.Statement#SUCCESS_NO_INFO}/{@link java.sql.Statement#EXECUTE_FAILED})
919
925
* @throws DataAccessException if there is any problem issuing the update
920
926
*/
921
927
int [] batchUpdate (String sql , List <Object []> batchArgs , int [] argTypes ) throws DataAccessException ;
922
928
923
929
/**
924
- * Execute multiple batches using the supplied SQL statement with the collect of supplied arguments.
925
- * The arguments' values will be set using the ParameterizedPreparedStatementSetter.
930
+ * Execute multiple batches using the supplied SQL statement with the collect of supplied
931
+ * arguments. The arguments' values will be set using the ParameterizedPreparedStatementSetter.
926
932
* Each batch should be of size indicated in 'batchSize'.
927
933
* @param sql the SQL statement to execute.
928
934
* @param batchArgs the List of Object arrays containing the batch of arguments for the query
929
935
* @param batchSize batch size
930
936
* @param pss the ParameterizedPreparedStatementSetter to use
931
- * @return an array containing for each batch another array containing the numbers of rows affected
932
- * by each update in the batch
937
+ * @return an array containing for each batch another array containing the numbers of
938
+ * rows affected by each update in the batch
939
+ * (may also contain special JDBC-defined negative values for affected rows such as
940
+ * {@link java.sql.Statement#SUCCESS_NO_INFO}/{@link java.sql.Statement#EXECUTE_FAILED})
933
941
* @throws DataAccessException if there is any problem issuing the update
934
942
* @since 3.1
935
943
*/
0 commit comments