Module org.eclipse.persistence.core
Class ExpressionMath
java.lang.Object
org.eclipse.persistence.expressions.ExpressionMath
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);
 - 
Method SummaryModifier and TypeMethodDescriptionstatic Expressionabs(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionacos(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionadd(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionadd(Expression right, Object left) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionasin(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionatan(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionatan2(Expression expression, int value) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionatan2(Expression expression, Object value) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionatan2(Expression expression1, Expression expression2) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionceil(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionchr(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressioncos(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressioncosh(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressioncot(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressiondivide(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressiondivide(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionexp(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionfloor(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static ExpressionOperatorgetOperator(int selector) INTERNAL: Return the operator.static Expressionln(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionlog(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionmax(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionmax(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionmin(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionmin(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionmod(Expression expression, int base) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionmod(Expression expression, Object base) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionmultiply(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionmultiply(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionnegate(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionpower(Expression expression, int raised) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionpower(Expression expression, Object raised) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionround(Expression expression, int decimalPlaces) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionround(Expression expression, Object decimalPlaces) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionsign(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionsin(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionsinh(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionsqrt(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionsubtract(Expression left, int right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressionsubtract(Expression left, Object right) PUBLIC: Return a new expression that applies the function to the given expression.static Expressiontan(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressiontanh(Expression expression) PUBLIC: Return a new expression that applies the function to the given expression.static Expressiontrunc(Expression expression, int decimalPlaces) PUBLIC: Return a new expression that applies the function to the given expression.static Expressiontrunc(Expression expression, Object decimalPlaces) PUBLIC: Return a new expression that applies the function to the given expression.
- 
Method Details- 
absPUBLIC: Return a new expression that applies the function to the given expression.Example: Example: ExpressionMath.abs(builder.get("netWorth")).greaterThan(1000000);
- 
acosPUBLIC: Return a new expression that applies the function to the given expression.
- 
addPUBLIC: Return a new expression that applies the function to the given expression.
- 
addPUBLIC: Return a new expression that applies the function to the given expression.
- 
asinPUBLIC: Return a new expression that applies the function to the given expression.
- 
atanPUBLIC: Return a new expression that applies the function to the given expression.
- 
atan2PUBLIC: Return a new expression that applies the function to the given expression.
- 
atan2PUBLIC: Return a new expression that applies the function to the given expression.
- 
atan2PUBLIC: Return a new expression that applies the function to the given expression.
- 
ceilPUBLIC: Return a new expression that applies the function to the given expression.
- 
chrPUBLIC: Return a new expression that applies the function to the given expression.
- 
cosPUBLIC: Return a new expression that applies the function to the given expression.
- 
coshPUBLIC: Return a new expression that applies the function to the given expression.
- 
cotPUBLIC: Return a new expression that applies the function to the given expression.
- 
dividePUBLIC: Return a new expression that applies the function to the given expression.
- 
dividePUBLIC: Return a new expression that applies the function to the given expression.
- 
expPUBLIC: Return a new expression that applies the function to the given expression.
- 
floorPUBLIC: Return a new expression that applies the function to the given expression.
- 
getOperatorINTERNAL: Return the operator.
- 
lnPUBLIC: Return a new expression that applies the function to the given expression.
- 
logPUBLIC: Return a new expression that applies the function to the given expression.
- 
maxPUBLIC: Return a new expression that applies the function to the given expression.
- 
maxPUBLIC: Return a new expression that applies the function to the given expression.
- 
minPUBLIC: Return a new expression that applies the function to the given expression.
- 
minPUBLIC: Return a new expression that applies the function to the given expression.
- 
modPUBLIC: Return a new expression that applies the function to the given expression.
- 
modPUBLIC: Return a new expression that applies the function to the given expression.
- 
multiplyPUBLIC: Return a new expression that applies the function to the given expression.
- 
multiplyPUBLIC: Return a new expression that applies the function to the given expression.
- 
negatePUBLIC: Return a new expression that applies the function to the given expression.
- 
powerPUBLIC: Return a new expression that applies the function to the given expression.
- 
powerPUBLIC: Return a new expression that applies the function to the given expression.
- 
roundPUBLIC: Return a new expression that applies the function to the given expression.
- 
roundPUBLIC: Return a new expression that applies the function to the given expression.
- 
signPUBLIC: Return a new expression that applies the function to the given expression.
- 
sinPUBLIC: Return a new expression that applies the function to the given expression.
- 
sinhPUBLIC: Return a new expression that applies the function to the given expression.
- 
sqrtPUBLIC: Return a new expression that applies the function to the given expression.
- 
subtractPUBLIC: Return a new expression that applies the function to the given expression.
- 
subtractPUBLIC: Return a new expression that applies the function to the given expression.
- 
tanPUBLIC: Return a new expression that applies the function to the given expression.
- 
tanhPUBLIC: Return a new expression that applies the function to the given expression.
- 
truncPUBLIC: Return a new expression that applies the function to the given expression.
- 
truncPUBLIC: Return a new expression that applies the function to the given expression.
 
-