Class ReactiveMongoQueryMethod

java.lang.Object
org.springframework.data.repository.query.QueryMethod
org.springframework.data.mongodb.repository.query.MongoQueryMethod
org.springframework.data.mongodb.repository.query.ReactiveMongoQueryMethod

public class ReactiveMongoQueryMethod extends MongoQueryMethod
Reactive specific implementation of MongoQueryMethod.
Since:
2.0
Author:
Mark Paluch, Christoph Strobl
  • Constructor Details

    • ReactiveMongoQueryMethod

      public ReactiveMongoQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.mapping.context.MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
      Creates a new ReactiveMongoQueryMethod from the given Method.
      Parameters:
      method - must not be null.
      metadata - must not be null.
      projectionFactory - must not be null.
      mappingContext - must not be null.
  • Method Details

    • createParameters

      protected MongoParameters createParameters(Method method)
      Overrides:
      createParameters in class MongoQueryMethod
    • isCollectionQuery

      public boolean isCollectionQuery()
      Overrides:
      isCollectionQuery in class org.springframework.data.repository.query.QueryMethod
    • isGeoNearQuery

      public boolean isGeoNearQuery()
      Description copied from class: MongoQueryMethod
      Returns whether the query is a geo near query.
      Overrides:
      isGeoNearQuery in class MongoQueryMethod
      Returns:
    • isModifyingQuery

      public boolean isModifyingQuery()
      Overrides:
      isModifyingQuery in class MongoQueryMethod
    • isQueryForEntity

      public boolean isQueryForEntity()
      Overrides:
      isQueryForEntity in class org.springframework.data.repository.query.QueryMethod
    • isStreamQuery

      public boolean isStreamQuery()
      Overrides:
      isStreamQuery in class org.springframework.data.repository.query.QueryMethod
    • hasReactiveWrapperParameter

      public boolean hasReactiveWrapperParameter()
      Check if the given QueryMethod receives a reactive parameter wrapper as one of its parameters.
      Returns:
    • verify

      public void verify()
      Description copied from class: MongoQueryMethod
      Verify the actual QueryMethod is valid in terms of supported return and parameter types.
      Overrides:
      verify in class MongoQueryMethod