|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.repository.query.AbstractMongoQuery
org.springframework.data.mongodb.repository.query.StringBasedMongoQuery
public class StringBasedMongoQuery
Query to use a plain JSON String to create the Query to actually execute.
| Constructor Summary | |
|---|---|
StringBasedMongoQuery(MongoQueryMethod method,
MongoOperations mongoOperations)
Creates a new StringBasedMongoQuery for the given MongoQueryMethod and MongoOperations. |
|
StringBasedMongoQuery(String query,
MongoQueryMethod method,
MongoOperations mongoOperations)
Creates a new StringBasedMongoQuery for the given String, MongoQueryMethod and
MongoOperations. |
|
| Method Summary | |
|---|---|
protected Query |
createQuery(ConvertingParameterAccessor accessor)
Creates a Query instance using the given ParameterAccessor |
protected boolean |
isCountQuery()
Returns whether the query should get a count projection applied. |
protected boolean |
isDeleteQuery()
Return weather the query should delete matching documents. |
| Methods inherited from class org.springframework.data.mongodb.repository.query.AbstractMongoQuery |
|---|
createCountQuery, execute, getQueryMethod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringBasedMongoQuery(MongoQueryMethod method,
MongoOperations mongoOperations)
StringBasedMongoQuery for the given MongoQueryMethod and MongoOperations.
method - must not be null.mongoOperations - must not be null.
public StringBasedMongoQuery(String query,
MongoQueryMethod method,
MongoOperations mongoOperations)
StringBasedMongoQuery for the given String, MongoQueryMethod and
MongoOperations.
method - must not be null.template - must not be null.| Method Detail |
|---|
protected Query createQuery(ConvertingParameterAccessor accessor)
AbstractMongoQueryQuery instance using the given ParameterAccessor
createQuery in class AbstractMongoQueryaccessor - must not be null.
protected boolean isCountQuery()
AbstractMongoQuery
isCountQuery in class AbstractMongoQueryprotected boolean isDeleteQuery()
AbstractMongoQuery
isDeleteQuery in class AbstractMongoQuery
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||