E - 元素类型public class ListRowHandler<E> extends AbsRowHandler<List<E>>
ResultSet结果中的某行处理为ListcolumnCount, meta| Constructor and Description |
|---|
ListRowHandler(ResultSetMetaData meta,
Class<E> elementType)
构造
|
public ListRowHandler(ResultSetMetaData meta, Class<E> elementType) throws SQLException
meta - ResultSetMetaDataelementType - 列表元素类型SQLException - SQL异常public List<E> handle(ResultSet rs) throws SQLException
RowHandlerrs - ResultSet,传入前,须调用ResultSet.next()定位到行。SQLException - SQL异常Copyright © 2025. All rights reserved.