Class ReactiveCosmosQueryMethod

java.lang.Object
org.springframework.data.repository.query.QueryMethod
com.azure.spring.data.cosmos.repository.query.ReactiveCosmosQueryMethod

public class ReactiveCosmosQueryMethod extends org.springframework.data.repository.query.QueryMethod
Inherit from QueryMethod class to execute a finder query.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReactiveCosmosQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory)
    Creates a new QueryMethod from the given parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.repository.core.EntityMetadata<?>
     
    Gets the annotated query or returns null
    Returns the reactive wrapper class type if it exists or null otherwise
    boolean
    Returns whether the method has an annotated query.

    Methods inherited from class org.springframework.data.repository.query.QueryMethod

    createParameters, getDomainClass, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ReactiveCosmosQueryMethod

      public ReactiveCosmosQueryMethod(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory)
      Creates a new QueryMethod from the given parameters. Looks up the correct query to use for following invocations of the method given.
      Parameters:
      method - must not be null.
      metadata - must not be null.
      factory - must not be null.
  • Method Details

    • getEntityInformation

      public org.springframework.data.repository.core.EntityMetadata<?> getEntityInformation()
      Overrides:
      getEntityInformation in class org.springframework.data.repository.query.QueryMethod
    • getReactiveWrapper

      public Class<?> getReactiveWrapper()
      Returns the reactive wrapper class type if it exists or null otherwise
      Returns:
      Reactive wrapper class (Flux or Mono)
    • hasAnnotatedQuery

      public boolean hasAnnotatedQuery()
      Returns whether the method has an annotated query.
      Returns:
      if the query method has an annotated query
    • getQueryAnnotation

      @Nullable public String getQueryAnnotation()
      Gets the annotated query or returns null
      Returns:
      the annotated query String or null