net.hasor.jdbc
接口 RowMapper<T>

所有已知实现类:
BeanPropertyRowMapper, ColumnMapRowMapper, SingleColumnRowMapper

public interface RowMapper<T>

这个接口用来映射 JDBC 结果集中一行数据。

版本:
: 2013-10-9
作者:
Thomas Risberg, Juergen Hoeller, 赵永春(zyc@hasor.net)

方法摘要
 T mapRow(ResultSet rs, int rowNum)
          实现这个方法为结果集的一行记录进行转换,并将最终转换结果返回。
 

方法详细信息

mapRow

T mapRow(ResultSet rs,
         int rowNum)
         throws SQLException
实现这个方法为结果集的一行记录进行转换,并将最终转换结果返回。 如果返回为 null 等同于忽略该行。需要注意,不要调用结果集的 next() 方法。

抛出:
SQLException


Copyright © 2013-2014. All Rights Reserved.