Package dev.morphia.query
Class DefaultQueryFactory
- java.lang.Object
-
- dev.morphia.query.AbstractQueryFactory
-
- dev.morphia.query.DefaultQueryFactory
-
- All Implemented Interfaces:
QueryFactory
public class DefaultQueryFactory extends AbstractQueryFactory
A default implementation ofQueryFactory.
-
-
Constructor Summary
Constructors Constructor Description DefaultQueryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Query<T>createQuery(Datastore datastore, com.mongodb.DBCollection collection, java.lang.Class<T> type, com.mongodb.DBObject query)Creates and returns aQueryfor the given arguments.-
Methods inherited from class dev.morphia.query.AbstractQueryFactory
createQuery, createQuery
-
-
-
-
Method Detail
-
createQuery
public <T> Query<T> createQuery(Datastore datastore, com.mongodb.DBCollection collection, java.lang.Class<T> type, com.mongodb.DBObject query)
Description copied from interface:QueryFactoryCreates and returns aQueryfor the given arguments. The last argument is optional and may benull.- Type Parameters:
T- the type of the result- Parameters:
datastore- the Datastore to usecollection- the collection to querytype- the type of the resultquery- the DBObject containing the query structure- Returns:
- the query
-
-