public class BeanPropertyRowMapper<T> extends Object implements org.springframework.jdbc.core.RowMapper<T>
两倍有余 BeanPropertyRowMapper 的性能,对比结果见 官网文档 说明。
支持更多类型映射,如:JSONObject、JSONArray
支持 JSONField 注解
| Constructor and Description |
|---|
BeanPropertyRowMapper(Class<T> mappedClass,
DbBase dbBase,
String... tableNames)
Create a new
BeanPropertyRowMapper, accepting unpopulated
properties in the target bean. |
public T mapRow(ResultSet rs, int rowNum) throws SQLException
mapRow in interface org.springframework.jdbc.core.RowMapper<T>SQLExceptionCopyright © 2022 Pivotal Software, Inc.. All rights reserved.