本文整理了Java中org.mongodb.morphia.query.Query.cloneQuery
方法的一些代码示例,展示了Query.cloneQuery
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.cloneQuery
方法的具体详情如下:
包路径:org.mongodb.morphia.query.Query
类名称:Query
方法名:cloneQuery
[英]Creates and returns a copy of this Query.
[中]
代码示例来源:origin: org.mongodb.morphia/morphia
/**
* @return the query to use against these results
*/
public Query<T> createQuery() {
if (outputType == OutputType.INLINE) {
throw new MappingException("No collection available for inline mapreduce jobs");
}
return query.cloneQuery();
}
代码示例来源:origin: org.actframework/act-morphia
@Override
public Query<MODEL_TYPE> cloneQuery() {
MorphiaQuery<MODEL_TYPE> newQuery = new MorphiaQuery<MODEL_TYPE>(dao);
newQuery.mq = mq.cloneQuery();
return newQuery;
}
代码示例来源:origin: BlackLabs/play-morphia
@Override
public MorphiaQuery clone() {
MorphiaQuery mq = new MorphiaQuery();
mq.q_ = q_.cloneQuery();
return mq;
}
}
内容来源于网络,如有侵权,请联系作者删除!