org.springframework.data.document.mongodb.repository
Class AbstractMongoQuery
java.lang.Object
org.springframework.data.document.mongodb.repository.AbstractMongoQuery
- Direct Known Subclasses:
- PartTreeMongoQuery, StringBasedMongoQuery
public abstract class AbstractMongoQuery
- extends java.lang.Object
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 |
method
private final MongoQueryMethod method
template
private final MongoTemplate template
AbstractMongoQuery
public AbstractMongoQuery(MongoQueryMethod method,
MongoTemplate template)
- Creates a new
AbstractMongoQuery
from the given MongoQueryMethod
and MongoTemplate
.
- Parameters:
method
- template
-
getQueryMethod
public MongoQueryMethod getQueryMethod()
execute
public java.lang.Object execute(java.lang.Object[] parameters)
createQuery
protected abstract Query createQuery(ConvertingParameterAccessor accessor)
- Create a
Query
instance using the given ParameterAccessor
- Parameters:
accessor
- converter
-
- Returns: