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