T - expression typepublic abstract class NumberExpression<T extends Number & Comparable<?>> extends ComparableExpressionBase<T>
Number,
Serialized FormhashCode, mixin| Constructor and Description |
|---|
NumberExpression(Expression<T> mixin) |
| Modifier and Type | Method and Description |
|---|---|
NumberExpression<T> |
abs()
Get the absolute value of this expression
|
<N extends Number & Comparable<?>> |
add(Expression<N> right)
Get the sum of this and right
|
<N extends Number & Comparable<N>> |
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)
|
<A extends Number & Comparable<?>> |
between(A from,
A to)
Create a
from <= this <= to expression |
<A extends Number & Comparable<?>> |
between(Expression<A> from,
Expression<A> to)
Create a
from <= this <= to expression |
NumberExpression<Byte> |
byteValue()
Get the byte expression of this numeric expression
|
<A extends Number & Comparable<? super A>> |
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 |
<N extends Number & Comparable<?>> |
divide(Expression<N> right)
Get the result of the operation this / right
|
<N extends Number & Comparable<?>> |
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. |
<A extends Number & Comparable<?>> |
goe(A right)
Create a
this >= right expression |
<A extends Number & Comparable<?>> |
goe(Expression<A> right)
Create a
this >= right expression |
BooleanExpression |
goeAll(CollectionExpression<?,? super T> right) |
BooleanExpression |
goeAny(CollectionExpression<?,? super T> right) |
<A extends Number & Comparable<?>> |
gt(A right)
Create a
this > right expression |
<A extends Number & Comparable<?>> |
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
|
BooleanExpression |
like(Expression<String> str)
Expr:
this like str |
BooleanExpression |
like(String str)
Expr:
this like str |
<A extends Number & Comparable<?>> |
loe(A right)
Create a
this <= right expression |
<A extends Number & Comparable<?>> |
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
|
<A extends Number & Comparable<?>> |
lt(A right)
Create a
this < right expression |
<A extends Number & Comparable<?>> |
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 <A extends Number & Comparable<?>> |
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 <A extends Number & Comparable<?>> |
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) |
<N extends Number & Comparable<?>> |
multiply(Expression<N> right)
Get the result of the operation this * right
|
<N extends Number & Comparable<N>> |
multiply(N right)
Get the result of the operation this * right
|
NumberExpression<T> |
negate()
Get the negation of this expression
|
<A extends Number & Comparable<?>> |
notBetween(A from,
A to) |
<A extends Number & Comparable<?>> |
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<T> |
round()
Returns the closest
int to this. |
NumberExpression<Short> |
shortValue()
Get the short expression of this numeric expression
|
NumberExpression<Double> |
sqrt()
Get the square root of this numeric expressions
|
<N extends Number & Comparable<?>> |
subtract(Expression<N> right)
Get the difference of this and right
|
<N extends Number & Comparable<?>> |
subtract(N right)
Get the difference of this and right
|
NumberExpression<T> |
sum()
Get the sum of this expression (aggregation)
|
asc, coalesce, coalesce, desc, stringValuecount, countDistinct, eq, eq, eqAll, eqAny, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, nullif, nullif, when, whenequals, getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptpublic NumberExpression(Expression<T> mixin)
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)
SimpleExpressionas in class SimpleExpression<T extends Number & Comparable<?>>public NumberExpression<T> as(String alias)
SimpleExpressionas 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)
ComparableExpressionBasecastToNum 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 integerMath.ceil(double)public <N extends Number & Comparable<?>> NumberExpression<T> divide(Expression<N> right)
right - public <N extends Number & Comparable<?>> NumberExpression<T> 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 expressionA - right - rhs of the comparisonthis >= rightComparable.compareTo(Object)public final <A extends Number & Comparable<?>> BooleanExpression goe(Expression<A> right)
this >= right expressionA - right - rhs of the comparisonthis >= rightComparable.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 expressionA - right - rhs of the comparisonthis > rightComparable.compareTo(Object)public final <A extends Number & Comparable<?>> BooleanExpression gt(Expression<A> right)
this > right expressionA - right - rhs of the comparisonthis > rightComparable.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 expressionA - from - to - public final <A extends Number & Comparable<?>> BooleanExpression between(@Nullable Expression<A> from, @Nullable Expression<A> to)
from <= this <= to expressionA - 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 BooleanExpression like(String str)
this like strstr - public BooleanExpression like(Expression<String> str)
this like strstr - public final <A extends Number & Comparable<?>> BooleanExpression loe(A right)
this <= right expressionA - right - rhs of the comparisonthis <= rightComparable.compareTo(Object)public final <A extends Number & Comparable<?>> BooleanExpression loe(Expression<A> right)
this <= right expressionA - right - rhs of the comparisonthis <= rightComparable.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 expressionA - right - rhs of the comparisonthis < rightComparable.compareTo(Object)public final <A extends Number & Comparable<?>> BooleanExpression lt(Expression<A> right)
this < right expressionA - right - rhs of the comparisonthis < rightComparable.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<T> round()
int to this.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)
SimpleExpressionthis in right expressionin in class SimpleExpression<T extends Number & Comparable<?>>numbers - rhs of the comparisonpublic BooleanExpression notIn(Number... numbers)
SimpleExpressionthis not in right expressionnotIn in class SimpleExpression<T extends Number & Comparable<?>>numbers - rhs of the comparisonCopyright © 2007–2015 Querydsl. All rights reserved.