/** * PUBLIC: * Return an expression that compares if the receivers value is greater and equal to the other value. * This is equivalent to the SQL ">=" operator . */ public Expression greaterThanEqual(Object theValue) { ExpressionOperator anOperator = getOperator(ExpressionOperator.GreaterThanEqual); return anOperator.expressionFor(this, theValue); }
/** * PUBLIC: * Function, returns the string right and left trimmed for the substring. */ public Expression trim(Object substring) { ExpressionOperator anOperator = getOperator(ExpressionOperator.Trim2); return anOperator.expressionForWithBaseLast(this, substring); }
/** * PUBLIC: * Function, returns the string with the substring trimed from the left. */ public Expression leftTrim(Object substring) { ExpressionOperator anOperator = getOperator(ExpressionOperator.LeftTrim2); return anOperator.expressionFor(this, substring); }
/** * PUBLIC: * Function, returns the size of the string. */ public Expression length() { ExpressionOperator anOperator = getOperator(ExpressionOperator.Length); return anOperator.expressionFor(this); }
/** * PUBLIC: * Function, returns the string with the substring trimed from the right. */ public Expression rightTrim(Object substring) { ExpressionOperator anOperator = getOperator(ExpressionOperator.RightTrim2); return anOperator.expressionFor(this, substring); }
/** * PUBLIC: * Function, returns date from the string using the default format. */ public Expression toDate() { ExpressionOperator anOperator = getOperator(ExpressionOperator.ToDate); return anOperator.expressionFor(this); }
/** * PUBLIC: * Function, returns the number converted from the string. */ public Expression toNumber() { ExpressionOperator anOperator = getOperator(ExpressionOperator.ToNumber); return anOperator.expressionFor(this); }
/** * PUBLIC: * Function, returns the string trimmed for white space. */ public Expression trim() { ExpressionOperator anOperator = getOperator(ExpressionOperator.Trim); return anOperator.expressionFor(this); }
/** * PUBLIC: * XMLType Function - gets a number value from an XMLType */ public Expression getNumberVal() { ExpressionOperator anOperator = getOperator(ExpressionOperator.GetNumberVal); return anOperator.expressionFor(this); }
/** * PUBLIC: * Return a new expression that aplies the function to the given expression. * <p>Example: * <pre><blockquote> * Example: ExpressionMath.abs(builder.get("netWorth")).greaterThan(1000000); * </blockquote></pre> */ public static Expression abs(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Abs); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that aplies the function to the given expression. */ public static Expression add(Expression right, Object left) { ExpressionOperator anOperator = right.getOperator(ExpressionOperator.Add); return anOperator.expressionFor(right, left); }
/** * PUBLIC: * Return a new expression that aplies the function to the given expression. */ public static Expression asin(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Asin); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that aplies the function to the given expression. */ public static Expression atan(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Atan); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression cot(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Cot); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression log(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Log); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression sign(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Sign); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression cos(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Cos); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression exp(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Exp); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression ln(Expression expression) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Ln); return anOperator.expressionFor(expression); }
/** * PUBLIC: * Return a new expression that applies the function to the given expression. */ public static Expression mod(Expression expression, Object base) { ExpressionOperator anOperator = expression.getOperator(ExpressionOperator.Mod); return anOperator.expressionFor(expression, base); }