パッケージ org.nkjmlab.sorm4j
インタフェース ResultSetMapper
-
- 既知のサブインタフェースのリスト:
OrmConnection,OrmTransaction,TypedOrmConnection<T>,TypedOrmTransaction<T>
public interface ResultSetMapperMappingResultSetto object.- 作成者:
- nkjm
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 static <T> FunctionHandler<ResultSet,List<T>>convertToRowsMapper(RowMapper<T> rowMapper)Converts the given rowMapper to function mapping rows to object list.<T> TmapRow(Class<T> objectClass, ResultSet resultSet)Maps the current row in the given resultSet to an object.Map<String,Object>mapRow(ResultSet resultSet)Maps the current row in the given resultSet to an Map object.<T> List<T>mapRows(Class<T> objectClass, ResultSet resultSet)Maps the all rows in the given resultSet to an object list.List<Map<String,Object>>mapRows(ResultSet resultSet)Maps the all rows in the given resultSet to a map list.
-
-
-
メソッドの詳細
-
mapRow
<T> T mapRow(Class<T> objectClass, ResultSet resultSet)
Maps the current row in the given resultSet to an object.- 型パラメータ:
T-- パラメータ:
objectClass-resultSet-- 戻り値:
-
mapRow
Map<String,Object> mapRow(ResultSet resultSet)
Maps the current row in the given resultSet to an Map object.- パラメータ:
resultSet-- 戻り値:
-
mapRows
<T> List<T> mapRows(Class<T> objectClass, ResultSet resultSet)
Maps the all rows in the given resultSet to an object list.- 型パラメータ:
T-- パラメータ:
objectClass-resultSet-- 戻り値:
-
mapRows
List<Map<String,Object>> mapRows(ResultSet resultSet)
Maps the all rows in the given resultSet to a map list.- パラメータ:
resultSet-- 戻り値:
-
convertToRowsMapper
static <T> FunctionHandler<ResultSet,List<T>> convertToRowsMapper(RowMapper<T> rowMapper)
Converts the given rowMapper to function mapping rows to object list.- 型パラメータ:
T-- パラメータ:
rowMapper-- 戻り値:
-
-