T - public interface ResultSetMapper<T>
ResultProvider 通过注解实现| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
mapping(ExecuteContext ctx,
Class target,
ResultSet resultSet,
Annotation config)
将数据库查询结果集ResultSet映射到一个对象上,对象通过target指定
|
List<T> mapping(ExecuteContext ctx, Class target, ResultSet resultSet, Annotation config) throws SQLException
ctx - 执行上下文target - ResultSet中每一行对应的目标类resultSet - config - 实现了ProviderConfig注解的注解,如果没有,则为空SQLExceptionCopyright © 2022. All rights reserved.