本文整理了Java中org.mongodb.morphia.query.QueryImpl.<init>
方法的一些代码示例,展示了QueryImpl.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryImpl.<init>
方法的具体详情如下:
包路径:org.mongodb.morphia.query.QueryImpl
类名称:QueryImpl
方法名:<init>
[英]Creates a Query for the given type and collection
[中]为给定类型和集合创建查询
代码示例来源:origin: ltsopensource/light-task-scheduler
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);
}
代码示例来源:origin: ltsopensource/light-task-scheduler
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);
}
代码示例来源:origin: BlackLabs/play-morphia
public MorphiaQuery(Class<? extends Model> clazz, DBCollection coll,
Datastore ds) {
// super(clazz, coll, ds);
q_ = new QueryImpl(clazz, coll, ds);
c_ = clazz;
}
代码示例来源:origin: org.mongodb.morphia/morphia
@Override
public <T> Query<T> createQuery(final Datastore datastore) {
return new QueryImpl<T>(null, null, datastore);
}
}
代码示例来源:origin: org.mongodb.morphia/morphia
@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;
}
代码示例来源:origin: BlackLabs/play-morphia
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;
}
代码示例来源:origin: com.github.ltsopensource/lts-core
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);
}
代码示例来源:origin: org.mongodb.morphia/morphia
@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;
}
内容来源于网络,如有侵权,请联系作者删除!