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