Class EntityRowMapper<T>
java.lang.Object
org.huiche.jdbc.mapper.row.EntityRowMapper<T>
- Type Parameters:
T- 实体类型
- All Implemented Interfaces:
RowMapper<T>
-
Method Summary
Modifier and TypeMethodDescriptionmap(ResultSet rs, IndexMapper indexMapper, Configuration configuration) 将结果集转换实体static <T> EntityRowMapper<T> 创建实体类转换器type()类型
-
Method Details
-
of
创建实体类转换器- Type Parameters:
T- 实体类类型- Parameters:
clazz- 实体类- Returns:
- 转换器
-
map
public T map(ResultSet rs, IndexMapper indexMapper, Configuration configuration) throws SQLException Description copied from interface:RowMapper将结果集转换实体- Specified by:
mapin interfaceRowMapper<T>- Parameters:
rs- 结果集indexMapper- 列下标的映射configuration- 配置- Returns:
- 实体
- Throws:
SQLException- 原生SQL异常
-
type
-