package org.mongodb.morphia.query;
import com.mongodb.DBCollection;
import org.mongodb.morphia.Datastore;
An abstract implementation of QueryFactory
. /**
* An abstract implementation of {@link QueryFactory}.
*/
public abstract class AbstractQueryFactory implements QueryFactory {
@Override
public <T> Query<T> createQuery(final Datastore datastore, final DBCollection collection, final Class<T> type) {
return createQuery(datastore, collection, type, null);
}
@Override
public <T> Query<T> createQuery(final Datastore datastore) {
return new QueryImpl<T>(null, null, datastore);
}
}