public static interface DatabaseClient.GenericExecuteSpec
修飾子と型 | メソッドと説明 |
---|---|
DatabaseClient.GenericExecuteSpec | bind(int index, ObjectSE value) 非 null 値を、その index で識別されるパラメーターにバインドします。 |
DatabaseClient.GenericExecuteSpec | bind(StringSE name, ObjectSE value) 非 null 値を、その name で識別されるパラメーターにバインドします。 |
DatabaseClient.GenericExecuteSpec | bindNull(int index, ClassSE<?> type) null 値をその index で識別されるパラメーターにバインドします。 |
DatabaseClient.GenericExecuteSpec | bindNull(StringSE name, ClassSE<?> type) null 値をその name で識別されるパラメーターにバインドします。 |
FetchSpec<MapSE<StringSE, ObjectSE>> | fetch() SQL 呼び出しを実行し、実行段階に入って結果を取得します。 |
default DatabaseClient.GenericExecuteSpec | filter(FunctionSE<? super Statement,? extends Statement> filterFunction) 指定されたフィルターをフィルターチェーンの最後に追加します。 |
DatabaseClient.GenericExecuteSpec | filter(StatementFilterFunction filter) 指定されたフィルターをフィルターチェーンの最後に追加します。 |
<R> RowsFetchSpec<R> | map(BiFunctionSE<Row, RowMetadata,R> mappingFunction) 結果マッピング function SE を構成し、実行段階に入ります。 |
default <R> RowsFetchSpec<R> | map(FunctionSE<Row,R> mappingFunction) 結果マッピング function SE を構成し、実行段階に入ります。 |
reactor.core.publisher.Mono<VoidSE> | then() SQL 呼び出しを実行し、ステートメントの補完時に結果なしで完了する Mono を返します。 |
DatabaseClient.GenericExecuteSpec bind(int index, ObjectSE value)
index
- パラメーターをバインドするゼロベースのインデックス value
- スカラー値または Parameter
のいずれか DatabaseClient.GenericExecuteSpec bindNull(int index, ClassSE<?> type)
null
値をその index
で識別されるパラメーターにバインドします。index
- パラメーターをバインドするゼロベースのインデックス type
- パラメーター型 DatabaseClient.GenericExecuteSpec bind(StringSE name, ObjectSE value)
非 null
値を、その name
で識別されるパラメーターにバインドします。name
- パラメーターの名前 value
- バインドする値 DatabaseClient.GenericExecuteSpec bindNull(StringSE name, ClassSE<?> type)
null
値をその name
で識別されるパラメーターにバインドします。name
- パラメーターの名前 type
- パラメーター型 default DatabaseClient.GenericExecuteSpec filter(FunctionSE<? super Statement,? extends Statement> filterFunction)
フィルター関数は通常、ステートメントが実行される前にステートメントのメソッドを呼び出すために使用されます。例:
DatabaseClient client = …; client.sql("SELECT book_id FROM book").filter(statement -> statement.fetchSize(100))
filterFunction
- チェーンに追加されるフィルター DatabaseClient.GenericExecuteSpec filter(StatementFilterFunction filter)
フィルター関数は通常、ステートメントが実行される前にステートメントのメソッドを呼び出すために使用されます。例:
DatabaseClient client = …; client.sql("SELECT book_id FROM book").filter((statement, next) -> next.execute(statement.fetchSize(100)))
filter
- チェーンに追加されるフィルター default <R> RowsFetchSpec<R> map(FunctionSE<Row,R> mappingFunction)
function
SE を構成し、実行段階に入ります。<R> RowsFetchSpec<R> map(BiFunctionSE<Row,RowMetadata,R> mappingFunction)
function
SE を構成し、実行段階に入ります。R
- 結果の型 mappingFunction
- Row
および RowMetadata
から結果型にマップする関数 FetchSpec
reactor.core.publisher.Mono<VoidSE> then()
Mono
を返します。Mono
(積極的にドロップ)