public class PartTreeMongoQuery extends AbstractMongoQuery
RepositoryQuery implementation for Mongo.| Constructor and Description |
|---|
PartTreeMongoQuery(MongoQueryMethod method,
MongoOperations 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.
|
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.
|
execute, getQueryMethodpublic PartTreeMongoQuery(MongoQueryMethod method, MongoOperations mongoOperations)
method - must not be null.mongoOperations - must not be null.protected Query createQuery(ConvertingParameterAccessor accessor)
AbstractMongoQueryQuery instance using the given ParameterAccessorcreateQuery in class AbstractMongoQueryaccessor - must not be null.protected Query createCountQuery(ConvertingParameterAccessor accessor)
AbstractMongoQueryQuery instance using the given ConvertingParameterAccessor. Will delegate to
AbstractMongoQuery.createQuery(ConvertingParameterAccessor) by default but allows customization of the count query to be
triggered.createCountQuery 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–2018 Pivotal Software, Inc.. All rights reserved.