public interface QueryFactory
Queryies.| 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,
DBCollection collection,
Class<T> type)
Creates and returns a
Query for the given arguments. |
<T> Query<T> |
createQuery(Datastore datastore,
DBCollection collection,
Class<T> type,
DBObject query)
Creates and returns a
Query for the given arguments. |
<T> Query<T> createQuery(Datastore datastore, 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, DBCollection collection, Class<T> type, DBObject query)
Query for the given arguments. The last argument is optional
and may be null.