|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.expressions.ExpressionMath
public class 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);
Constructor Summary | |
---|---|
ExpressionMath()
|
Method Summary | |
---|---|
static Expression |
abs(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
acos(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
add(Expression left,
int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
add(Expression right,
java.lang.Object left)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
asin(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
atan(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
atan2(Expression expression1,
Expression expression2)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
atan2(Expression expression,
int value)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
atan2(Expression expression,
java.lang.Object value)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
ceil(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
chr(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
cos(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
cosh(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
cot(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
divide(Expression left,
int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
divide(Expression left,
java.lang.Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
exp(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
floor(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static ExpressionOperator |
getOperator(int selector)
INTERNAL: Return the operator. |
static Expression |
ln(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
log(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
max(Expression left,
int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
max(Expression left,
java.lang.Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
min(Expression left,
int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
min(Expression left,
java.lang.Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
mod(Expression expression,
int base)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
mod(Expression expression,
java.lang.Object base)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
multiply(Expression left,
int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
multiply(Expression left,
java.lang.Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
negate(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
power(Expression expression,
int raised)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
power(Expression expression,
java.lang.Object raised)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
round(Expression expression,
int decimalPlaces)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
round(Expression expression,
java.lang.Object decimalPlaces)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
sign(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
sin(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
sinh(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
sqrt(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
subtract(Expression left,
int right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
subtract(Expression left,
java.lang.Object right)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
tan(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
tanh(Expression expression)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
trunc(Expression expression,
int decimalPlaces)
PUBLIC: Return a new expression that applies the function to the given expression. |
static Expression |
trunc(Expression expression,
java.lang.Object decimalPlaces)
PUBLIC: Return a new expression that applies the function to the given expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionMath()
Method Detail |
---|
public static Expression abs(Expression expression)
Example:
Example: ExpressionMath.abs(builder.get("netWorth")).greaterThan(1000000);
public static Expression acos(Expression expression)
public static Expression add(Expression left, int right)
public static Expression add(Expression right, java.lang.Object left)
public static Expression asin(Expression expression)
public static Expression atan(Expression expression)
public static Expression atan2(Expression expression, int value)
public static Expression atan2(Expression expression, java.lang.Object value)
public static Expression atan2(Expression expression1, Expression expression2)
public static Expression ceil(Expression expression)
public static Expression chr(Expression expression)
public static Expression cos(Expression expression)
public static Expression cosh(Expression expression)
public static Expression cot(Expression expression)
public static Expression divide(Expression left, int right)
public static Expression divide(Expression left, java.lang.Object right)
public static Expression exp(Expression expression)
public static Expression floor(Expression expression)
public static ExpressionOperator getOperator(int selector)
public static Expression ln(Expression expression)
public static Expression log(Expression expression)
public static Expression max(Expression left, int right)
public static Expression max(Expression left, java.lang.Object right)
public static Expression min(Expression left, int right)
public static Expression min(Expression left, java.lang.Object right)
public static Expression mod(Expression expression, int base)
public static Expression mod(Expression expression, java.lang.Object base)
public static Expression multiply(Expression left, int right)
public static Expression multiply(Expression left, java.lang.Object right)
public static Expression negate(Expression expression)
public static Expression power(Expression expression, int raised)
public static Expression power(Expression expression, java.lang.Object raised)
public static Expression round(Expression expression, int decimalPlaces)
public static Expression round(Expression expression, java.lang.Object decimalPlaces)
public static Expression sign(Expression expression)
public static Expression sin(Expression expression)
public static Expression sinh(Expression expression)
public static Expression sqrt(Expression expression)
public static Expression subtract(Expression left, int right)
public static Expression subtract(Expression left, java.lang.Object right)
public static Expression tan(Expression expression)
public static Expression tanh(Expression expression)
public static Expression trunc(Expression expression, int decimalPlaces)
public static Expression trunc(Expression expression, java.lang.Object decimalPlaces)
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |