com.mysema.query.types.expr
Class MathExpressions

java.lang.Object
  extended by com.mysema.query.types.expr.MathExpressions

public final class MathExpressions
extends Object

Extended Math expressions, supported by the SQL module

Author:
tiwe

Method Summary
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
acos(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
asin(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
atan(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
cos(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
cosh(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
cot(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
coth(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
degrees(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
exp(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
ln(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
log(Expression<A> num, int base)
           
static
<A extends Number & Comparable<?>>
NumberExpression<A>
max(Expression<A> left, Expression<A> right)
          Return the greater of the given values
static
<A extends Number & Comparable<?>>
NumberExpression<A>
min(Expression<A> left, Expression<A> right)
          Return the smaller of the given values
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
power(Expression<A> num, int exponent)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
radians(Expression<A> num)
           
static NumberExpression<Double> random()
          Returns the random expression
static
<A extends Number & Comparable<?>>
NumberExpression<Integer>
sign(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
sin(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
sinh(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
tan(Expression<A> num)
           
static
<A extends Number & Comparable<?>>
NumberExpression<Double>
tanh(Expression<A> num)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

acos

public static <A extends Number & Comparable<?>> NumberExpression<Double> acos(Expression<A> num)
Parameters:
num -
Returns:
acos(num)

asin

public static <A extends Number & Comparable<?>> NumberExpression<Double> asin(Expression<A> num)
Parameters:
num -
Returns:
asin(num)

atan

public static <A extends Number & Comparable<?>> NumberExpression<Double> atan(Expression<A> num)
Parameters:
num -
Returns:
atan(num)

cos

public static <A extends Number & Comparable<?>> NumberExpression<Double> cos(Expression<A> num)
Parameters:
num -
Returns:
cos(num)

cosh

public static <A extends Number & Comparable<?>> NumberExpression<Double> cosh(Expression<A> num)
Parameters:
num -
Returns:
cosh(num)

cot

public static <A extends Number & Comparable<?>> NumberExpression<Double> cot(Expression<A> num)
Parameters:
num -
Returns:
cot(num)

coth

public static <A extends Number & Comparable<?>> NumberExpression<Double> coth(Expression<A> num)
Parameters:
num -
Returns:
coth(num)

degrees

public static <A extends Number & Comparable<?>> NumberExpression<Double> degrees(Expression<A> num)
Parameters:
num -
Returns:
deg(num)

exp

public static <A extends Number & Comparable<?>> NumberExpression<Double> exp(Expression<A> num)
Parameters:
num -
Returns:
exp(num)

ln

public static <A extends Number & Comparable<?>> NumberExpression<Double> ln(Expression<A> num)
Parameters:
num -
Returns:
ln(num)

log

public static <A extends Number & Comparable<?>> NumberExpression<Double> log(Expression<A> num,
                                                                             int base)
Parameters:
num -
base -
Returns:
log(num, base)

max

public static <A extends Number & Comparable<?>> NumberExpression<A> max(Expression<A> left,
                                                                        Expression<A> right)
Return the greater of the given values

Returns:
max(left, right)

min

public static <A extends Number & Comparable<?>> NumberExpression<A> min(Expression<A> left,
                                                                        Expression<A> right)
Return the smaller of the given values

Returns:
min(left, right)

power

public static <A extends Number & Comparable<?>> NumberExpression<Double> power(Expression<A> num,
                                                                               int exponent)
Parameters:
num -
exponent -
Returns:
power(num, exponent)

radians

public static <A extends Number & Comparable<?>> NumberExpression<Double> radians(Expression<A> num)
Parameters:
num -
Returns:
rad(num)

random

public static NumberExpression<Double> random()
Returns the random expression

Returns:
random()

sign

public static <A extends Number & Comparable<?>> NumberExpression<Integer> sign(Expression<A> num)
Parameters:
num -
Returns:
sign(num)

sin

public static <A extends Number & Comparable<?>> NumberExpression<Double> sin(Expression<A> num)
Parameters:
num -
Returns:
sin(num)

sinh

public static <A extends Number & Comparable<?>> NumberExpression<Double> sinh(Expression<A> num)
Parameters:
num -
Returns:
sinh(num)

tan

public static <A extends Number & Comparable<?>> NumberExpression<Double> tan(Expression<A> num)
Parameters:
num -
Returns:
tan(num)

tanh

public static <A extends Number & Comparable<?>> NumberExpression<Double> tanh(Expression<A> num)
Parameters:
num -
Returns:
tanh(num)


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.