@FunctionalInterface public interface ResultHandler<T>
处理 ResultSet
| Modifier and Type | Method and Description |
|---|---|
T |
handle(ResultSet resultSet)
将
ResultSet 转换为指定类型的对象 |
static <T> ResultHandler<List<T>> |
mapToList(RowMapper<T> rowMapper)
|
T handle(ResultSet resultSet) throws SQLException
ResultSet 转换为指定类型的对象resultSet - ResultSetSQLException - 数据库执行异常static <T> ResultHandler<List<T>> mapToList(RowMapper<T> rowMapper)
Copyright © 2026. All rights reserved.