Class StringBasedR2dbcQuery

java.lang.Object
org.springframework.data.r2dbc.repository.query.AbstractR2dbcQuery
org.springframework.data.r2dbc.repository.query.StringBasedR2dbcQuery
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery

public class StringBasedR2dbcQuery extends AbstractR2dbcQuery
String-based StringBasedR2dbcQuery implementation.

A StringBasedR2dbcQuery expects a query method to be annotated with Query with a SQL query. Supports named parameters (if enabled on DatabaseClient) and SpEL expressions enclosed with :#{…}.

Author:
Mark Paluch
  • Constructor Details

    • StringBasedR2dbcQuery

      public StringBasedR2dbcQuery(R2dbcQueryMethod queryMethod, R2dbcEntityOperations entityOperations, R2dbcConverter converter, ReactiveDataAccessStrategy dataAccessStrategy, org.springframework.expression.ExpressionParser expressionParser, org.springframework.data.repository.query.ReactiveQueryMethodEvaluationContextProvider evaluationContextProvider)
      Creates a new StringBasedR2dbcQuery for the given StringBasedR2dbcQuery, DatabaseClient, SpelExpressionParser, and QueryMethodEvaluationContextProvider.
      Parameters:
      queryMethod - must not be null.
      entityOperations - must not be null.
      converter - must not be null.
      dataAccessStrategy - must not be null.
      expressionParser - must not be null.
      evaluationContextProvider - must not be null.
    • StringBasedR2dbcQuery

      public StringBasedR2dbcQuery(String query, R2dbcQueryMethod method, R2dbcEntityOperations entityOperations, R2dbcConverter converter, ReactiveDataAccessStrategy dataAccessStrategy, org.springframework.expression.ExpressionParser expressionParser, org.springframework.data.repository.query.ReactiveQueryMethodEvaluationContextProvider evaluationContextProvider)
      Create a new StringBasedR2dbcQuery for the given query, R2dbcQueryMethod, DatabaseClient, SpelExpressionParser, and QueryMethodEvaluationContextProvider.
      Parameters:
      method - must not be null.
      entityOperations - must not be null.
      converter - must not be null.
      dataAccessStrategy - must not be null.
      expressionParser - must not be null.
      evaluationContextProvider - must not be null.
  • Method Details