Skip to content

Commit

Permalink
Polish JdbcTemplate to use getter instead of field
Browse files Browse the repository at this point in the history
1. align with others in the same source file
2. allow subclass to override

Closes: gh-34501
Signed-off-by: Yanming Zhou <[email protected]>
  • Loading branch information
quaff authored and bclozel committed Feb 27, 2025
1 parent 72afd4b commit 7f02011
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1234,7 +1234,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
int rsIndex = 0;
int updateIndex = 0;
boolean moreResults;
if (!this.skipResultsProcessing) {
if (!isSkipResultsProcessing()) {
do {
if (updateCount == -1) {
if (resultSetParameters != null && resultSetParameters.size() > rsIndex) {
Expand All @@ -1243,7 +1243,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
rsIndex++;
}
else {
if (!this.skipUndeclaredResults) {
if (!isSkipUndeclaredResults()) {
String rsName = RETURN_RESULT_SET_PREFIX + (rsIndex + 1);
SqlReturnResultSet undeclaredRsParam = new SqlReturnResultSet(rsName, getColumnMapRowMapper());
if (logger.isTraceEnabled()) {
Expand All @@ -1262,7 +1262,7 @@ protected Map<String, Object> extractReturnedResults(CallableStatement cs,
updateIndex++;
}
else {
if (!this.skipUndeclaredResults) {
if (!isSkipUndeclaredResults()) {
String undeclaredName = RETURN_UPDATE_COUNT_PREFIX + (updateIndex + 1);
if (logger.isTraceEnabled()) {
logger.trace("Added default SqlReturnUpdateCount parameter named '" + undeclaredName + "'");
Expand Down

0 comments on commit 7f02011

Please sign in to comment.