public static class Transaction.QueryResult<T> extends Object
Constructor and Description |
---|
QueryResult() |
Modifier and Type | Method and Description |
---|---|
void |
close()
この結果を解放します。
|
T |
get()
行の内容をマップして返します。
|
ResultSet |
getResult()
ResultSetをそのまま取得します。
|
ArrayList<T> |
mapToList(Function<ResultRow,T> resultMapper)
Listに変換します。
|
ArrayList<T> |
mapToList(Function<ResultRow,T> resultMapper,
long max)
Listに変換します。
|
boolean |
next()
次の行に移動します。
|
Stream<ResultRow> |
stream()
Streamに変換します。
|
Stream<ResultRow> |
stream(boolean closeConnectionOnException)
Streamに変換します。
|
public ResultSet getResult()
public void close() throws SQLException
SQLException
public ArrayList<T> mapToList(Function<ResultRow,T> resultMapper, long max)
resultMapper
- マッピング関数max
- 最大件数public ArrayList<T> mapToList(Function<ResultRow,T> resultMapper)
resultMapper
- マッピング関数public Stream<ResultRow> stream(boolean closeConnectionOnException)
public boolean next()
public T get()
Copyright © 2023. All rights reserved.