public class ReactivePartTreeMongoQuery extends AbstractReactiveMongoQuery
RepositoryQuery
implementation for Mongo.Constructor and Description |
---|
ReactivePartTreeMongoQuery(ReactiveMongoQueryMethod method,
ReactiveMongoOperations mongoOperations)
|
Modifier and Type | Method and Description |
---|---|
protected Query |
createCountQuery(ConvertingParameterAccessor accessor)
Creates a
Query instance using the given ConvertingParameterAccessor . |
protected Query |
createQuery(ConvertingParameterAccessor accessor)
Creates a
Query instance using the given ParameterAccessor |
PartTree |
getTree()
Return the
PartTree backing the query. |
protected boolean |
isCountQuery()
Returns whether the query should get a count projection applied.
|
protected boolean |
isDeleteQuery()
Return weather the query should delete matching documents.
|
execute, getQueryMethod
public ReactivePartTreeMongoQuery(ReactiveMongoQueryMethod method, ReactiveMongoOperations mongoOperations)
method
- must not be null.mongoOperations
- must not be null.protected Query createQuery(ConvertingParameterAccessor accessor)
AbstractReactiveMongoQuery
Query
instance using the given ParameterAccessor
createQuery
in class AbstractReactiveMongoQuery
accessor
- must not be null.protected Query createCountQuery(ConvertingParameterAccessor accessor)
AbstractReactiveMongoQuery
Query
instance using the given ConvertingParameterAccessor
. Will delegate to
AbstractReactiveMongoQuery.createQuery(ConvertingParameterAccessor)
by default but allows customization of the count query to be
triggered.createCountQuery
in class AbstractReactiveMongoQuery
accessor
- must not be null.protected boolean isCountQuery()
AbstractReactiveMongoQuery
isCountQuery
in class AbstractReactiveMongoQuery
protected boolean isDeleteQuery()
AbstractReactiveMongoQuery
isDeleteQuery
in class AbstractReactiveMongoQuery
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.