Browse Source

Fix description of default behavior in BeanPropertyRowMapper

Closes gh-29285
pull/31496/head
Stéphane Nicoll 2 years ago
parent
commit
e12eb9436d
  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> {
/** /**
* Retrieve a JDBC object value for the specified column. * Retrieve a JDBC object value for the specified column.
* <p>The default implementation delegates to * <p>The default implementation calls
* {@link #getColumnValue(ResultSet, int, Class)}. * {@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 rs is the ResultSet holding the data
* @param index is the column index * @param index is the column index
* @param pd the bean property that each result object is expected to match * @param pd the bean property that each result object is expected to match

Loading…
Cancel
Save