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 - the type of the resultdatastore - the Datastore to usecollection - the collection to querytype - the type of the resultcreateQuery(Datastore, DBCollection, Class, DBObject)<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.T - the type of the resultdatastore - the Datastore to usecollection - the collection to querytype - the type of the resultquery - the DBObject containing the query structure