public <T> Query<T> createQuery(final String collName, final Class<T> clazz) { DBCollection dbCollection = ds.getDB().getCollection(getCollName(collName)); return new QueryImpl<T>(clazz, dbCollection, ds); }
public <T> Query<T> createQuery(final String collName, final Class<T> clazz) { DBCollection dbCollection = ds.getDB().getCollection(getCollName(collName)); return new QueryImpl<T>(clazz, dbCollection, ds); }
public MorphiaQuery(Class<? extends Model> clazz, DBCollection coll, Datastore ds) { // super(clazz, coll, ds); q_ = new QueryImpl(clazz, coll, ds); c_ = clazz; }
@Override public <T> Query<T> createQuery(final Datastore datastore) { return new QueryImpl<T>(null, null, datastore); } }
@Override public <T> Query<T> createQuery(final Datastore datastore, final DBCollection collection, final Class<T> type, final DBObject query) { final QueryImpl<T> item = new QueryImpl<T>(type, collection, datastore); if (query != null) { item.setQueryObject(query); } return item; }
public MorphiaQuery(Class<? extends Model> clazz, DBCollection coll, Datastore ds, int offset, int limit) { // super(clazz, coll, ds, offset, limit); q_ = new QueryImpl(clazz, coll, ds).offset(offset).limit(limit); c_ = clazz; }
public <T> Query<T> createQuery(final String collName, final Class<T> clazz) { DBCollection dbCollection = ds.getDB().getCollection(getCollName(collName)); return new QueryImpl<T>(clazz, dbCollection, ds); }
@Override public QueryImpl<T> cloneQuery() { final QueryImpl<T> n = new QueryImpl<T>(clazz, dbColl, ds); n.cache = ds.getMapper().createEntityCache(); // fresh cache n.includeFields = includeFields; n.setQuery(n); // feels weird, correct? n.validateName = validateName; n.validateType = validateType; n.baseQuery = copy(baseQuery); n.options = options != null ? options.copy() : null; // fields from superclass n.setAttachedTo(getAttachedTo()); n.setChildren(getChildren() == null ? null : new ArrayList<Criteria>(getChildren())); return n; }