Interface RowMapper<T>
- Type Parameters:
T- 类型
- All Known Implementing Classes:
DefaultMapRowMapper, EntityRowMapper, MapRowMapper, SingleColumnRowMapper
public interface RowMapper<T>
行转换器
对外的行转换抽象,框架内置 EntityRowMapper、MapRowMapper、SingleColumnRowMapper
三种实现,业务也可自行实现本接口做自定义行映射。
- Author:
- Maning
-
Method Summary
Modifier and TypeMethodDescriptionmap(ResultSet rs, IndexMapper indexMapper, Configuration configuration) 将结果集转换实体type()类型
-
Method Details
-
map
将结果集转换实体- Parameters:
rs- 结果集indexMapper- 列下标的映射,按列下标读取的场景为 null(单列转换与自定义转换)configuration- 配置- Returns:
- 实体
- Throws:
SQLException- 原生SQL异常
-
type
-