Spring Data Document

org.springframework.data.mongodb.repository.query
Class PartTreeMongoQuery

java.lang.Object
  extended by org.springframework.data.mongodb.repository.query.AbstractMongoQuery
      extended by org.springframework.data.mongodb.repository.query.PartTreeMongoQuery
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery

public class PartTreeMongoQuery
extends AbstractMongoQuery

RepositoryQuery implementation for Mongo.

Author:
Oliver Gierke

Constructor Summary
PartTreeMongoQuery(MongoQueryMethod method, MongoOperations mongoOperations)
          Creates a new PartTreeMongoQuery from the given QueryMethod and MongoTemplate.
 
Method Summary
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
 org.springframework.data.repository.query.parser.PartTree getTree()
          Return the PartTree backing the query.
 
Methods inherited from class org.springframework.data.mongodb.repository.query.AbstractMongoQuery
execute, getQueryMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartTreeMongoQuery

public PartTreeMongoQuery(MongoQueryMethod method,
                          MongoOperations mongoOperations)
Creates a new PartTreeMongoQuery from the given QueryMethod and MongoTemplate.

Parameters:
method - must not be null.
template - must not be null.
Method Detail

getTree

public org.springframework.data.repository.query.parser.PartTree getTree()
Return the PartTree backing the query.

Returns:
the tree

createQuery

protected Query createQuery(ConvertingParameterAccessor accessor)
Description copied from class: AbstractMongoQuery
Creates a Query instance using the given ParameterAccessor

Specified by:
createQuery in class AbstractMongoQuery
Parameters:
accessor - must not be null.
Returns:

createCountQuery

protected Query createCountQuery(ConvertingParameterAccessor accessor)
Description copied from class: AbstractMongoQuery
Creates a Query instance using the given ConvertingParameterAccessor. Will delegate to AbstractMongoQuery.createQuery(ConvertingParameterAccessor) by default but allows customization of the count query to be triggered.

Overrides:
createCountQuery in class AbstractMongoQuery
Parameters:
accessor - must not be null.
Returns:

Spring Data Document

Copyright © 2012. All Rights Reserved.