org.springframework.data.document.mongodb.repository
Class AbstractMongoQuery

java.lang.Object
  extended by org.springframework.data.document.mongodb.repository.AbstractMongoQuery
All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
Direct Known Subclasses:
PartTreeMongoQuery, StringBasedMongoQuery

public abstract class AbstractMongoQuery
extends java.lang.Object
implements org.springframework.data.repository.query.RepositoryQuery

Base class for RepositoryQuery implementations for Mongo.

Author:
Oliver Gierke

Constructor Summary
AbstractMongoQuery(org.springframework.data.document.mongodb.repository.MongoQueryMethod method, MongoTemplate template)
          Creates a new AbstractMongoQuery from the given MongoQueryMethod and MongoTemplate.
 
Method Summary
protected abstract  Query createQuery(ConvertingParameterAccessor accessor)
          Create a Query instance using the given ParameterAccessor
 java.lang.Object execute(java.lang.Object[] parameters)
           
 org.springframework.data.document.mongodb.repository.MongoQueryMethod getQueryMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMongoQuery

public AbstractMongoQuery(org.springframework.data.document.mongodb.repository.MongoQueryMethod method,
                          MongoTemplate template)
Creates a new AbstractMongoQuery from the given MongoQueryMethod and MongoTemplate.

Parameters:
method -
template -
Method Detail

getQueryMethod

public org.springframework.data.document.mongodb.repository.MongoQueryMethod getQueryMethod()
Specified by:
getQueryMethod in interface org.springframework.data.repository.query.RepositoryQuery

execute

public java.lang.Object execute(java.lang.Object[] parameters)
Specified by:
execute in interface org.springframework.data.repository.query.RepositoryQuery

createQuery

protected abstract Query createQuery(ConvertingParameterAccessor accessor)
Create a Query instance using the given ParameterAccessor

Parameters:
accessor -
converter -
Returns:


Copyright © 2011. All Rights Reserved.