|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jdo.query.ExpressionImpl<T>
org.datanucleus.jdo.query.ComparableExpressionImpl<java.lang.Number>
org.datanucleus.jdo.query.NumericExpressionImpl<T>
public class NumericExpressionImpl<T>
Implementation of a NumericExpression.
| Constructor Summary | |
|---|---|
NumericExpressionImpl(java.lang.Class<java.lang.Number> cls,
java.lang.String name,
ExpressionType type)
|
|
NumericExpressionImpl(Expression queryExpr)
|
|
NumericExpressionImpl(PersistableExpression parent,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
NumericExpression<T> |
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<T> |
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<T> |
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<T> |
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 class org.datanucleus.jdo.query.ComparableExpressionImpl |
|---|
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min |
| Methods inherited from class org.datanucleus.jdo.query.ExpressionImpl |
|---|
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public NumericExpressionImpl(PersistableExpression parent,
java.lang.String name)
public NumericExpressionImpl(Expression queryExpr)
public NumericExpressionImpl(java.lang.Class<java.lang.Number> cls,
java.lang.String name,
ExpressionType type)
| Method Detail |
|---|
public NumericExpression add(Expression expr)
NumericExpression
add in interface NumericExpression<T>expr - The other expression
public NumericExpression add(java.lang.Number num)
NumericExpression
add in interface NumericExpression<T>num - Number to add
public NumericExpression mul(Expression expr)
NumericExpression
mul in interface NumericExpression<T>expr - The other expression
public NumericExpression mul(java.lang.Number num)
NumericExpression
mul in interface NumericExpression<T>num - Number
public NumericExpression sub(Expression expr)
NumericExpression
sub in interface NumericExpression<T>expr - The other expression
public NumericExpression sub(java.lang.Number num)
NumericExpression
sub in interface NumericExpression<T>num - Number to subtract
public NumericExpression div(Expression expr)
NumericExpression
div in interface NumericExpression<T>expr - The other expression
public NumericExpression div(java.lang.Number num)
NumericExpression
div in interface NumericExpression<T>num - Number to divide by
public NumericExpression mod(Expression expr)
NumericExpressiona % b).
mod in interface NumericExpression<T>expr - The other expression
public NumericExpression mod(java.lang.Number num)
NumericExpression
mod in interface NumericExpression<T>num - Number
public NumericExpression<T> avg()
NumericExpression
avg in interface NumericExpression<T>public NumericExpression<T> sum()
NumericExpression
sum in interface NumericExpression<T>public NumericExpression<T> abs()
NumericExpression
abs in interface NumericExpression<T>public NumericExpression<T> sqrt()
NumericExpression
sqrt in interface NumericExpression<T>public NumericExpression acos()
NumericExpression
acos in interface NumericExpression<T>public NumericExpression asin()
NumericExpression
asin in interface NumericExpression<T>public NumericExpression atan()
NumericExpression
atan in interface NumericExpression<T>public NumericExpression sin()
NumericExpression
sin in interface NumericExpression<T>public NumericExpression cos()
NumericExpression
cos in interface NumericExpression<T>public NumericExpression tan()
NumericExpression
tan in interface NumericExpression<T>public NumericExpression exp()
NumericExpression
exp in interface NumericExpression<T>public NumericExpression log()
NumericExpression
log in interface NumericExpression<T>public NumericExpression ceil()
NumericExpression
ceil in interface NumericExpression<T>public NumericExpression floor()
NumericExpression
floor in interface NumericExpression<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||