public class DefaultQueryFactory extends AbstractQueryFactory
QueryFactory.| Constructor and Description |
|---|
DefaultQueryFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> Query<T> |
createQuery(Datastore datastore,
DBCollection collection,
Class<T> type,
DBObject query)
Creates and returns a
Query for the given arguments. |
createQuery, createQuerypublic <T> Query<T> createQuery(Datastore datastore, DBCollection collection, Class<T> type, DBObject query)
QueryFactoryQuery 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