Browse Source

Merge pull request #1269 from moores-expedia/use-rowmapper-hook

SPR-15018 - Construct RowMapper using the impl hook
pull/1268/merge
Juergen Hoeller 8 years ago committed by GitHub
parent
commit
35eaeb5636
  1. 4
      spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java

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

@ -1177,7 +1177,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations { @@ -1177,7 +1177,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
else {
if (!this.skipUndeclaredResults) {
String rsName = RETURN_RESULT_SET_PREFIX + (rsIndex + 1);
SqlReturnResultSet undeclaredRsParam = new SqlReturnResultSet(rsName, new ColumnMapRowMapper());
SqlReturnResultSet undeclaredRsParam = new SqlReturnResultSet(rsName, getColumnMapRowMapper());
if (logger.isDebugEnabled()) {
logger.debug("Added default SqlReturnResultSet parameter named '" + rsName + "'");
}
@ -1242,7 +1242,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations { @@ -1242,7 +1242,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
}
else {
String rsName = outParam.getName();
SqlReturnResultSet rsParam = new SqlReturnResultSet(rsName, new ColumnMapRowMapper());
SqlReturnResultSet rsParam = new SqlReturnResultSet(rsName, getColumnMapRowMapper());
returnedResults.putAll(processResultSet((ResultSet) out, rsParam));
if (logger.isDebugEnabled()) {
logger.debug("Added default SqlReturnResultSet parameter named '" + rsName + "'");

Loading…
Cancel
Save