public class SingleColumnRowMapper<T> extends AbstractRowMapper<T>
| 构造器和说明 |
|---|
SingleColumnRowMapper()
Create a new SingleColumnRowMapper.
|
SingleColumnRowMapper(Class<T> requiredType)
Create a new SingleColumnRowMapper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
T |
mapRow(ResultSet rs,
int rowNum)
将当前行的第一列的值转换为指定的类型。
|
void |
setRequiredType(Class<T> requiredType)
Set the type that each result object is expected to match.
|
convertValueToRequiredType, getResultSetValuepublic void setRequiredType(Class<T> requiredType)
If not specified, the column value will be exposed as returned by the JDBC driver.
public T mapRow(ResultSet rs, int rowNum) throws SQLException
rs - 记录集rowNum - 当前记录的行号SQLExceptionCopyright © 2020. All rights reserved.