public interface QueryFactory
Query
ies.Modifier and Type | Method and Description |
---|---|
<T> Query<T> |
createQuery(Datastore datastore)
Creates an unvalidated
Query typically for use in aggregation pipelines. |
<T> Query<T> |
createQuery(Datastore datastore,
com.mongodb.DBCollection collection,
Class<T> type)
Creates and returns a
Query for the given arguments. |
<T> Query<T> |
createQuery(Datastore datastore,
com.mongodb.DBCollection collection,
Class<T> type,
com.mongodb.DBObject query)
Creates and returns a
Query for the given arguments. |
<T> Query<T> createQuery(Datastore datastore, com.mongodb.DBCollection collection, Class<T> type)
Query
for the given arguments. Default implementations of this
method will simply delegate to createQuery(Datastore, DBCollection, Class, DBObject)
with the last argument being null
.<T> Query<T> createQuery(Datastore datastore, com.mongodb.DBCollection collection, Class<T> type, com.mongodb.DBObject query)
Query
for the given arguments. The last argument is optional
and may be null
.Copyright © 2016. All rights reserved.