Package javax.jdo.query
Interface NumericExpression<T>
- Type Parameters:
T
- Number type
- All Superinterfaces:
ComparableExpression<Number>
,Expression<Number>
Representation of a numeric expression.
-
Method Summary
Modifier and TypeMethodDescriptionabs()
Method to return the absolute value expression of this expression.acos()
Method to return the arc cosine value expression of this expression.Method to return an expression for this expression added to the passed number.add
(Expression<T> expr) Method to return an expression for this expression added to the passed expression.asin()
Method to return the arc sine value expression of this expression.atan()
Method to return the arc tangent value expression of this expression.avg()
Method to return a numeric expression representing the aggregated average of this expression.Method to return a numeric expression representing the aggregated average of this distinct expression.bAnd
(NumericExpression bitExpr) Method to return a bitwise AND expression for this expression with the supplied bit path.bOr
(NumericExpression bitExpr) Method to return a bitwise OR expression for this expression with the supplied bit path.bXor
(NumericExpression bitExpr) Method to return a bitwise XOR expression for this expression with the supplied bit path.ceil()
Method to return the ceiling value expression of this expression.com()
Method to return an expression that is the complement of the current expression.cos()
Method to return the cosine value expression of this expression.Method to return an expression for this expression divided by the passed number.div
(Expression<T> expr) Method to return an expression for this expression divided by the passed expression.exp()
Method to return the exponential value expression of this expression.floor()
Method to return the floor value expression of this expression.log()
Method to return the logarithm value expression of this expression.Method to return an expression for this expression modulus the passed number.mod
(Expression<T> expr) Method to return an expression for this expression modulus the passed expression (Method to return an expression for this expression multiplied by the passed number.mul
(Expression<T> expr) Method to return an expression for this expression multiplied by the passed expression.neg()
Method to return an expression that is the current expression negated.sin()
Method to return the sine value expression of this expression.sqrt()
Method to return the square-root value expression of this expression.Method to return an expression for this expression subtracting the passed number.sub
(Expression<T> expr) Method to return an expression for this expression subtracting the passed expression.sum()
Method to return a numeric expression representing the aggregated sum of this expression.Method to return a numeric expression representing the aggregated sum of this distinct expression.tan()
Method to return the tangent value expression of this expression.Methods inherited from interface javax.jdo.query.ComparableExpression
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
Methods inherited from interface javax.jdo.query.Expression
as, cast, count, countDistinct, eq, eq, instanceOf, ne, ne
-
Method Details
-
add
Method to return an expression for this expression added to the passed expression.- Parameters:
expr
- The other expression- Returns:
- The summation
-
add
Method to return an expression for this expression added to the passed number.- Parameters:
num
- Number to add- Returns:
- The summation
-
sub
Method to return an expression for this expression subtracting the passed expression.- Parameters:
expr
- The other expression- Returns:
- The difference
-
sub
Method to return an expression for this expression subtracting the passed number.- Parameters:
num
- Number to subtract- Returns:
- The difference
-
mul
Method to return an expression for this expression multiplied by the passed expression.- Parameters:
expr
- The other expression- Returns:
- The multiplication
-
mul
Method to return an expression for this expression multiplied by the passed number.- Parameters:
num
- Number- Returns:
- The multiplication
-
div
Method to return an expression for this expression divided by the passed expression.- Parameters:
expr
- The other expression- Returns:
- The division
-
div
Method to return an expression for this expression divided by the passed number.- Parameters:
num
- Number to divide by- Returns:
- The division
-
mod
Method to return an expression for this expression modulus the passed expression (a % b
).- Parameters:
expr
- The other expression- Returns:
- The modulus
-
mod
Method to return an expression for this expression modulus the passed number.- Parameters:
num
- Number- Returns:
- The modulus
-
neg
NumericExpression<T> neg()Method to return an expression that is the current expression negated.- Returns:
- The negated expression
-
com
NumericExpression<T> com()Method to return an expression that is the complement of the current expression.- Returns:
- The complement expression
-
avg
NumericExpression<Double> avg()Method to return a numeric expression representing the aggregated average of this expression.- Returns:
- Numeric expression for the average
-
avgDistinct
NumericExpression<Double> avgDistinct()Method to return a numeric expression representing the aggregated average of this distinct expression.- Returns:
- Numeric expression for the average
-
sum
NumericExpression<T> sum()Method to return a numeric expression representing the aggregated sum of this expression.- Returns:
- Numeric expression for the sum
-
sumDistinct
NumericExpression<T> sumDistinct()Method to return a numeric expression representing the aggregated sum of this distinct expression.- Returns:
- Numeric expression for the sum
-
abs
NumericExpression<T> abs()Method to return the absolute value expression of this expression.- Returns:
- The absolute value expression
-
sqrt
NumericExpression<Double> sqrt()Method to return the square-root value expression of this expression.- Returns:
- The square-root value expression
-
acos
NumericExpression<Double> acos()Method to return the arc cosine value expression of this expression.- Returns:
- The arc cosine value expression
-
asin
NumericExpression<Double> asin()Method to return the arc sine value expression of this expression.- Returns:
- The arc sine value expression
-
atan
NumericExpression<Double> atan()Method to return the arc tangent value expression of this expression.- Returns:
- The arc tangent value expression
-
sin
NumericExpression<Double> sin()Method to return the sine value expression of this expression.- Returns:
- The sine value expression
-
cos
NumericExpression<Double> cos()Method to return the cosine value expression of this expression.- Returns:
- The cosine value expression
-
tan
NumericExpression<Double> tan()Method to return the tangent value expression of this expression.- Returns:
- The tangent value expression
-
exp
NumericExpression<Double> exp()Method to return the exponential value expression of this expression.- Returns:
- The exponential value expression
-
log
NumericExpression<Double> log()Method to return the logarithm value expression of this expression.- Returns:
- The logarithm value expression
-
ceil
NumericExpression<T> ceil()Method to return the ceiling value expression of this expression.- Returns:
- The ceiling value expression
-
floor
NumericExpression<T> floor()Method to return the floor value expression of this expression.- Returns:
- The floor value expression
-
bAnd
Method to return a bitwise AND expression for this expression with the supplied bit path.- Parameters:
bitExpr
- Bit expression- Returns:
- Bitwise AND expression
-
bOr
Method to return a bitwise OR expression for this expression with the supplied bit path.- Parameters:
bitExpr
- Bit expression- Returns:
- Bitwise OR expression
-
bXor
Method to return a bitwise XOR expression for this expression with the supplied bit path.- Parameters:
bitExpr
- Bit expression- Returns:
- Bitwise XOR expression
-