パッケージ org.nkjmlab.sorm4j.sql
インタフェース Command
- 既知のサブインタフェースのリスト:
BasicCommand
,NamedParameterCommand
,OrderedParameterCommand
public interface Command
An executable request
- 作成者:
- nkjm
-
メソッドの概要
修飾子とタイプメソッド説明void
Accepts handler forPreparedStatement
which has sets the given parameters.<T> T
Applies handler forPreparedStatement
which has sets the given parameters.<T> T
executeQuery
(ResultSetTraverser<T> resultSetTraverser) Executes a query and apply the given handler to the returned result set.<T> List<T>
executeQuery
(RowMapper<T> rowMapper) Executes a query and apply the given mapper to the each row in returned result set.int
Executes an update and returns the number of rows modified.<T> T
Reads an object from the database.<T> LazyResultSet<T>
Returns anLazyResultSet
.<T> List<T>
Reads a list of objects from the database by mapping the results of the parameterized SQL query into instances of the given object class.<T> T
Reads a list of objects from the database by mapping the results of the parameterized SQL query into instances of the given object class.readTupleList
(Class<T1> t1, Class<T2> t2) Reads results as List ofTuple2
for reading JOIN SQL results typically.readTupleList
(Class<T1> t1, Class<T2> t2, Class<T3> t3) Reads results as List ofTuple3
for reading JOIN SQL results typically.
-
メソッドの詳細
-
acceptPreparedStatementHandler
Accepts handler forPreparedStatement
which has sets the given parameters.- パラメータ:
handler
-
-
applyPreparedStatementHandler
Applies handler forPreparedStatement
which has sets the given parameters.- 型パラメータ:
T
-- パラメータ:
handler
-- 戻り値:
-
executeQuery
Executes a query and apply the given handler to the returned result set.- 型パラメータ:
T
-- パラメータ:
resultSetTraverser
-- 戻り値:
-
executeQuery
Executes a query and apply the given mapper to the each row in returned result set.- 型パラメータ:
T
-- パラメータ:
rowMapper
-- 戻り値:
-
executeUpdate
int executeUpdate()Executes an update and returns the number of rows modified.- 戻り値:
-
readFirst
Reads an object from the database.- 型パラメータ:
T
-- パラメータ:
objectClass
-- 戻り値:
-
readLazy
Returns anLazyResultSet
. It is able to convert to Stream, List, and so on.- 型パラメータ:
T
-- パラメータ:
objectClass
-- 戻り値:
-
readList
Reads a list of objects from the database by mapping the results of the parameterized SQL query into instances of the given object class. Only the columns returned from the SQL query will be set into the object instance.- 型パラメータ:
T
-- パラメータ:
objectClass
-- 戻り値:
-
readOne
Reads a list of objects from the database by mapping the results of the parameterized SQL query into instances of the given object class. Only the columns returned from the SQL query will be set into the object instance.- 型パラメータ:
T
-- パラメータ:
objectClass
-- 戻り値:
-
readMapFirst
- 戻り値:
-
readMapLazy
LazyResultSet<Map<String,Object>> readMapLazy()- 戻り値:
-
readMapList
- 戻り値:
-
readMapOne
- 戻り値:
-
readTupleList
Reads results as List ofTuple2
for reading JOIN SQL results typically.- 型パラメータ:
T1
-T2
-- パラメータ:
t1
-t2
-- 戻り値:
-
readTupleList
Reads results as List ofTuple3
for reading JOIN SQL results typically.- 型パラメータ:
T1
-T2
-- パラメータ:
t1
-t2
-- 戻り値:
-