org.datanucleus.query.typesafe
Interface NumericExpression<T>

Type Parameters:
T - Number type
All Superinterfaces:
ComparableExpression<java.lang.Number>, Expression<java.lang.Number>
All Known Implementing Classes:
NumericExpressionImpl

public interface NumericExpression<T>
extends ComparableExpression<java.lang.Number>

Representation of a numeric expression.


Method Summary
 NumericExpression abs()
          Method to return the absolute value expression of this expression.
 NumericExpression acos()
          Method to return the arc cosine value expression of this expression.
 NumericExpression add(Expression expr)
          Method to return an expression for this expression added to the passed expression.
 NumericExpression add(java.lang.Number num)
          Method to return an expression for this expression added to the passed number.
 NumericExpression asin()
          Method to return the arc sine value expression of this expression.
 NumericExpression atan()
          Method to return the arc tangent value expression of this expression.
 NumericExpression avg()
          Method to return a numeric expression representing the aggregated average of this expression.
 NumericExpression ceil()
          Method to return the ceiling value expression of this expression.
 NumericExpression cos()
          Method to return the cosine value expression of this expression.
 NumericExpression div(Expression expr)
          Method to return an expression for this expression divided by the passed expression.
 NumericExpression div(java.lang.Number num)
          Method to return an expression for this expression divided by the passed number.
 NumericExpression exp()
          Method to return the exponential value expression of this expression.
 NumericExpression floor()
          Method to return the floor value expression of this expression.
 NumericExpression log()
          Method to return the logarithm value expression of this expression.
 NumericExpression mod(Expression expr)
          Method to return an expression for this expression modulus the passed expression (
 NumericExpression mod(java.lang.Number num)
          Method to return an expression for this expression modulus the passed number.
 NumericExpression mul(Expression expr)
          Method to return an expression for this expression multiplied by the passed expression.
 NumericExpression mul(java.lang.Number num)
          Method to return an expression for this expression multiplied by the passed number.
 NumericExpression sin()
          Method to return the sine value expression of this expression.
 NumericExpression sqrt()
          Method to return the square-root value expression of this expression.
 NumericExpression sub(Expression expr)
          Method to return an expression for this expression subtracting the passed expression.
 NumericExpression sub(java.lang.Number num)
          Method to return an expression for this expression subtracting the passed number.
 NumericExpression sum()
          Method to return a numeric expression representing the aggregated sum of this expression.
 NumericExpression tan()
          Method to return the tangent value expression of this expression.
 
Methods inherited from interface org.datanucleus.query.typesafe.ComparableExpression
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Method Detail

add

NumericExpression add(Expression expr)
Method to return an expression for this expression added to the passed expression.

Parameters:
expr - The other expression
Returns:
The summation

add

NumericExpression add(java.lang.Number num)
Method to return an expression for this expression added to the passed number.

Parameters:
num - Number to add
Returns:
The summation

sub

NumericExpression sub(Expression expr)
Method to return an expression for this expression subtracting the passed expression.

Parameters:
expr - The other expression
Returns:
The difference

sub

NumericExpression sub(java.lang.Number num)
Method to return an expression for this expression subtracting the passed number.

Parameters:
num - Number to subtract
Returns:
The difference

mul

NumericExpression mul(Expression expr)
Method to return an expression for this expression multiplied by the passed expression.

Parameters:
expr - The other expression
Returns:
The multiplication

mul

NumericExpression mul(java.lang.Number num)
Method to return an expression for this expression multiplied by the passed number.

Parameters:
num - Number
Returns:
The multiplication

div

NumericExpression div(Expression expr)
Method to return an expression for this expression divided by the passed expression.

Parameters:
expr - The other expression
Returns:
The division

div

NumericExpression div(java.lang.Number num)
Method to return an expression for this expression divided by the passed number.

Parameters:
num - Number to divide by
Returns:
The division

mod

NumericExpression mod(Expression expr)
Method to return an expression for this expression modulus the passed expression (
a % b
).

Parameters:
expr - The other expression
Returns:
The modulus

mod

NumericExpression mod(java.lang.Number num)
Method to return an expression for this expression modulus the passed number.

Parameters:
num - Number
Returns:
The modulus

avg

NumericExpression avg()
Method to return a numeric expression representing the aggregated average of this expression.

Returns:
Numeric expression for the average

sum

NumericExpression sum()
Method to return a numeric expression representing the aggregated sum of this expression.

Returns:
Numeric expression for the sum

abs

NumericExpression abs()
Method to return the absolute value expression of this expression.

Returns:
The absolute value expression

sqrt

NumericExpression sqrt()
Method to return the square-root value expression of this expression.

Returns:
The square-root value expression

acos

NumericExpression acos()
Method to return the arc cosine value expression of this expression.

Returns:
The arc cosine value expression

asin

NumericExpression asin()
Method to return the arc sine value expression of this expression.

Returns:
The arc sine value expression

atan

NumericExpression atan()
Method to return the arc tangent value expression of this expression.

Returns:
The arc tangent value expression

sin

NumericExpression sin()
Method to return the sine value expression of this expression.

Returns:
The sine value expression

cos

NumericExpression cos()
Method to return the cosine value expression of this expression.

Returns:
The cosine value expression

tan

NumericExpression tan()
Method to return the tangent value expression of this expression.

Returns:
The tangent value expression

exp

NumericExpression exp()
Method to return the exponential value expression of this expression.

Returns:
The exponential value expression

log

NumericExpression log()
Method to return the logarithm value expression of this expression.

Returns:
The logarithm value expression

ceil

NumericExpression ceil()
Method to return the ceiling value expression of this expression.

Returns:
The ceiling value expression

floor

NumericExpression floor()
Method to return the floor value expression of this expression.

Returns:
The floor value expression


Copyright © 2011. All Rights Reserved.