インタフェース OrmMapReader
-
- 既知のサブインタフェースのリスト:
OrmConnection,OrmTransaction,TypedOrmConnection<T>,TypedOrmTransaction<T>
- 既知の実装クラスのリスト:
OrmConnectionImpl,SormImpl.OrmTransactionImpl,SormImpl.TypedOrmTransactionImpl,TypedOrmConnectionImpl
public interface OrmMapReaderA interface for getting result of query asMap.- 作成者:
- nkjm
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 Map<String,Object>readMapFirst(String sql, Object... parameters)Reads a first row from the database by mapping the results of the SQL query into an instance ofMap.Map<String,Object>readMapFirst(SqlStatement sql)LazyResultSet<Map<String,Object>>readMapLazy(String sql, Object... parameters)Returns anLazyResultSetinstance containing data from the execution of the provided parametrized SQL and convert it to Stream, List, and so on.LazyResultSet<Map<String,Object>>readMapLazy(SqlStatement sql)List<Map<String,Object>>readMapList(String sql, Object... parameters)Reads a list of objects from the database by mapping the SQL execution results to instances ofMapcontaining data from the execution of the provided parameterized SQL andList<Map<String,Object>>readMapList(SqlStatement sql)Map<String,Object>readMapOne(String sql, Object... parameters)Reads a first row from the database by mapping the results of the SQL query into an instance ofMap.Map<String,Object>readMapOne(SqlStatement sql)
-
-
-
メソッドの詳細
-
readMapFirst
Map<String,Object> readMapFirst(SqlStatement sql)
- パラメータ:
sql-- 戻り値:
-
readMapFirst
Map<String,Object> readMapFirst(String sql, Object... parameters)
Reads a first row from the database by mapping the results of the SQL query into an instance ofMap.Types returned from the database will be converted to Java types in the map according with the correspondence defined in
ResultSetConverter.toSingleMap(ResultSet, List, List).Parameters will be set according with the correspondence defined in
SqlParameterSetter.setParameters(PreparedStatement, Object... )
-
readMapLazy
LazyResultSet<Map<String,Object>> readMapLazy(SqlStatement sql)
- パラメータ:
sql-- 戻り値:
-
readMapLazy
LazyResultSet<Map<String,Object>> readMapLazy(String sql, Object... parameters)
Returns anLazyResultSetinstance containing data from the execution of the provided parametrized SQL and convert it to Stream, List, and so on.Types returned from the database will be converted to Java types in the map according with the correspondence defined in
ResultSetConverter.toSingleMap(ResultSet, List, List).Parameters will be set according with the correspondence defined in
SqlParameterSetter.setParameters(PreparedStatement, Object... )
-
readMapList
List<Map<String,Object>> readMapList(SqlStatement sql)
- パラメータ:
sql-- 戻り値:
-
readMapList
List<Map<String,Object>> readMapList(String sql, Object... parameters)
Reads a list of objects from the database by mapping the SQL execution results to instances ofMapcontaining data from the execution of the provided parameterized SQL andTypes returned from the database will be converted to Java types in the map according with the correspondence defined in
ResultSetConverter.toSingleMap(ResultSet, List, List).Parameters will be set according with the correspondence defined in
SqlParameterSetter.setParameters(PreparedStatement, Object... )
-
readMapOne
Map<String,Object> readMapOne(SqlStatement sql)
- パラメータ:
sql-- 戻り値:
-
-