パッケージ org.nkjmlab.sorm4j.sql
インタフェース Query<T>
-
- 型パラメータ:
T-
- 既知のサブインタフェースのリスト:
NamedParameterQuery<T>,OrderedParameterQuery<T>,SelectQuery<T>
public interface Query<T>A query for reading and mapping a relation to object.- 作成者:
- nkjm
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 TreadFirst()Reads an object from the database.LazyResultSet<T>readLazy()Returns anLazyResultSet.List<T>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.TreadOne()Reads a list of objects from the database by mapping the results of the parameterized SQL query into instances of the given object class.
-
-
-
メソッドの詳細
-
readOne
T 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.- 戻り値:
-
readFirst
T readFirst()
Reads an object from the database.- 戻り値:
-
readLazy
LazyResultSet<T> readLazy()
Returns anLazyResultSet. It is able to convert to Stream, List, and so on.- 戻り値:
-
-