ReactiveCosmosQueryMethod Class

  • 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

Constructor Description
ReactiveCosmosQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory)

Creates a new QueryMethod from the given parameters.

Method Summary

Modifier and Type Method and Description
org.springframework.data.repository.core.EntityMetadata<?> getEntityInformation()
String getQueryAnnotation()

Gets the annotated query or returns null

Class<?> getReactiveWrapper()

Returns the reactive wrapper class type if it exists or null otherwise

boolean hasAnnotatedQuery()

Returns whether the method has an annotated query.

Methods inherited from java.lang.Object

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

org.springframework.data.repository.query.QueryMethod.createParameters(java.lang.reflect.Method,org.springframework.data.util.TypeInformation< org.springframework.data.repository.query.QueryMethod.createParameters org.springframework.data.repository.query.QueryMethod.getDomainClass org.springframework.data.repository.query.QueryMethod.getEntityInformation org.springframework.data.repository.query.QueryMethod.getName org.springframework.data.repository.query.QueryMethod.getNamedQueryName org.springframework.data.repository.query.QueryMethod.getParameters org.springframework.data.repository.query.QueryMethod.getResultProcessor org.springframework.data.repository.query.QueryMethod.getReturnedObjectType org.springframework.data.repository.query.QueryMethod.isCollectionQuery org.springframework.data.repository.query.QueryMethod.isModifyingQuery org.springframework.data.repository.query.QueryMethod.isPageQuery org.springframework.data.repository.query.QueryMethod.isQueryForEntity org.springframework.data.repository.query.QueryMethod.isScrollQuery org.springframework.data.repository.query.QueryMethod.isSliceQuery org.springframework.data.repository.query.QueryMethod.isStreamQuery org.springframework.data.repository.query.QueryMethod.toString

Constructor Details

ReactiveCosmosQueryMethod

public ReactiveCosmosQueryMethod(Method method, RepositoryMetadata metadata, 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 EntityMetadata getEntityInformation()

Overrides:

ReactiveCosmosQueryMethod.getEntityInformation()

getQueryAnnotation

public String getQueryAnnotation()

Gets the annotated query or returns null

Returns:

the annotated query String or null

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

Applies to