T
- 元素类型public abstract class AbstractResultSetHandler<T> extends Object implements IResultSetHandler<T>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractResultSetHandler.ColumnMeta
字段描述对象
|
ARRAY, MAP
Constructor and Description |
---|
AbstractResultSetHandler() |
Modifier and Type | Method and Description |
---|---|
protected int |
getColumnCount() |
protected AbstractResultSetHandler.ColumnMeta |
getColumnMeta(int idx) |
List<T> |
handle(ResultSet resultSet)
执行结果集处理过程
|
protected List<T> |
processResult(ResultSet resultSet) |
protected abstract T |
processResultRow(ResultSet resultSet)
处理当前行结果集数据
|
protected Object |
processValueRenderer(Field field,
Object originValue) |
public List<T> handle(ResultSet resultSet) throws Exception
IResultSetHandler
handle
in interface IResultSetHandler<T>
resultSet
- 查询结果集Exception
- 可能产生的异常protected List<T> processResult(ResultSet resultSet) throws Exception
Exception
protected abstract T processResultRow(ResultSet resultSet) throws Exception
resultSet
- 数据结果集对象,切勿对其进行游标移动等操作,仅约定用于提取当前行字段数据Exception
- 可能产生的异常protected int getColumnCount()
protected AbstractResultSetHandler.ColumnMeta getColumnMeta(int idx)
Copyright © 2022. All rights reserved.