Top Description Constructors Methods
org.eclipse.persistence.expressions

public final Class ExpressionMath

extends Object
Class Inheritance
Imports
org.eclipse.persistence.internal.helper.ClassConstants

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);

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod 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
getOperator(int selector)

INTERNAL: Return the operator.

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ExpressionMathback to summary
private ExpressionMath()

Method Detail

absback to summary
public static Expression abs(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

Example:

 Example: ExpressionMath.abs(builder.get("netWorth")).greaterThan(1000000);
acosback to summary
public static Expression acos(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

addback to summary
public static Expression add(Expression left, int right)

PUBLIC: Return a new expression that applies the function to the given expression.

addback to summary
public static Expression add(Expression right, Object left)

PUBLIC: Return a new expression that applies the function to the given expression.

asinback to summary
public static Expression asin(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

atanback to summary
public static Expression atan(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

atan2back to summary
public static Expression atan2(Expression expression, int value)

PUBLIC: Return a new expression that applies the function to the given expression.

atan2back to summary
public static Expression atan2(Expression expression, Object value)

PUBLIC: Return a new expression that applies the function to the given expression.

atan2back to summary
public static Expression atan2(Expression expression1, Expression expression2)

PUBLIC: Return a new expression that applies the function to the given expression.

ceilback to summary
public static Expression ceil(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

chrback to summary
public static Expression chr(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

cosback to summary
public static Expression cos(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

coshback to summary
public static Expression cosh(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

cotback to summary
public static Expression cot(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

divideback to summary
public static Expression divide(Expression left, int right)

PUBLIC: Return a new expression that applies the function to the given expression.

divideback to summary
public static Expression divide(Expression left, Object right)

PUBLIC: Return a new expression that applies the function to the given expression.

expback to summary
public static Expression exp(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

floorback to summary
public static Expression floor(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

getOperatorback to summary
public static ExpressionOperator getOperator(int selector)

INTERNAL: Return the operator.

lnback to summary
public static Expression ln(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

logback to summary
public static Expression log(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

maxback to summary
public static Expression max(Expression left, int right)

PUBLIC: Return a new expression that applies the function to the given expression.

maxback to summary
public static Expression max(Expression left, Object right)

PUBLIC: Return a new expression that applies the function to the given expression.

minback to summary
public static Expression min(Expression left, int right)

PUBLIC: Return a new expression that applies the function to the given expression.

minback to summary
public static Expression min(Expression left, Object right)

PUBLIC: Return a new expression that applies the function to the given expression.

modback to summary
public static Expression mod(Expression expression, int base)

PUBLIC: Return a new expression that applies the function to the given expression.

modback to summary
public static Expression mod(Expression expression, Object base)

PUBLIC: Return a new expression that applies the function to the given expression.

multiplyback to summary
public static Expression multiply(Expression left, int right)

PUBLIC: Return a new expression that applies the function to the given expression.

multiplyback to summary
public static Expression multiply(Expression left, Object right)

PUBLIC: Return a new expression that applies the function to the given expression.

negateback to summary
public static Expression negate(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

powerback to summary
public static Expression power(Expression expression, int raised)

PUBLIC: Return a new expression that applies the function to the given expression.

powerback to summary
public static Expression power(Expression expression, Object raised)

PUBLIC: Return a new expression that applies the function to the given expression.

roundback to summary
public static Expression round(Expression expression, int decimalPlaces)

PUBLIC: Return a new expression that applies the function to the given expression.

roundback to summary
public static Expression round(Expression expression, Object decimalPlaces)

PUBLIC: Return a new expression that applies the function to the given expression.

signback to summary
public static Expression sign(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

sinback to summary
public static Expression sin(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

sinhback to summary
public static Expression sinh(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

sqrtback to summary
public static Expression sqrt(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

subtractback to summary
public static Expression subtract(Expression left, int right)

PUBLIC: Return a new expression that applies the function to the given expression.

subtractback to summary
public static Expression subtract(Expression left, Object right)

PUBLIC: Return a new expression that applies the function to the given expression.

tanback to summary
public static Expression tan(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

tanhback to summary
public static Expression tanh(Expression expression)

PUBLIC: Return a new expression that applies the function to the given expression.

truncback to summary
public static Expression trunc(Expression expression, int decimalPlaces)

PUBLIC: Return a new expression that applies the function to the given expression.

truncback to summary
public static Expression trunc(Expression expression, Object decimalPlaces)

PUBLIC: Return a new expression that applies the function to the given expression.