Package | Description |
---|---|
sf.database.jdbc.handle | |
sf.database.jdbc.rowmapper | |
sf.database.jdbc.sql |
Constructor and Description |
---|
PageListHandler(RowMapper<T> mapper) |
RowListHandler(RowMapper<T> mapper) |
SingleRowHandler(RowMapper<T> mapper) |
Modifier and Type | Class and Description |
---|---|
class |
ArrayRowMapper
结果集转为数组
|
class |
BeanRowMapper<T>
对象转换:
对于子对象,需要使用@Results注解,设置子对象的属性和列名的对应.
|
class |
JPABeanRowMapper
SqlResultSetMapping对象转换:
|
class |
ListRowMapper
结果集转为list
|
class |
MapRowMapper
结果集转为Map
|
class |
SetRowMapper
结果集转为set
|
class |
SingleColumnRowMapper<T>
单值转换,主要是基本类型,String等.
|
Modifier and Type | Method and Description |
---|---|
static <T> RowMapper<T> |
RowMapperHelp.getRowMapper(Class<T> beanClass,
DBContext context)
获取转为rowmapper
|
Modifier and Type | Field and Description |
---|---|
protected RowMapper<T> |
ResultSetIteration.rm |
Modifier and Type | Method and Description |
---|---|
RowMapper<T> |
ResultSetIteration.getRm() |
Modifier and Type | Method and Description |
---|---|
static <T> ResultSetIteration<T> |
ResultSetIteration.iteration(ResultSet rs,
RowMapper<T> mapper)
Generates an
Iterable , suitable for use in for-each loops. |
Constructor and Description |
---|
ResultSetIteration(ResultSet rs,
RowMapper<T> rm) |
Copyright © 2020. All rights reserved.