本文整理了Java中com.avaje.ebean.Ebean.getExpressionFactory()
方法的一些代码示例,展示了Ebean.getExpressionFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ebean.getExpressionFactory()
方法的具体详情如下:
包路径:com.avaje.ebean.Ebean
类名称:Ebean
方法名:getExpressionFactory
[英]Return the ExpressionFactory from the default server.
The ExpressionFactory is used internally by the query and ExpressionList to build the WHERE and HAVING clauses. Alternatively you can use the ExpressionFactory directly to create expressions to add to the query where clause.
Alternatively you can use the Expr as a shortcut to the ExpressionFactory of the 'Default' EbeanServer.
You generally need to the an ExpressionFactory (or Expr) to build an expression that uses OR like Expression e = Expr.or(..., ...);
[中]从默认服务器返回ExpressionFactory。
ExpressionFactory由查询和ExpressionList在内部用于构建WHERE和HAVING子句。或者,您可以直接使用ExpressionFactory创建要添加到查询where子句的表达式。
或者,您可以使用Expr作为“默认”EbeanServer的ExpressionFactory的快捷方式。
通常需要使用ExpressionFactory(或Expr)来构建使用或类似表达式e=Expr的表达式。或(…,…);
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Less Than or Equal to - property less than or equal to the given value.
*/
public static Expression le(String propertyName, Object value) {
return Ebean.getExpressionFactory().le(propertyName, value);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Create the query by Example expression specifying more options.
*/
public static ExampleExpression exampleLike(Object example, boolean caseInsensitive, LikeType likeType) {
return Ebean.getExpressionFactory().exampleLike(example, caseInsensitive, likeType);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Case insensitive Contains - property like %value%. Typically uses a lower()
* function to make the expression case insensitive.
*/
public static Expression icontains(String propertyName, String value) {
return Ebean.getExpressionFactory().icontains(propertyName, value);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* All Equal - Map containing property names and their values.
* <p>
* Expression where all the property names in the map are equal to the
* corresponding value.
* </p>
*
* @param propertyMap a map keyed by property names.
*/
public static Expression allEq(Map<String, Object> propertyMap) {
return Ebean.getExpressionFactory().allEq(propertyMap);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Or - join two expressions with a logical or.
*/
public static Expression or(Expression expOne, Expression expTwo) {
return Ebean.getExpressionFactory().or(expOne, expTwo);
}
代码示例来源:origin: org.avaje/ebean
/**
* Less Than - property less than the given value.
*/
public static Expression lt(String propertyName, Object value) {
return Ebean.getExpressionFactory().lt(propertyName, value);
}
代码示例来源:origin: org.avaje/ebean
/**
* Add raw expression with no parameters.
*/
public static Expression raw(String raw) {
return Ebean.getExpressionFactory().raw(raw);
}
代码示例来源:origin: org.avaje/ebean
/**
* Or - join two expressions with a logical or.
*/
public static Expression or(Expression expOne, Expression expTwo) {
return Ebean.getExpressionFactory().or(expOne, expTwo);
}
代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-api
/**
* Not Equal To - property not equal to the given value.
*/
public static Expression ne(String propertyName, Object value) {
return Ebean.getExpressionFactory().ne(propertyName, value);
}
代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-api
/**
* Case Insensitive Equal To - property equal to the given value (typically
* using a lower() function to make it case insensitive).
*/
public static Expression ieq(String propertyName, String value) {
return Ebean.getExpressionFactory().ieq(propertyName, value);
}
代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-api
/**
* Greater Than or Equal to - property greater than or equal to the given
* value.
*/
public static Expression ge(String propertyName, Object value) {
return Ebean.getExpressionFactory().ge(propertyName, value);
}
代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-api
/**
* Like - property like value where the value contains the SQL wild card
* characters % (percentage) and _ (underscore).
*/
public static Expression like(String propertyName, String value) {
return Ebean.getExpressionFactory().like(propertyName, value);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Greater Than - property greater than the given value.
*/
public static Expression gt(String propertyName, Object value) {
return Ebean.getExpressionFactory().gt(propertyName, value);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Less Than - property less than the given value.
*/
public static Expression lt(String propertyName, Object value) {
return Ebean.getExpressionFactory().lt(propertyName, value);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Case insensitive {@link #exampleLike(Object)}
*/
public static ExampleExpression iexampleLike(Object example) {
return Ebean.getExpressionFactory().iexampleLike(example);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Like - property like value where the value contains the SQL wild card
* characters % (percentage) and _ (underscore).
*/
public static Expression like(String propertyName, String value) {
return Ebean.getExpressionFactory().like(propertyName, value);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* In - property has a value in the array of values.
*/
public static Expression in(String propertyName, Object[] values) {
return Ebean.getExpressionFactory().in(propertyName, values);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* In - using a subQuery.
*/
public static Expression in(String propertyName, Query<?> subQuery) {
return Ebean.getExpressionFactory().in(propertyName, subQuery);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* Add raw expression with a single parameter.
* <p>
* The raw expression should contain a single ? at the location of the
* parameter.
* </p>
*/
public static Expression raw(String raw, Object value) {
return Ebean.getExpressionFactory().raw(raw, value);
}
代码示例来源:origin: org.avaje.ebean/ebean
/**
* And - join two expressions with a logical and.
*/
public static Expression and(Expression expOne, Expression expTwo) {
return Ebean.getExpressionFactory().and(expOne, expTwo);
}
内容来源于网络,如有侵权,请联系作者删除!