io.ebean.Query.getExpressionFactory()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中io.ebean.Query.getExpressionFactory方法的一些代码示例,展示了Query.getExpressionFactory的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getExpressionFactory方法的具体详情如下:
包路径:io.ebean.Query
类名称:Query
方法名:getExpressionFactory

Query.getExpressionFactory介绍

[英]Return the ExpressionFactory used by this query.
[中]返回此查询使用的ExpressionFactory。

代码示例

代码示例来源:origin: ebean-orm/ebean

public DefaultExpressionList(Query<T> query, ExpressionList<T> parentExprList) {
 this(query, query.getExpressionFactory(), parentExprList);
}

代码示例来源:origin: ebean-orm/ebean

/**
 * Construct for Text root expression list - this handles implicit Bool Should, Must etc.
 */
public DefaultExpressionList(Query<T> query) {
 this(query, query.getExpressionFactory(), null, new ArrayList<>(), true);
}

代码示例来源:origin: ebean-orm/ebean

/**
 * Return the expressions used to filter on this path. This should be a many path to use this
 * method.
 */
@SuppressWarnings({"rawtypes", "unchecked"})
public <T> SpiExpressionList<T> filterMany(Query<T> rootQuery) {
 if (filterMany == null) {
  FilterExprPath exprPath = new FilterExprPath(path);
  SpiExpressionFactory queryEf = (SpiExpressionFactory) rootQuery.getExpressionFactory();
  ExpressionFactory filterEf = queryEf.createExpressionFactory();// exprPath);
  filterMany = new FilterExpressionList(exprPath, filterEf, rootQuery);
  // by default we need to make this a 'query join' now
  markForQueryJoin = true;
 }
 return filterMany;
}

代码示例来源:origin: org.actframework/act-ebean2

@Override
public ExpressionFactory getExpressionFactory() {
  return q.getExpressionFactory();
}

代码示例来源:origin: org.actframework/act-ebean

@Override
public ExpressionFactory getExpressionFactory() {
  return qReadOnly.getExpressionFactory();
}

代码示例来源:origin: io.ebean/ebean

public DefaultExpressionList(Query<T> query, ExpressionList<T> parentExprList) {
 this(query, query.getExpressionFactory(), parentExprList);
}

代码示例来源:origin: io.ebean/ebean

/**
 * Construct for Text root expression list - this handles implicit Bool Should, Must etc.
 */
public DefaultExpressionList(Query<T> query) {
 this(query, query.getExpressionFactory(), null, new ArrayList<>(), true);
}

代码示例来源:origin: icode/ameba

/**
 * Returns the <code>ExpressionFactory</code> used by this query.
 *
 * @return a {@link io.ebean.ExpressionFactory} object.
 */
public ExpressionFactory getExpressionFactory() {
  return query().getExpressionFactory();
}

代码示例来源:origin: io.ebean/ebean

/**
 * Return the expressions used to filter on this path. This should be a many path to use this
 * method.
 */
@SuppressWarnings({"rawtypes", "unchecked"})
public <T> SpiExpressionList<T> filterMany(Query<T> rootQuery) {
 if (filterMany == null) {
  FilterExprPath exprPath = new FilterExprPath(path);
  SpiExpressionFactory queryEf = (SpiExpressionFactory) rootQuery.getExpressionFactory();
  ExpressionFactory filterEf = queryEf.createExpressionFactory();// exprPath);
  filterMany = new FilterExpressionList(exprPath, filterEf, rootQuery);
  // by default we need to make this a 'query join' now
  markForQueryJoin = true;
 }
 return filterMany;
}

相关文章

Query类方法