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
Reactive specific implementation of
MongoQueryMethod.- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveMongoQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newReactiveMongoQueryMethodfrom the givenMethod. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the givenQueryMethodreceives a reactive parameter wrapper as one of its parameters.booleanbooleanReturns whether the query is a geo near query.booleanbooleanbooleanvoidverify()Verify the actualQueryMethodis valid in terms of supported return and parameter types.Methods inherited from class MongoQueryMethod
getAnnotatedAggregation, getAnnotatedCollation, getAnnotatedHint, getAnnotatedQuery, getAnnotatedReadPreference, getAnnotatedSort, getDomainClass, getEntityInformation, getParameters, getQueryMetaAttributes, getRequiredVectorSearchAnnotation, getReturnType, getUpdateSource, hasAnnotatedAggregation, hasAnnotatedCollation, hasAnnotatedHint, hasAnnotatedQuery, hasAnnotatedReadPreference, hasAnnotatedSort, hasAnnotatedUpdate, hasAnnotatedVectorSearch, hasQueryMetaAttributesMethods inherited from class QueryMethod
createParameters, getName, getNamedQueryName, getResultProcessor, getReturnedObjectType, isPageQuery, isScrollQuery, isSearchQuery, isSliceQuery, toString
-
Constructor Details
-
ReactiveMongoQueryMethod
public ReactiveMongoQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory projectionFactory, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) Creates a newReactiveMongoQueryMethodfrom the givenMethod.- Parameters:
method- must not be null.metadata- must not be null.projectionFactory- must not be null.mappingContext- must not be null.
-
-
Method Details
-
isCollectionQuery
public boolean isCollectionQuery()- Overrides:
isCollectionQueryin classQueryMethod
-
isGeoNearQuery
public boolean isGeoNearQuery()Description copied from class:MongoQueryMethodReturns whether the query is a geo near query.- Overrides:
isGeoNearQueryin classMongoQueryMethod- Returns:
-
isModifyingQuery
public boolean isModifyingQuery()- Overrides:
isModifyingQueryin classMongoQueryMethod
-
isQueryForEntity
public boolean isQueryForEntity()- Overrides:
isQueryForEntityin classQueryMethod
-
isStreamQuery
public boolean isStreamQuery()- Overrides:
isStreamQueryin classQueryMethod
-
hasReactiveWrapperParameter
public boolean hasReactiveWrapperParameter()Check if the givenQueryMethodreceives a reactive parameter wrapper as one of its parameters.- Returns:
-
verify
public void verify()Description copied from class:MongoQueryMethodVerify the actualQueryMethodis valid in terms of supported return and parameter types.- Overrides:
verifyin classMongoQueryMethod
-