/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression add(Expression left, int right) { return add(left, Integer.valueOf(right)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression atan2(Expression expression, int value) { return atan2(expression, new Integer(value)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression divide(Expression left, int right) { return divide(left, Integer.valueOf(right)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression mod(Expression expression, int base) { return mod(expression, Integer.valueOf(base)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression multiply(Expression left, int right) { return multiply(left, new Integer(right)); }
/** * {@inheritDoc} */ @Override public void visit(AbsExpression expression) { // First create the expression from the encapsulated expression expression.getExpression().accept(this); // Now create the ABS expression queryExpression = ExpressionMath.abs(queryExpression); // Note: The type will be calculated when traversing the ABS's expression }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression max(Expression left, int right) { return max(left, Integer.valueOf(right)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression min(Expression left, int right) { return min(left, Integer.valueOf(right)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression power(Expression expression, int raised) { return power(expression, Integer.valueOf(raised)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression round(Expression expression, int decimalPlaces) { return round(expression, Integer.valueOf(decimalPlaces)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression mod(Expression expression, int base) { return mod(expression, Integer.valueOf(base)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression multiply(Expression left, int right) { return multiply(left, Integer.valueOf(right)); }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = ExpressionMath.abs(whereClause); return whereClause; }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression max(Expression left, int right) { return max(left, new Integer(right)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression min(Expression left, int right) { return min(left, Integer.valueOf(right)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression power(Expression expression, int raised) { return power(expression, new Integer(raised)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression round(Expression expression, int decimalPlaces) { return round(expression, Integer.valueOf(decimalPlaces)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression add(Expression left, int right) { return add(left, new Integer(right)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression mod(Expression expression, int base) { return mod(expression, new Integer(base)); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression multiply(Expression left, int right) { return multiply(left, Integer.valueOf(right)); }