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, 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 newReactiveMongoQueryMethodfrom the givenMethod. -
Method Summary
Modifier and TypeMethodDescriptionprotected MongoParameterscreateParameters(Method method) booleanCheck 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 org.springframework.data.mongodb.repository.query.MongoQueryMethod
getAnnotatedAggregation, getAnnotatedCollation, getAnnotatedHint, getAnnotatedSort, getDomainClass, getEntityInformation, getParameters, getQueryMetaAttributes, getUpdateSource, hasAnnotatedAggregation, hasAnnotatedCollation, hasAnnotatedHint, hasAnnotatedQuery, hasAnnotatedSort, hasAnnotatedUpdate, hasQueryMetaAttributesMethods inherited from class org.springframework.data.repository.query.QueryMethod
createParameters, getName, getNamedQueryName, getResultProcessor, getReturnedObjectType, isPageQuery, isScrollQuery, isSliceQuery, toString
-
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 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
-
createParameters
- Overrides:
createParametersin classMongoQueryMethod
-
isCollectionQuery
public boolean isCollectionQuery()- Overrides:
isCollectionQueryin classorg.springframework.data.repository.query.QueryMethod
-
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 classorg.springframework.data.repository.query.QueryMethod
-
isStreamQuery
public boolean isStreamQuery()- Overrides:
isStreamQueryin classorg.springframework.data.repository.query.QueryMethod
-
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
-