@@ -263,7 +263,7 @@ public int getMaxRows() {
263
263
}
264
264
265
265
/**
266
- * Set the query timeout for statements that this JdbcTemplate executes.
266
+ * Set the query timeout (seconds) for statements that this JdbcTemplate executes.
267
267
* <p>Default is -1, indicating to use the JDBC driver's default
268
268
* (i.e. to not pass a specific query timeout setting on the driver).
269
269
* <p>Note: Any timeout specified here will be overridden by the remaining
@@ -276,7 +276,7 @@ public void setQueryTimeout(int queryTimeout) {
276
276
}
277
277
278
278
/**
279
- * Return the query timeout for statements that this JdbcTemplate executes.
279
+ * Return the query timeout (seconds) for statements that this JdbcTemplate executes.
280
280
*/
281
281
public int getQueryTimeout () {
282
282
return this .queryTimeout ;
@@ -422,7 +422,7 @@ public <T> T execute(StatementCallback<T> action) throws DataAccessException {
422
422
}
423
423
424
424
@ Override
425
- public void execute (final String sql ) throws DataAccessException {
425
+ public void execute (String sql ) throws DataAccessException {
426
426
if (logger .isDebugEnabled ()) {
427
427
logger .debug ("Executing SQL statement [" + sql + "]" );
428
428
}
@@ -446,7 +446,7 @@ public String getSql() {
446
446
447
447
@ Override
448
448
@ 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 {
450
450
Assert .notNull (sql , "SQL must not be null" );
451
451
Assert .notNull (rse , "ResultSetExtractor must not be null" );
452
452
if (logger .isDebugEnabled ()) {
@@ -542,7 +542,7 @@ public SqlRowSet queryForRowSet(String sql) throws DataAccessException {
542
542
}
543
543
544
544
@ Override
545
- public int update (final String sql ) throws DataAccessException {
545
+ public int update (String sql ) throws DataAccessException {
546
546
Assert .notNull (sql , "SQL must not be null" );
547
547
if (logger .isDebugEnabled ()) {
548
548
logger .debug ("Executing SQL update [" + sql + "]" );
@@ -568,7 +568,7 @@ public String getSql() {
568
568
}
569
569
570
570
@ Override
571
- public int [] batchUpdate (final String ... sql ) throws DataAccessException {
571
+ public int [] batchUpdate (String ... sql ) throws DataAccessException {
572
572
Assert .notEmpty (sql , "SQL array must not be empty" );
573
573
if (logger .isDebugEnabled ()) {
574
574
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
714
714
*/
715
715
@ Nullable
716
716
public <T > T query (
717
- PreparedStatementCreator psc , @ Nullable final PreparedStatementSetter pss , final ResultSetExtractor <T > rse )
717
+ PreparedStatementCreator psc , @ Nullable PreparedStatementSetter pss , ResultSetExtractor <T > rse )
718
718
throws DataAccessException {
719
719
720
720
Assert .notNull (rse , "ResultSetExtractor must not be null" );
@@ -964,7 +964,7 @@ public SqlRowSet queryForRowSet(String sql, @Nullable Object... args) throws Dat
964
964
return result (query (sql , args , new SqlRowSetResultSetExtractor ()));
965
965
}
966
966
967
- protected int update (final PreparedStatementCreator psc , @ Nullable final PreparedStatementSetter pss )
967
+ protected int update (PreparedStatementCreator psc , @ Nullable PreparedStatementSetter pss )
968
968
throws DataAccessException {
969
969
970
970
logger .debug ("Executing prepared SQL update" );
@@ -994,7 +994,7 @@ public int update(PreparedStatementCreator psc) throws DataAccessException {
994
994
}
995
995
996
996
@ Override
997
- public int update (final PreparedStatementCreator psc , final KeyHolder generatedKeyHolder )
997
+ public int update (PreparedStatementCreator psc , KeyHolder generatedKeyHolder )
998
998
throws DataAccessException {
999
999
1000
1000
Assert .notNull (generatedKeyHolder , "KeyHolder must not be null" );
@@ -1027,8 +1027,8 @@ public int update(String sql, @Nullable Object... args) throws DataAccessExcepti
1027
1027
}
1028
1028
1029
1029
@ 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 {
1032
1032
1033
1033
int [] result = execute (psc , getPreparedStatementCallback (pss , generatedKeyHolder ));
1034
1034
@@ -1037,7 +1037,7 @@ public int[] batchUpdate(final PreparedStatementCreator psc, final BatchPrepared
1037
1037
}
1038
1038
1039
1039
@ Override
1040
- public int [] batchUpdate (String sql , final BatchPreparedStatementSetter pss ) throws DataAccessException {
1040
+ public int [] batchUpdate (String sql , BatchPreparedStatementSetter pss ) throws DataAccessException {
1041
1041
if (logger .isDebugEnabled ()) {
1042
1042
logger .debug ("Executing SQL batch update [" + sql + "]" );
1043
1043
}
@@ -1057,7 +1057,7 @@ public int[] batchUpdate(String sql, List<Object[]> batchArgs) throws DataAccess
1057
1057
}
1058
1058
1059
1059
@ 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 {
1061
1061
if (batchArgs .isEmpty ()) {
1062
1062
return new int [0 ];
1063
1063
}
@@ -1094,8 +1094,8 @@ public int getBatchSize() {
1094
1094
}
1095
1095
1096
1096
@ 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 {
1099
1099
1100
1100
if (logger .isDebugEnabled ()) {
1101
1101
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
1209
1209
public Map <String , Object > call (CallableStatementCreator csc , List <SqlParameter > declaredParameters )
1210
1210
throws DataAccessException {
1211
1211
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 <>();
1215
1215
1216
1216
for (SqlParameter parameter : declaredParameters ) {
1217
1217
if (parameter .isResultsParameter ()) {
@@ -1261,7 +1261,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
1261
1261
int rsIndex = 0 ;
1262
1262
int updateIndex = 0 ;
1263
1263
boolean moreResults ;
1264
- if (!this . skipResultsProcessing ) {
1264
+ if (!isSkipResultsProcessing () ) {
1265
1265
do {
1266
1266
if (updateCount == -1 ) {
1267
1267
if (resultSetParameters != null && resultSetParameters .size () > rsIndex ) {
@@ -1270,7 +1270,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
1270
1270
rsIndex ++;
1271
1271
}
1272
1272
else {
1273
- if (!this . skipUndeclaredResults ) {
1273
+ if (!isSkipUndeclaredResults () ) {
1274
1274
String rsName = RETURN_RESULT_SET_PREFIX + (rsIndex + 1 );
1275
1275
SqlReturnResultSet undeclaredRsParam = new SqlReturnResultSet (rsName , getColumnMapRowMapper ());
1276
1276
if (logger .isTraceEnabled ()) {
@@ -1289,7 +1289,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
1289
1289
updateIndex ++;
1290
1290
}
1291
1291
else {
1292
- if (!this . skipUndeclaredResults ) {
1292
+ if (!isSkipUndeclaredResults () ) {
1293
1293
String undeclaredName = RETURN_UPDATE_COUNT_PREFIX + (updateIndex + 1 );
1294
1294
if (logger .isTraceEnabled ()) {
1295
1295
logger .trace ("Added default SqlReturnUpdateCount parameter named '" + undeclaredName + "'" );
0 commit comments