ConnectionFunction that produces a Flux of Result and that
defers generation of the SQL until the function has been applied.
Beforehand, the getSql() method simply returns null. The sql String is
also memoized during application, so that subsequent calls to getSql() return
the same String without further calls to the Supplier.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ExecuteFunction | |
| pack-priv final StatementFilterFunction | |
| pack-priv String | |
| pack-priv final Supplier | |
| pack-priv final BiFunction |
| Access | Constructor and Description |
|---|---|
| pack-priv | ResultFunction(Supplier<String> sqlSupplier, BiFunction<Connection, String, Statement> statementFunction, StatementFilterFunction filterFunction, ExecuteFunction executeFunction)
|
| Modifier and Type | Method and Description |
|---|---|
| public Flux | apply(Connection
the function argument connection)Implements java. |
| public String | getSql()
Implements org. |
| executeFunction | back to summary |
|---|---|
| pack-priv final ExecuteFunction executeFunction | |
| filterFunction | back to summary |
|---|---|
| pack-priv final StatementFilterFunction filterFunction | |
| resolvedSql | back to summary |
|---|---|
| pack-priv String resolvedSql
| |
| sqlSupplier | back to summary |
|---|---|
| pack-priv final Supplier<String> sqlSupplier | |
| statementFunction | back to summary |
|---|---|
| pack-priv final BiFunction<Connection, String, Statement> statementFunction | |
| ResultFunction | back to summary |
|---|---|
| pack-priv ResultFunction(Supplier<String> sqlSupplier, BiFunction<Connection, String, Statement> statementFunction, StatementFilterFunction filterFunction, ExecuteFunction executeFunction) | |
| apply | back to summary |
|---|---|
| public Flux Implements java. Doc from java. Applies this function to the given argument.
| |
| getSql | back to summary |
|---|---|
| public String getSql() Implements org. Doc from org. Return the SQL string for this object, i.e. typically the SQL used for creating statements. | |