public class SpringDataMongodbQuery<T> extends com.querydsl.mongodb.AbstractMongodbQuery<T,SpringDataMongodbQuery<T>>
MongodbQuery
implementation.Constructor and Description |
---|
SpringDataMongodbQuery(MongoOperations operations,
Class<? extends T> type)
Creates a new
SpringDataMongodbQuery . |
SpringDataMongodbQuery(MongoOperations operations,
Class<? extends T> type,
String collectionName)
Creates a new
SpringDataMongodbQuery to query the given collection. |
Modifier and Type | Method and Description |
---|---|
protected com.mongodb.DBCollection |
getCollection(Class<?> type) |
anyEmbedded, asDBObject, createCursor, createCursor, createFilter, createJoinFilter, distinct, fetch, fetch, fetchCount, fetchFirst, fetchFirst, fetchOne, fetchOne, fetchResults, fetchResults, getIds, iterate, iterate, join, join, limit, offset, orderBy, orderBy, restrict, set, setReadPreference, toString, where, where
public SpringDataMongodbQuery(MongoOperations operations, Class<? extends T> type)
SpringDataMongodbQuery
.operations
- must not be null.type
- must not be null.public SpringDataMongodbQuery(MongoOperations operations, Class<? extends T> type, String collectionName)
SpringDataMongodbQuery
to query the given collection.operations
- must not be null.type
- must not be null.collectionName
- must not be null or empty.protected com.mongodb.DBCollection getCollection(Class<?> type)
getCollection
in class com.querydsl.mongodb.AbstractMongodbQuery<T,SpringDataMongodbQuery<T>>
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.