public class SingleColumnRowMapper<T> extends AbstractRowMapper<T>
| 构造器和说明 |
|---|
SingleColumnRowMapper(Class<T> requiredType)
Create a new SingleColumnRowMapper.
|
SingleColumnRowMapper(Class<T> requiredType,
TypeHandlerRegistry typeHandler)
Create a new SingleColumnRowMapper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
T |
mapRow(ResultSet rs,
int rowNum)
将当前行的第一列的值转换为指定的类型。
|
getHandlerRegistry, getResultSetTypeHandler, getResultSetValue, getResultSetValuepublic SingleColumnRowMapper(Class<T> requiredType)
requiredType - the type that each result object is expected to matchpublic SingleColumnRowMapper(Class<T> requiredType, TypeHandlerRegistry typeHandler)
requiredType - the type that each result object is expected to matchpublic T mapRow(ResultSet rs, int rowNum) throws SQLException
rs - 记录集rowNum - 当前记录的行号SQLExceptionCopyright © 2021–2022. All rights reserved.