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