Class AbstractR2dbcQuery

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

public abstract class AbstractR2dbcQuery extends Object implements org.springframework.data.repository.query.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 org.springframework.data.repository.query.RepositoryQuery
    • execute

      public Object execute(Object[] parameters)
      Specified by:
      execute in interface org.springframework.data.repository.query.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<org.springframework.r2dbc.core.PreparedOperation<?>> createQuery(RelationalParameterAccessor accessor)
      Creates a BindableQuery instance using the given ParameterAccessor
      Parameters:
      accessor - must not be null.
      Returns:
      a mono emitting a BindableQuery.