org.springframework.data.document.mongodb.repository
Class AbstractMongoQuery
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
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.