|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectnet.hasor.db.jdbc.core.mapper.AbstractRowMapper<T>
net.hasor.db.jdbc.core.mapper.SingleColumnRowMapper<T>
public class SingleColumnRowMapper<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. |
| 从类 net.hasor.db.jdbc.core.mapper.AbstractRowMapper 继承的方法 |
|---|
convertValueToRequiredType, getResultSetValue |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public SingleColumnRowMapper()
public SingleColumnRowMapper(Class<T> requiredType)
requiredType - the type that each result object is expected to match| 方法详细信息 |
|---|
public 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 - 当前记录的行号
SQLException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||