Skip to content

Commit 86d7f29

Browse files
committed
Polish JdbcTemplate to use getter instead of field
1. align with others in the same source file 2. allow subclass to override Signed-off-by: Yanming Zhou <[email protected]>
1 parent 382caac commit 86d7f29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -1234,7 +1234,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
12341234
int rsIndex = 0;
12351235
int updateIndex = 0;
12361236
boolean moreResults;
1237-
if (!this.skipResultsProcessing) {
1237+
if (!isSkipResultsProcessing()) {
12381238
do {
12391239
if (updateCount == -1) {
12401240
if (resultSetParameters != null && resultSetParameters.size() > rsIndex) {
@@ -1243,7 +1243,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
12431243
rsIndex++;
12441244
}
12451245
else {
1246-
if (!this.skipUndeclaredResults) {
1246+
if (!isSkipUndeclaredResults()) {
12471247
String rsName = RETURN_RESULT_SET_PREFIX + (rsIndex + 1);
12481248
SqlReturnResultSet undeclaredRsParam = new SqlReturnResultSet(rsName, getColumnMapRowMapper());
12491249
if (logger.isTraceEnabled()) {
@@ -1262,7 +1262,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
12621262
updateIndex++;
12631263
}
12641264
else {
1265-
if (!this.skipUndeclaredResults) {
1265+
if (!isSkipUndeclaredResults()) {
12661266
String undeclaredName = RETURN_UPDATE_COUNT_PREFIX + (updateIndex + 1);
12671267
if (logger.isTraceEnabled()) {
12681268
logger.trace("Added default SqlReturnUpdateCount parameter named '" + undeclaredName + "'");

0 commit comments

Comments
 (0)