E - 处理对象类型public class BeanListHandler<E> extends Object implements RsHandler<List<E>>
| Constructor and Description |
|---|
BeanListHandler(Class<E> beanType)
构造
|
| Modifier and Type | Method and Description |
|---|---|
List<E> |
handle(ResultSet rs)
处理结果集
结果集处理后不需要关闭 |
static <E> BeanListHandler<E> |
of(Class<E> beanType)
创建一个 BeanListHandler对象
|
public static <E> BeanListHandler<E> of(Class<E> beanType)
E - 处理对象类型beanType - Bean类型public List<E> handle(ResultSet rs) throws SQLException
RsHandlerhandle in interface RsHandler<List<E>>rs - 结果集SQLException - SQL异常Copyright © 2025. All rights reserved.