@@ -263,7 +263,7 @@ public int getMaxRows() {
263263 }
264264
265265 /**
266- * Set the query timeout for statements that this JdbcTemplate executes.
266+ * Set the query timeout (seconds) for statements that this JdbcTemplate executes.
267267 * <p>Default is -1, indicating to use the JDBC driver's default
268268 * (i.e. to not pass a specific query timeout setting on the driver).
269269 * <p>Note: Any timeout specified here will be overridden by the remaining
@@ -276,7 +276,7 @@ public void setQueryTimeout(int queryTimeout) {
276276 }
277277
278278 /**
279- * Return the query timeout for statements that this JdbcTemplate executes.
279+ * Return the query timeout (seconds) for statements that this JdbcTemplate executes.
280280 */
281281 public int getQueryTimeout () {
282282 return this .queryTimeout ;
@@ -422,7 +422,7 @@ public <T> T execute(StatementCallback<T> action) throws DataAccessException {
422422 }
423423
424424 @ Override
425- public void execute (final String sql ) throws DataAccessException {
425+ public void execute (String sql ) throws DataAccessException {
426426 if (logger .isDebugEnabled ()) {
427427 logger .debug ("Executing SQL statement [" + sql + "]" );
428428 }
@@ -446,7 +446,7 @@ public String getSql() {
446446
447447 @ Override
448448 @ Nullable
449- public <T > T query (final String sql , final ResultSetExtractor <T > rse ) throws DataAccessException {
449+ public <T > T query (String sql , ResultSetExtractor <T > rse ) throws DataAccessException {
450450 Assert .notNull (sql , "SQL must not be null" );
451451 Assert .notNull (rse , "ResultSetExtractor must not be null" );
452452 if (logger .isDebugEnabled ()) {
@@ -542,7 +542,7 @@ public SqlRowSet queryForRowSet(String sql) throws DataAccessException {
542542 }
543543
544544 @ Override
545- public int update (final String sql ) throws DataAccessException {
545+ public int update (String sql ) throws DataAccessException {
546546 Assert .notNull (sql , "SQL must not be null" );
547547 if (logger .isDebugEnabled ()) {
548548 logger .debug ("Executing SQL update [" + sql + "]" );
@@ -568,7 +568,7 @@ public String getSql() {
568568 }
569569
570570 @ Override
571- public int [] batchUpdate (final String ... sql ) throws DataAccessException {
571+ public int [] batchUpdate (String ... sql ) throws DataAccessException {
572572 Assert .notEmpty (sql , "SQL array must not be empty" );
573573 if (logger .isDebugEnabled ()) {
574574 logger .debug ("Executing SQL batch update of " + sql .length + " statements" );
@@ -714,7 +714,7 @@ public <T> T execute(String sql, PreparedStatementCallback<T> action) throws Dat
714714 */
715715 @ Nullable
716716 public <T > T query (
717- PreparedStatementCreator psc , @ Nullable final PreparedStatementSetter pss , final ResultSetExtractor <T > rse )
717+ PreparedStatementCreator psc , @ Nullable PreparedStatementSetter pss , ResultSetExtractor <T > rse )
718718 throws DataAccessException {
719719
720720 Assert .notNull (rse , "ResultSetExtractor must not be null" );
@@ -964,7 +964,7 @@ public SqlRowSet queryForRowSet(String sql, @Nullable Object... args) throws Dat
964964 return result (query (sql , args , new SqlRowSetResultSetExtractor ()));
965965 }
966966
967- protected int update (final PreparedStatementCreator psc , @ Nullable final PreparedStatementSetter pss )
967+ protected int update (PreparedStatementCreator psc , @ Nullable PreparedStatementSetter pss )
968968 throws DataAccessException {
969969
970970 logger .debug ("Executing prepared SQL update" );
@@ -994,7 +994,7 @@ public int update(PreparedStatementCreator psc) throws DataAccessException {
994994 }
995995
996996 @ Override
997- public int update (final PreparedStatementCreator psc , final KeyHolder generatedKeyHolder )
997+ public int update (PreparedStatementCreator psc , KeyHolder generatedKeyHolder )
998998 throws DataAccessException {
999999
10001000 Assert .notNull (generatedKeyHolder , "KeyHolder must not be null" );
@@ -1027,8 +1027,8 @@ public int update(String sql, @Nullable Object... args) throws DataAccessExcepti
10271027 }
10281028
10291029 @ Override
1030- public int [] batchUpdate (final PreparedStatementCreator psc , final BatchPreparedStatementSetter pss ,
1031- final KeyHolder generatedKeyHolder ) throws DataAccessException {
1030+ public int [] batchUpdate (PreparedStatementCreator psc , BatchPreparedStatementSetter pss ,
1031+ KeyHolder generatedKeyHolder ) throws DataAccessException {
10321032
10331033 int [] result = execute (psc , getPreparedStatementCallback (pss , generatedKeyHolder ));
10341034
@@ -1037,7 +1037,7 @@ public int[] batchUpdate(final PreparedStatementCreator psc, final BatchPrepared
10371037 }
10381038
10391039 @ Override
1040- public int [] batchUpdate (String sql , final BatchPreparedStatementSetter pss ) throws DataAccessException {
1040+ public int [] batchUpdate (String sql , BatchPreparedStatementSetter pss ) throws DataAccessException {
10411041 if (logger .isDebugEnabled ()) {
10421042 logger .debug ("Executing SQL batch update [" + sql + "]" );
10431043 }
@@ -1057,7 +1057,7 @@ public int[] batchUpdate(String sql, List<Object[]> batchArgs) throws DataAccess
10571057 }
10581058
10591059 @ Override
1060- public int [] batchUpdate (String sql , List <Object []> batchArgs , final int [] argTypes ) throws DataAccessException {
1060+ public int [] batchUpdate (String sql , List <Object []> batchArgs , int [] argTypes ) throws DataAccessException {
10611061 if (batchArgs .isEmpty ()) {
10621062 return new int [0 ];
10631063 }
@@ -1094,8 +1094,8 @@ public int getBatchSize() {
10941094 }
10951095
10961096 @ Override
1097- public <T > int [][] batchUpdate (String sql , final Collection <T > batchArgs , final int batchSize ,
1098- final ParameterizedPreparedStatementSetter <T > pss ) throws DataAccessException {
1097+ public <T > int [][] batchUpdate (String sql , Collection <T > batchArgs , int batchSize ,
1098+ ParameterizedPreparedStatementSetter <T > pss ) throws DataAccessException {
10991099
11001100 if (logger .isDebugEnabled ()) {
11011101 logger .debug ("Executing SQL batch update [" + sql + "] with a batch size of " + batchSize );
@@ -1209,9 +1209,9 @@ public <T> T execute(String callString, CallableStatementCallback<T> action) thr
12091209 public Map <String , Object > call (CallableStatementCreator csc , List <SqlParameter > declaredParameters )
12101210 throws DataAccessException {
12111211
1212- final List <SqlParameter > updateCountParameters = new ArrayList <>();
1213- final List <SqlParameter > resultSetParameters = new ArrayList <>();
1214- final List <SqlParameter > callParameters = new ArrayList <>();
1212+ List <SqlParameter > updateCountParameters = new ArrayList <>();
1213+ List <SqlParameter > resultSetParameters = new ArrayList <>();
1214+ List <SqlParameter > callParameters = new ArrayList <>();
12151215
12161216 for (SqlParameter parameter : declaredParameters ) {
12171217 if (parameter .isResultsParameter ()) {
@@ -1261,7 +1261,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
12611261 int rsIndex = 0 ;
12621262 int updateIndex = 0 ;
12631263 boolean moreResults ;
1264- if (!this . skipResultsProcessing ) {
1264+ if (!isSkipResultsProcessing () ) {
12651265 do {
12661266 if (updateCount == -1 ) {
12671267 if (resultSetParameters != null && resultSetParameters .size () > rsIndex ) {
@@ -1270,7 +1270,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
12701270 rsIndex ++;
12711271 }
12721272 else {
1273- if (!this . skipUndeclaredResults ) {
1273+ if (!isSkipUndeclaredResults () ) {
12741274 String rsName = RETURN_RESULT_SET_PREFIX + (rsIndex + 1 );
12751275 SqlReturnResultSet undeclaredRsParam = new SqlReturnResultSet (rsName , getColumnMapRowMapper ());
12761276 if (logger .isTraceEnabled ()) {
@@ -1289,7 +1289,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
12891289 updateIndex ++;
12901290 }
12911291 else {
1292- if (!this . skipUndeclaredResults ) {
1292+ if (!isSkipUndeclaredResults () ) {
12931293 String undeclaredName = RETURN_UPDATE_COUNT_PREFIX + (updateIndex + 1 );
12941294 if (logger .isTraceEnabled ()) {
12951295 logger .trace ("Added default SqlReturnUpdateCount parameter named '" + undeclaredName + "'" );
0 commit comments