|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.types.expr.DslExpression<T> com.mysema.query.types.expr.SimpleExpression<T> com.mysema.query.types.expr.ComparableExpressionBase<T> com.mysema.query.types.expr.NumberExpression<T>
T
- expression typepublic abstract class NumberExpression<T extends Number & Comparable<?>>
NumberExpression represents a numeric expression
Number
,
Serialized FormField Summary |
---|
Fields inherited from class com.mysema.query.types.expr.DslExpression |
---|
mixin |
Constructor Summary | |
---|---|
NumberExpression(Expression<T> mixin)
|
Method Summary | ||
---|---|---|
NumberExpression<T> |
abs()
Get the absolute value of this expression |
|
|
add(Expression<N> right)
Get the sum of this and right |
|
|
add(N right)
Get the sum of this and right |
|
NumberExpression<T> |
as(Path<T> alias)
Create an alias for the expression |
|
NumberExpression<T> |
as(String alias)
Create an alias for the expression |
|
NumberExpression<Double> |
avg()
Get the average value of this expression (aggregation) |
|
|
between(A from,
A to)
Create a from < this < to expression |
|
|
between(Expression<A> from,
Expression<A> to)
Create a from < this < to expression |
|
NumberExpression<Byte> |
byteValue()
Get the byte expression of this numeric expression |
|
|
castToNum(Class<A> type)
Create a cast expression to the given numeric type |
|
NumberExpression<T> |
ceil()
Returns the smallest (closest to negative infinity) double value that is greater than or equal to the
argument and is equal to a mathematical integer |
|
|
divide(Expression<N> right)
Get the result of the operation this / right |
|
|
divide(N right)
Get the result of the operation this / right |
|
NumberExpression<Double> |
doubleValue()
Get the double expression of this numeric expression |
|
NumberExpression<Float> |
floatValue()
Get the float expression of this numeric expression |
|
NumberExpression<T> |
floor()
Returns the largest (closest to positive infinity) double value that is less than or equal to the
argument and is equal to a mathematical integer. |
|
|
goe(A right)
Create a this >= right expression |
|
|
goe(Expression<A> right)
Create a this >= right expression |
|
BooleanExpression |
goeAll(CollectionExpression<?,? super T> right)
|
|
BooleanExpression |
goeAny(CollectionExpression<?,? super T> right)
|
|
|
gt(A right)
Create a this > right expression |
|
|
gt(Expression<A> right)
Create a this > right expression |
|
BooleanExpression |
gtAll(CollectionExpression<?,? super T> right)
|
|
BooleanExpression |
gtAny(CollectionExpression<?,? super T> right)
|
|
BooleanExpression |
in(Number... numbers)
Get a this in right expression |
|
NumberExpression<Integer> |
intValue()
Get the int expression of this numeric expression |
|
|
loe(A right)
Create a this <= right expression |
|
|
loe(Expression<A> right)
Create a this <= right expression |
|
BooleanExpression |
loeAll(CollectionExpression<?,? super T> right)
|
|
BooleanExpression |
loeAny(CollectionExpression<?,? super T> right)
|
|
NumberExpression<Long> |
longValue()
Get the long expression of this numeric expression |
|
|
lt(A right)
Create a this < right expression |
|
|
lt(Expression<A> right)
Create a this < right expression |
|
BooleanExpression |
ltAll(CollectionExpression<?,? super T> right)
|
|
BooleanExpression |
ltAny(CollectionExpression<?,? super T> right)
|
|
NumberExpression<T> |
max()
Get the maximum value of this expression (aggregation) |
|
static
|
max(Expression<A> left,
Expression<A> right)
Return the greater of the given values |
|
NumberExpression<T> |
min()
Get the minimum value of this expression (aggregation) |
|
static
|
min(Expression<A> left,
Expression<A> right)
Return the smaller of the given values |
|
NumberExpression<T> |
mod(Expression<T> num)
|
|
NumberExpression<T> |
mod(T num)
|
|
|
multiply(Expression<N> right)
Get the result of the operation this * right |
|
|
multiply(N right)
Get the result of the operation this * right |
|
NumberExpression<T> |
negate()
Get the negation of this expression |
|
|
notBetween(A from,
A to)
|
|
|
notBetween(Expression<A> from,
Expression<A> to)
|
|
BooleanExpression |
notIn(Number... numbers)
Get a this not in right expression |
|
static NumberExpression<Double> |
random()
Returns the random expression |
|
NumberExpression<Integer> |
round()
Returns the closest int to the argument. |
|
NumberExpression<Short> |
shortValue()
Get the short expression of this numeric expression |
|
NumberExpression<Double> |
sqrt()
Get the square root of this numeric expressions |
|
|
subtract(Expression<N> right)
Get the difference of this and right |
|
|
subtract(N right)
Get the difference of this and right |
|
NumberExpression<T> |
sum()
Get the sum of this expression (aggregation) |
Methods inherited from class com.mysema.query.types.expr.ComparableExpressionBase |
---|
asc, coalesce, coalesce, desc, stringValue |
Methods inherited from class com.mysema.query.types.expr.SimpleExpression |
---|
count, countDistinct, eq, eq, eqAll, eqAny, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, when, when |
Methods inherited from class com.mysema.query.types.expr.DslExpression |
---|
equals, getType, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.mysema.query.types.Expression |
---|
accept |
Constructor Detail |
---|
public NumberExpression(Expression<T> mixin)
Method Detail |
---|
public static <A extends Number & Comparable<?>> NumberExpression<A> max(Expression<A> left, Expression<A> right)
public static <A extends Number & Comparable<?>> NumberExpression<A> min(Expression<A> left, Expression<A> right)
public static NumberExpression<Double> random()
public NumberExpression<T> as(Path<T> alias)
SimpleExpression
as
in class SimpleExpression<T extends Number & Comparable<?>>
public NumberExpression<T> as(String alias)
SimpleExpression
as
in class SimpleExpression<T extends Number & Comparable<?>>
public NumberExpression<T> abs()
public <N extends Number & Comparable<?>> NumberExpression<T> add(Expression<N> right)
right
-
public <N extends Number & Comparable<N>> NumberExpression<T> add(N right)
right
-
public NumberExpression<Double> avg()
public NumberExpression<Byte> byteValue()
Number.byteValue()
public <A extends Number & Comparable<? super A>> NumberExpression<A> castToNum(Class<A> type)
ComparableExpressionBase
castToNum
in class ComparableExpressionBase<T extends Number & Comparable<?>>
public NumberExpression<T> ceil()
double
value that is greater than or equal to the
argument and is equal to a mathematical integer
Math.ceil(double)
public <N extends Number & Comparable<?>> NumberExpression<Double> divide(Expression<N> right)
right
-
public <N extends Number & Comparable<?>> NumberExpression<Double> divide(N right)
right
-
public NumberExpression<Double> doubleValue()
Number.doubleValue()
public NumberExpression<Float> floatValue()
Number.floatValue()
public NumberExpression<T> floor()
double
value that is less than or equal to the
argument and is equal to a mathematical integer.
Math.floor(double)
public final <A extends Number & Comparable<?>> BooleanExpression goe(A right)
this >= right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> BooleanExpression goe(Expression<A> right)
this >= right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public BooleanExpression goeAll(CollectionExpression<?,? super T> right)
right
-
public BooleanExpression goeAny(CollectionExpression<?,? super T> right)
right
-
public final <A extends Number & Comparable<?>> BooleanExpression gt(A right)
this > right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> BooleanExpression gt(Expression<A> right)
this > right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public BooleanExpression gtAll(CollectionExpression<?,? super T> right)
right
-
public BooleanExpression gtAny(CollectionExpression<?,? super T> right)
right
-
public final <A extends Number & Comparable<?>> BooleanExpression between(@Nullable A from, @Nullable A to)
from < this < to
expression
A
- from
- to
-
public final <A extends Number & Comparable<?>> BooleanExpression between(@Nullable Expression<A> from, @Nullable Expression<A> to)
from < this < to
expression
A
- from
- to
-
public final <A extends Number & Comparable<?>> BooleanExpression notBetween(A from, A to)
from
- to
-
public final <A extends Number & Comparable<?>> BooleanExpression notBetween(Expression<A> from, Expression<A> to)
from
- to
-
public NumberExpression<Integer> intValue()
Number.intValue()
public final <A extends Number & Comparable<?>> BooleanExpression loe(A right)
this <= right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> BooleanExpression loe(Expression<A> right)
this <= right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public BooleanExpression loeAll(CollectionExpression<?,? super T> right)
right
-
public BooleanExpression loeAny(CollectionExpression<?,? super T> right)
right
-
public NumberExpression<Long> longValue()
Number.longValue()
public final <A extends Number & Comparable<?>> BooleanExpression lt(A right)
this < right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public final <A extends Number & Comparable<?>> BooleanExpression lt(Expression<A> right)
this < right
expression
A
- right
- rhs of the comparison
Comparable.compareTo(Object)
public BooleanExpression ltAll(CollectionExpression<?,? super T> right)
right
-
public BooleanExpression ltAny(CollectionExpression<?,? super T> right)
right
-
public NumberExpression<T> max()
public NumberExpression<T> min()
public NumberExpression<T> mod(Expression<T> num)
num
-
public NumberExpression<T> mod(T num)
num
-
public <N extends Number & Comparable<?>> NumberExpression<T> multiply(Expression<N> right)
right
-
public <N extends Number & Comparable<N>> NumberExpression<T> multiply(N right)
right
-
public NumberExpression<T> negate()
public NumberExpression<Integer> round()
int
to the argument.
Math.round(double)
,
Math.round(float)
public NumberExpression<Short> shortValue()
Number.shortValue()
public NumberExpression<Double> sqrt()
public <N extends Number & Comparable<?>> NumberExpression<T> subtract(Expression<N> right)
right
-
public <N extends Number & Comparable<?>> NumberExpression<T> subtract(N right)
right
-
public NumberExpression<T> sum()
public BooleanExpression in(Number... numbers)
SimpleExpression
this in right
expression
in
in class SimpleExpression<T extends Number & Comparable<?>>
numbers
- rhs of the comparison
public BooleanExpression notIn(Number... numbers)
SimpleExpression
this not in right
expression
notIn
in class SimpleExpression<T extends Number & Comparable<?>>
numbers
- rhs of the comparison
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |