/** * Return the ExpressionFactory from the default server. * <p> * 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. * </p> * <p> * Alternatively you can use the {@link Expr} as a shortcut to the * ExpressionFactory of the 'Default' EbeanServer. * </p> * <p> * You generally need to the an ExpressionFactory (or {@link Expr}) to build * an expression that uses OR like Expression e = Expr.or(..., ...); * </p> */ public static ExpressionFactory getExpressionFactory() { return serverMgr.getDefaultServer().getExpressionFactory(); }
/** * Return the ExpressionFactory from the default server. * <p> * 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. * </p> * <p> * Alternatively you can use the {@link Expr} as a shortcut to the * ExpressionFactory of the 'Default' EbeanServer. * </p> * <p> * You generally need to the an ExpressionFactory (or {@link Expr}) to build * an expression that uses OR like Expression e = Expr.or(..., ...); * </p> */ public static ExpressionFactory getExpressionFactory() { return serverMgr.getDefaultServer().getExpressionFactory(); }
/** * Return a ExampleExpression using example. * * @return the created ExampleExpression using example */ @Override public ExampleExpression exampleOf(Object example) { return ebeanServer.getExpressionFactory().exampleLike(example); }
/** * Return a ExampleExpression specifying more options. * * @return the created ExampleExpression specifying more options. */ @Override public ExampleExpression exampleOf(Object example, boolean caseInsensitive, LikeType likeType) { return ebeanServer.getExpressionFactory().exampleLike(example, caseInsensitive, likeType); } }
/** * Return a ExampleExpression using example. * * @return the created ExampleExpression using example */ @Override public ExampleExpression exampleOf(Object example) { return ebeanServer.getExpressionFactory().exampleLike(example); }
/** * Return a ExampleExpression specifying more options. * * @return the created ExampleExpression specifying more options. */ @Override public ExampleExpression exampleOf(Object example, boolean caseInsensitive, LikeType likeType) { return ebeanServer.getExpressionFactory().exampleLike(example, caseInsensitive, likeType); } }
private static ExpressionFactory factory(EbeanExprInvoker invoker) { EbeanServer server = invoker.getServer(); return server.getExpressionFactory(); }
break; return ebeanServer.getExpressionFactory().exampleLike(example.getProbe(), example.getMatcher().isIgnoreCaseEnabled(), likeType);
break; return ebeanServer.getExpressionFactory().exampleLike(example.getProbe(), example.getMatcher().isIgnoreCaseEnabled(), likeType);
QueryExprMeta parent) { EbeanServer server = invoker.getServer(); ExpressionFactory factory = server.getExpressionFactory(); Object expr = null; switch (operator) {