public class StringBasedAggregation extends AbstractMongoQuery
| Constructor and Description |
|---|
StringBasedAggregation(MongoQueryMethod method,
MongoOperations mongoOperations,
ExpressionParser expressionParser,
QueryMethodEvaluationContextProvider evaluationContextProvider)
|
| Modifier and Type | Method and Description |
|---|---|
protected Query |
createQuery(ConvertingParameterAccessor accessor)
Creates a
Query instance using the given ParameterAccessor |
protected Object |
doExecute(MongoQueryMethod method,
ResultProcessor resultProcessor,
ConvertingParameterAccessor accessor,
Class<?> typeToRead)
Execute the
RepositoryQuery of the given method with the parameters provided by the
accessor |
protected boolean |
isCountQuery()
Returns whether the query should get a count projection applied.
|
protected boolean |
isDeleteQuery()
Return weather the query should delete matching documents.
|
protected boolean |
isExistsQuery()
Returns whether the query should get an exists projection applied.
|
protected boolean |
isLimiting()
Return whether the query has an explicit limit set.
|
createCountQuery, execute, getCodecRegistry, getQueryMethod, getSpELExpressionEvaluatorForpublic StringBasedAggregation(MongoQueryMethod method, MongoOperations mongoOperations, ExpressionParser expressionParser, QueryMethodEvaluationContextProvider evaluationContextProvider)
method - must not be null.mongoOperations - must not be null.expressionParser - evaluationContextProvider - protected Object doExecute(MongoQueryMethod method, ResultProcessor resultProcessor, ConvertingParameterAccessor accessor, Class<?> typeToRead)
AbstractMongoQueryRepositoryQuery of the given method with the parameters provided by the
accessordoExecute in class AbstractMongoQuerymethod - the MongoQueryMethod invoked. Never null.resultProcessor - ResultProcessor for post procession. Never null.accessor - for providing invocation arguments. Never null.typeToRead - the desired component target type. Can be null.protected Query createQuery(ConvertingParameterAccessor accessor)
AbstractMongoQueryQuery instance using the given ParameterAccessorcreateQuery in class AbstractMongoQueryaccessor - must not be null.protected boolean isCountQuery()
AbstractMongoQueryisCountQuery in class AbstractMongoQueryprotected boolean isExistsQuery()
AbstractMongoQueryisExistsQuery in class AbstractMongoQueryprotected boolean isDeleteQuery()
AbstractMongoQueryisDeleteQuery in class AbstractMongoQueryprotected boolean isLimiting()
AbstractMongoQueryisLimiting in class AbstractMongoQueryCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.