Browse Source

Fix description of default behavior in BeanPropertyRowMapper

Closes gh-31349
pull/31598/head
Stéphane Nicoll 1 year ago
parent
commit
ca4674df42
  1. 7
      spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java

7
spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java

@ -406,8 +406,11 @@ public class BeanPropertyRowMapper<T> implements RowMapper<T> { @@ -406,8 +406,11 @@ public class BeanPropertyRowMapper<T> implements RowMapper<T> {
/**
* Retrieve a JDBC object value for the specified column.
* <p>The default implementation delegates to
* {@link #getColumnValue(ResultSet, int, Class)}.
* <p>The default implementation calls
* {@link JdbcUtils#getResultSetValue(java.sql.ResultSet, int, Class)}
* using the type of the specified {@link PropertyDescriptor}
* Subclasses may override this to check specific value types upfront,
* or to post-process values return from {@code getResultSetValue}.
* @param rs is the ResultSet holding the data
* @param index is the column index
* @param pd the bean property that each result object is expected to match

Loading…
Cancel
Save