Purpose: This class mirrors the java.lang.Math class to allow mathimetical function support within expressions.
Example:
ExpressionBuilder builder = new ExpressionBuilder();
Expression poorAndRich = ExpressionMath.abs(builder.get("netWorth")).greaterThan(1000000);
session.readAllObjects(Company.class, poorAndRich);
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Expression | abs(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | acos(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | add(Expression left, int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | add(Expression right, Object left)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | asin(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | atan(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | atan2(Expression expression, int value)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | atan2(Expression expression, Object value)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | atan2(Expression expression1, Expression expression2)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | ceil(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | chr(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | cos(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | cosh(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | cot(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | divide(Expression left, int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | divide(Expression left, Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | exp(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | floor(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static ExpressionOperator | |
| public static Expression | ln(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | log(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | max(Expression left, int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | max(Expression left, Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | min(Expression left, int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | min(Expression left, Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | mod(Expression expression, int base)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | mod(Expression expression, Object base)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | multiply(Expression left, int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | multiply(Expression left, Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | negate(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | power(Expression expression, int raised)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | power(Expression expression, Object raised)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | round(Expression expression, int decimalPlaces)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | round(Expression expression, Object decimalPlaces)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | sign(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | sin(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | sinh(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | sqrt(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | subtract(Expression left, int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | subtract(Expression left, Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | tan(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | tanh(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | trunc(Expression expression, int decimalPlaces)
PUBLIC: Return a new expression that applies the function to the given expression. |
| public static Expression | trunc(Expression expression, Object decimalPlaces)
PUBLIC: Return a new expression that applies the function to the given expression. |
| ExpressionMath | back to summary |
|---|---|
| private ExpressionMath() | |
| abs | back to summary |
|---|---|
| public static Expression abs(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. Example:
| |
| acos | back to summary |
|---|---|
| public static Expression acos(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| add | back to summary |
|---|---|
| public static Expression add(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| add | back to summary |
|---|---|
| public static Expression add(Expression right, Object left) PUBLIC: Return a new expression that applies the function to the given expression. | |
| asin | back to summary |
|---|---|
| public static Expression asin(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| atan | back to summary |
|---|---|
| public static Expression atan(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| atan2 | back to summary |
|---|---|
| public static Expression atan2(Expression expression, int value) PUBLIC: Return a new expression that applies the function to the given expression. | |
| atan2 | back to summary |
|---|---|
| public static Expression atan2(Expression expression, Object value) PUBLIC: Return a new expression that applies the function to the given expression. | |
| atan2 | back to summary |
|---|---|
| public static Expression atan2(Expression expression1, Expression expression2) PUBLIC: Return a new expression that applies the function to the given expression. | |
| ceil | back to summary |
|---|---|
| public static Expression ceil(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| chr | back to summary |
|---|---|
| public static Expression chr(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| cos | back to summary |
|---|---|
| public static Expression cos(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| cosh | back to summary |
|---|---|
| public static Expression cosh(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| cot | back to summary |
|---|---|
| public static Expression cot(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| divide | back to summary |
|---|---|
| public static Expression divide(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| divide | back to summary |
|---|---|
| public static Expression divide(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| exp | back to summary |
|---|---|
| public static Expression exp(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| floor | back to summary |
|---|---|
| public static Expression floor(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| getOperator | back to summary |
|---|---|
| public static ExpressionOperator getOperator(int selector) INTERNAL: Return the operator. | |
| ln | back to summary |
|---|---|
| public static Expression ln(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| log | back to summary |
|---|---|
| public static Expression log(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| max | back to summary |
|---|---|
| public static Expression max(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| max | back to summary |
|---|---|
| public static Expression max(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| min | back to summary |
|---|---|
| public static Expression min(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| min | back to summary |
|---|---|
| public static Expression min(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| mod | back to summary |
|---|---|
| public static Expression mod(Expression expression, int base) PUBLIC: Return a new expression that applies the function to the given expression. | |
| mod | back to summary |
|---|---|
| public static Expression mod(Expression expression, Object base) PUBLIC: Return a new expression that applies the function to the given expression. | |
| multiply | back to summary |
|---|---|
| public static Expression multiply(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| multiply | back to summary |
|---|---|
| public static Expression multiply(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| negate | back to summary |
|---|---|
| public static Expression negate(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| power | back to summary |
|---|---|
| public static Expression power(Expression expression, int raised) PUBLIC: Return a new expression that applies the function to the given expression. | |
| power | back to summary |
|---|---|
| public static Expression power(Expression expression, Object raised) PUBLIC: Return a new expression that applies the function to the given expression. | |
| round | back to summary |
|---|---|
| public static Expression round(Expression expression, int decimalPlaces) PUBLIC: Return a new expression that applies the function to the given expression. | |
| round | back to summary |
|---|---|
| public static Expression round(Expression expression, Object decimalPlaces) PUBLIC: Return a new expression that applies the function to the given expression. | |
| sign | back to summary |
|---|---|
| public static Expression sign(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| sin | back to summary |
|---|---|
| public static Expression sin(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| sinh | back to summary |
|---|---|
| public static Expression sinh(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| sqrt | back to summary |
|---|---|
| public static Expression sqrt(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| subtract | back to summary |
|---|---|
| public static Expression subtract(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| subtract | back to summary |
|---|---|
| public static Expression subtract(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression. | |
| tan | back to summary |
|---|---|
| public static Expression tan(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| tanh | back to summary |
|---|---|
| public static Expression tanh(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression. | |
| trunc | back to summary |
|---|---|
| public static Expression trunc(Expression expression, int decimalPlaces) PUBLIC: Return a new expression that applies the function to the given expression. | |
| trunc | back to summary |
|---|---|
| public static Expression trunc(Expression expression, Object decimalPlaces) PUBLIC: Return a new expression that applies the function to the given expression. | |