パッケージ org.nkjmlab.sorm4j.typed
インタフェース TypedOrmReader<T>
- 既知のサブインタフェースのリスト:
TypedOrm<T>
,TypedOrmConnection<T>
,TypedOrmTransaction<T>
public interface TypedOrmReader<T>
The typed interface of reading functions of object-relation mapping.
- 作成者:
- nkjm
-
メソッドの概要
修飾子とタイプメソッド説明boolean
Returns the object which has same primary key exists or not.Gets function which traverses and maps the all the rows in the given resultSet to an object list.Gets a function which maps one row in the resultSet to an object.readAll()
Reads all rows from the table indicated by object class.readByPrimaryKey
(Object... primaryKeyValues) Reads an object by its primary keys from the table indicated by object class.Reads an object from the database.Reads an object from the database.Reads a list of objects from the database by mapping the results of the parameterized SQL query into instances of the given object class.readList
(ParameterizedSql sql) Reads a list of objects from the database by mapping the results of the parameterized SQL query into instances of the given object class.Reads only one object from the database.readOne
(ParameterizedSql sql) Reads only one object from the database.
-
メソッドの詳細
-
readAll
Reads all rows from the table indicated by object class.- 戻り値:
-
readByPrimaryKey
Reads an object by its primary keys from the table indicated by object class.- パラメータ:
primaryKeyValues
-- 戻り値:
-
readFirst
Reads an object from the database.- パラメータ:
sql
-- 戻り値:
-
readFirst
Reads an object from the database.- パラメータ:
sql
- with ordered parameter. The other type parameters (e.g. named parameter, list parameter) could not be used.parameters
- are ordered parameter.- 戻り値:
-
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.- パラメータ:
sql
-- 戻り値:
-
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.Parameters will be set according with the correspondence defined in
SqlParametersSetter.setParameters(SormOptions, PreparedStatement, Object[])
- パラメータ:
sql
- with ordered parameter. The other type parameters (e.g. named parameter, list parameter) could not be used.parameters
- are ordered parameter.- 戻り値:
-
readOne
Reads only one object from the database.- パラメータ:
sql
-- 戻り値:
-
readOne
Reads only one object from the database.- パラメータ:
sql
-parameters
-- 戻り値:
-
getRowMapper
Gets a function which maps one row in the resultSet to an object. The method does not callResultSet.next()
.- 戻り値:
-
getResultSetTraverser
ResultSetTraverser<List<T>> getResultSetTraverser()Gets function which traverses and maps the all the rows in the given resultSet to an object list.- 戻り値:
-
exists
Returns the object which has same primary key exists or not.- パラメータ:
object
-- 戻り値:
-