Class AbstractR2dbcQuery

java.lang.Object
org.springframework.data.r2dbc.repository.query.AbstractR2dbcQuery
All Implemented Interfaces:
RepositoryQuery
Direct Known Subclasses:
PartTreeR2dbcQuery, StringBasedR2dbcQuery

public abstract class AbstractR2dbcQuery extends Object implements RepositoryQuery
Base class for reactive RepositoryQuery implementations for R2DBC.
Author:
Mark Paluch, Stephen Cohen, Christoph Strobl
  • Constructor Details

  • Method Details

    • getQueryMethod

      public R2dbcQueryMethod getQueryMethod()
      Specified by:
      getQueryMethod in interface RepositoryQuery
    • execute

      public Object execute(Object[] parameters)
      Specified by:
      execute in interface RepositoryQuery
    • isModifyingQuery

      protected abstract boolean isModifyingQuery()
      Returns whether this query is a modifying one.
      Returns:
      Since:
      1.1
    • isCountQuery

      protected abstract boolean isCountQuery()
      Returns whether the query should get a count projection applied.
      Returns:
      Since:
      1.2
    • isExistsQuery

      protected abstract boolean isExistsQuery()
      Returns whether the query should get an exists projection applied.
      Returns:
      Since:
      1.2
    • createQuery

      protected abstract reactor.core.publisher.Mono<PreparedOperation<?>> createQuery(org.springframework.data.relational.repository.query.RelationalParameterAccessor accessor)
      Creates a BindableQuery instance using the given ParameterAccessor
      Parameters:
      accessor - must not be null.
      Returns:
      a mono emitting a BindableQuery.