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
ConstructorDescriptionReactiveMongoQueryMethod
(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 newReactiveMongoQueryMethod
from the givenMethod
. -
Method Summary
Modifier and TypeMethodDescriptionprotected MongoParameters
createParameters
(Method method) boolean
Check if the givenQueryMethod
receives a reactive parameter wrapper as one of its parameters.boolean
boolean
Returns whether the query is a geo near query.boolean
boolean
boolean
void
verify()
Verify the actualQueryMethod
is 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, hasQueryMetaAttributes
Methods 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 newReactiveMongoQueryMethod
from 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:
createParameters
in classMongoQueryMethod
-
isCollectionQuery
public boolean isCollectionQuery()- Overrides:
isCollectionQuery
in classorg.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 classMongoQueryMethod
- Returns:
-
isModifyingQuery
public boolean isModifyingQuery()- Overrides:
isModifyingQuery
in classMongoQueryMethod
-
isQueryForEntity
public boolean isQueryForEntity()- Overrides:
isQueryForEntity
in classorg.springframework.data.repository.query.QueryMethod
-
isStreamQuery
public boolean isStreamQuery()- Overrides:
isStreamQuery
in classorg.springframework.data.repository.query.QueryMethod
-
hasReactiveWrapperParameter
public boolean hasReactiveWrapperParameter()Check if the givenQueryMethod
receives a reactive parameter wrapper as one of its parameters.- Returns:
-
verify
public void verify()Description copied from class:MongoQueryMethod
Verify the actualQueryMethod
is valid in terms of supported return and parameter types.- Overrides:
verify
in classMongoQueryMethod
-