Class R2dbc
java.lang.Object
org.springframework.integration.r2dbc.dsl.R2dbc
Java DSL Factory class for R2DBC components.
- Since:
- 5.4
- Author:
- Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic R2dbcMessageSourceSpecinboundChannelAdapter(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, String query) Create an instance ofR2dbcMessageSourceSpecfor the providedR2dbcEntityOperationsand query string.static R2dbcMessageSourceSpecinboundChannelAdapter(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, Function<R2dbcMessageSource.SelectCreator, org.springframework.data.r2dbc.core.StatementMapper.SelectSpec> selectFunction) Create an instance ofR2dbcMessageSourceSpecfor the providedR2dbcEntityOperationsand function to create aStatementMapper.SelectSpecinstance.static R2dbcMessageSourceSpecinboundChannelAdapter(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, Expression queryExpression) Create an instance ofR2dbcMessageSourceSpecfor the providedR2dbcEntityOperationsand SpEL expression for query.static R2dbcMessageHandlerSpecoutboundChannelAdapter(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations) Create an instance ofR2dbcMessageHandlerSpecfor the providedR2dbcEntityOperations.
-
Method Details
-
inboundChannelAdapter
public static R2dbcMessageSourceSpec inboundChannelAdapter(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, String query) Create an instance ofR2dbcMessageSourceSpecfor the providedR2dbcEntityOperationsand query string.- Parameters:
r2dbcEntityOperations- theR2dbcEntityOperationsto use.query- the query to execute.- Returns:
- the spec.
-
inboundChannelAdapter
public static R2dbcMessageSourceSpec inboundChannelAdapter(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, Function<R2dbcMessageSource.SelectCreator, org.springframework.data.r2dbc.core.StatementMapper.SelectSpec> selectFunction) Create an instance ofR2dbcMessageSourceSpecfor the providedR2dbcEntityOperationsand function to create aStatementMapper.SelectSpecinstance.- Parameters:
r2dbcEntityOperations- theR2dbcEntityOperationsto use.selectFunction- the expression to evaluate a query for execution.- Returns:
- the spec.
-
inboundChannelAdapter
public static R2dbcMessageSourceSpec inboundChannelAdapter(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, Expression queryExpression) Create an instance ofR2dbcMessageSourceSpecfor the providedR2dbcEntityOperationsand SpEL expression for query.- Parameters:
r2dbcEntityOperations- theR2dbcEntityOperationsto use.queryExpression- the expression to evaluate a query for execution.- Returns:
- the spec.
-
outboundChannelAdapter
public static R2dbcMessageHandlerSpec outboundChannelAdapter(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations) Create an instance ofR2dbcMessageHandlerSpecfor the providedR2dbcEntityOperations.- Parameters:
r2dbcEntityOperations- theR2dbcEntityOperationsto use.- Returns:
- the spec.
-