1047104810491050105110521053
* @param name * @return */ public static Expression as( Expression expression, Identifier name ) { return new Value( new Operator( expression, " AS " ), name ); }
1063106410651066106710681069
* @param expression * @return */ public static Expression distinct( Expression expression ) { return new Value( new Operator( "DISTINCT " ), expression ); }
10731074107510761077107810791080108110821083
* * @return */ public static NumericExpression count() { return new Value( new FunctionExpression( "count", new AbstractExpression() { @Override public void asString( StringBuilder builder ) { builder.append( '*' );
1092109310941095109610971098
*/ public static NumericExpression count( Expression expression ) { checkNull( expression, "Expression" ); return new Value( new FunctionExpression( "count", expression ) ); }
1111111211131114111511161117
* @return */ public static NumericExpression sum( NumericExpression expression ) { checkNull( expression, "Expression" ); return new Value( new FunctionExpression( "sum", expression ) ); }
1122112311241125112611271128
* @return */ public static NumericExpression avg( Expression expression ) { checkNull( expression, "Expression" ); return new Value( new FunctionExpression( "avg", expression ) ); }
1133113411351136113711381139
* @return */ public static NumericExpression max( NumericExpression expression ) { checkNull( expression, "Expression" ); return new Value( new FunctionExpression( "max", expression ) ); }
1144114511461147114811491150
* @return */ public static NumericExpression min( NumericExpression expression ) { checkNull( expression, "Expression" ); return new Value( new FunctionExpression( "min", expression ) ); }
1155115611571158115911601161
* @return */ public static CollectionExpression collect( ScalarExpression expression ) { checkNull( expression, "Expression" ); return new Value( new FunctionExpression( "collect", expression ) ); }
1275127612771278127912801281
{ Query.checkNull( name, "Name" ); Query.checkNull( iterable, "Iterable" ); Query.checkNull( predicateExpression, "Predicate" ); return new Value( new IterablePredicateExpression( "all", name, iterable, predicateExpression ) ); }