本文整理汇总了Java中org.jongo.query.QueryFactory类的典型用法代码示例。如果您正苦于以下问题:Java QueryFactory类的具体用法?Java QueryFactory怎么用?Java QueryFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
QueryFactory类属于org.jongo.query包,在下文中一共展示了QueryFactory类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RefFindOne
import org.jongo.query.QueryFactory; //导入依赖的package包/类
RefFindOne(DBCollection collection, ReadPreference readPreference, ExtendedUnmarshaller unmarshaller, QueryFactory queryFactory, String query, Object... parameters) {
this.unmarshaller = unmarshaller;
this.collection = collection;
this.readPreference = readPreference;
this.queryFactory = queryFactory;
this.query = this.queryFactory.createQuery(query, parameters);
}
示例2: getQueryFactory
import org.jongo.query.QueryFactory; //导入依赖的package包/类
@Override
public QueryFactory getQueryFactory() {
return null;
}
示例3: getQueryFactory
import org.jongo.query.QueryFactory; //导入依赖的package包/类
@Override
public QueryFactory getQueryFactory() {
return queryFactory;
}
示例4: InstantiatedReferencesQueryingCache
import org.jongo.query.QueryFactory; //导入依赖的package包/类
public InstantiatedReferencesQueryingCache(QueryFactory queryFactory, ExtendedUnmarshaller unmarshaller, DBCollection collection){
this.queryFactory = queryFactory;
this.unmarshaller = unmarshaller;
this.collection = collection;
}
示例5: RefFind
import org.jongo.query.QueryFactory; //导入依赖的package包/类
/**
*
* @param collection
* @param readPreference
* @param unmarshaller
* @param queryFactory
* @param query
* @param parameters
*/
public RefFind(DBCollection collection, ReadPreference readPreference, ExtendedUnmarshaller unmarshaller, QueryFactory queryFactory, String query, Object... parameters) {
this.readPreference = readPreference;
this.unmarshaller = unmarshaller;
this.collection = collection;
this.queryFactory = queryFactory;
this.query = this.queryFactory.createQuery(query, parameters);
}