| Interface | Description |
|---|---|
| RowMapper<T> |
将 一行 ResultSet 转换成 T,不允许调用 rs.next()
|
| Class | Description |
|---|---|
| ArrayRowMapper |
结果集转为数组
|
| BeanRowMapper<T> |
对象转换:
对于子对象,需要使用@Results注解,设置子对象的属性和列名的对应.
|
| JPABeanRowMapper |
SqlResultSetMapping对象转换:
|
| ListRowMapper |
结果集转为list
|
| MapRowMapper |
结果集转为Map
|
| RowMapperHelp | |
| SetRowMapper |
结果集转为set
|
| SingleColumnRowMapper<T> |
单值转换,主要是基本类型,String等.
|
Copyright © 2020. All rights reserved.