|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mongodb.repository.query.AbstractMongoQuery
public abstract class AbstractMongoQuery
Base class for RepositoryQuery
implementations for Mongo.
Constructor Summary | |
---|---|
AbstractMongoQuery(MongoQueryMethod method,
MongoOperations operations)
Creates a new AbstractMongoQuery from the given MongoQueryMethod and MongoOperations . |
Method Summary | |
---|---|
protected Query |
createCountQuery(ConvertingParameterAccessor accessor)
Creates a Query instance using the given ConvertingParameterAccessor . |
protected abstract Query |
createQuery(ConvertingParameterAccessor accessor)
Creates a Query instance using the given ParameterAccessor |
Object |
execute(Object[] parameters)
|
MongoQueryMethod |
getQueryMethod()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMongoQuery(MongoQueryMethod method, MongoOperations operations)
AbstractMongoQuery
from the given MongoQueryMethod
and MongoOperations
.
method
- must not be null.operations
- must not be null.Method Detail |
---|
public MongoQueryMethod getQueryMethod()
getQueryMethod
in interface org.springframework.data.repository.query.RepositoryQuery
public Object execute(Object[] parameters)
execute
in interface org.springframework.data.repository.query.RepositoryQuery
protected abstract Query createQuery(ConvertingParameterAccessor accessor)
Query
instance using the given ParameterAccessor
accessor
- must not be null.
protected Query createCountQuery(ConvertingParameterAccessor accessor)
Query
instance using the given ConvertingParameterAccessor
. Will delegate to
createQuery(ConvertingParameterAccessor)
by default but allows customization of the count query to be
triggered.
accessor
- must not be null.
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |