public interface RowMapper<T>
ResultSet的每行的自定义映射。 ResultSetMapperRowProvider,
ResultSetMapper| 限定符和类型 | 方法和说明 |
|---|---|
T |
mapRow(ExecuteContext ctx,
Object obj,
ResultSet rs,
int rowNum,
Annotation config) |
T mapRow(ExecuteContext ctx, Object obj, ResultSet rs, int rowNum, Annotation config) throws SQLException
obj - 正常处理后的对象rs - 结果集rowNum - 处理的记录位置(第几条记录):可以只针对某一条记录做特殊处理config - 注解相关配置,参考 ProviderConfigSQLExceptionCopyright © 2021. All rights reserved.