|
|
|
@ -22,17 +22,17 @@ import io.r2dbc.spi.Connection; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Union type combining {@link Function} and {@link SqlProvider} to expose the SQL that is |
|
|
|
* Union type combining {@link Function} and {@link SqlProvider} to expose the SQL |
|
|
|
* related to the underlying action. The SqlProvider can support lazy / generate once semantics, |
|
|
|
* that is related to the underlying action. The {@code SqlProvider} can support |
|
|
|
* in which case {@link #getSql()} can be {@code null} until the {@code #apply(Connection)} |
|
|
|
* lazy / generate-once semantics, in which case {@link #getSql()} can be {@code null} |
|
|
|
* method is invoked. |
|
|
|
* until the {@code #apply(Connection)} method is invoked. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Mark Paluch |
|
|
|
* @author Mark Paluch |
|
|
|
* @author Simon Baslé |
|
|
|
* @author Simon Baslé |
|
|
|
* @since 5.3 |
|
|
|
* @since 5.3 |
|
|
|
* @param <R> the type of the result of the function. |
|
|
|
* @param <R> the type of the result of the function. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@SuppressWarnings("rawtypes") |
|
|
|
sealed interface ConnectionFunction<R> extends Function<Connection, R>, SqlProvider |
|
|
|
sealed interface ConnectionFunction<R> extends Function<Connection, R>, SqlProvider |
|
|
|
permits DelegateConnectionFunction, ResultFunction { |
|
|
|
permits DelegateConnectionFunction, ResultFunction { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|