T - expression typepublic abstract class NumberExpression<T extends Number & Comparable<?>> extends ComparableExpressionBase<T>
NumberExpression represents a numeric expressionNumber,
Serialized FormhashCode, mixin| Constructor and Description |
|---|
NumberExpression(Expression<T> mixin) |
| Modifier and Type | Method and Description |
|---|---|
NumberExpression<T> |
abs()
Create a
abs(this) expression |
<N extends Number & Comparable<?>> |
add(Expression<N> right)
Create a
this + right expression |
<N extends Number & Comparable<N>> |
add(N right)
Create a
this + right expression |
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()
Create a
avg(this) expression |
<A extends Number & Comparable<?>> |
between(A from,
A to)
Create a
this between from and to expression |
<A extends Number & Comparable<?>> |
between(Expression<A> from,
Expression<A> to)
Create a
this between from and to expression |
NumberExpression<Byte> |
byteValue()
Create a
cast(this as byte) expression |
<A extends Number & Comparable<? super A>> |
castToNum(Class<A> type) |
NumberExpression<T> |
ceil()
Create a
ceil(this) expression |
<N extends Number & Comparable<?>> |
divide(Expression<N> right)
Create a
this / right expression |
<N extends Number & Comparable<?>> |
divide(N right)
Create a
this / right expression |
NumberExpression<Double> |
doubleValue()
Create a
cast(this as double) expression |
NumberExpression<Float> |
floatValue()
Create a
cast(this as double) expression |
NumberExpression<T> |
floor()
Create a
floor(this) expression |
<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)
Create a
this >= all right expression |
BooleanExpression |
goeAny(CollectionExpression<?,? super T> right)
Create a
this >= any right expression |
<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)
Create a
this > all right expression |
BooleanExpression |
gtAll(SubQueryExpression<? extends T> right)
Create a
this > all right expression |
BooleanExpression |
gtAny(CollectionExpression<?,? super T> right)
Create a
this > any right expression |
BooleanExpression |
gtAny(SubQueryExpression<? extends T> right)
Create a
this > any right expression |
BooleanExpression |
in(Number... numbers)
Create a
this in right expression |
NumberExpression<Integer> |
intValue()
Create a
this.intValue() expression |
BooleanExpression |
like(Expression<String> str)
Create a
this like str expression |
BooleanExpression |
like(String str)
Create a
this like str expression |
<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)
Create a
this <= all right expression |
BooleanExpression |
loeAny(CollectionExpression<?,? super T> right)
Create a
this <= any right expression |
NumberExpression<Long> |
longValue()
Create a
this.longValue() 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)
Create a
this < all right expression |
BooleanExpression |
ltAny(CollectionExpression<?,? super T> right)
Create a
this < any right expression |
NumberExpression<T> |
max()
Create a
max(this) expression |
static <A extends Number & Comparable<?>> |
max(Expression<A> left,
Expression<A> right)
Create a
max(left, right) expression |
NumberExpression<T> |
min()
Create a
min(this) expression |
static <A extends Number & Comparable<?>> |
min(Expression<A> left,
Expression<A> right)
Create a
min(left, right) expression |
NumberExpression<T> |
mod(Expression<T> num)
Create a
mod(this, num) expression |
NumberExpression<T> |
mod(T num)
Create a
mod(this, num) expression |
<N extends Number & Comparable<?>> |
multiply(Expression<N> right)
Create a
this * right expression |
<N extends Number & Comparable<N>> |
multiply(N right)
Create a
this * right expression |
NumberExpression<T> |
negate()
Create a
this * -1 expression |
<A extends Number & Comparable<?>> |
notBetween(A from,
A to)
Create a
this not between from and to expression |
<A extends Number & Comparable<?>> |
notBetween(Expression<A> from,
Expression<A> to)
Create a
this not between from and to expression |
BooleanExpression |
notIn(Number... numbers)
Create a
this not in right expression |
static NumberExpression<Double> |
random()
Create a
random() expression |
NumberExpression<T> |
round()
Create a
round(this) expression |
NumberExpression<Short> |
shortValue()
Create a
this.shortValue() expression |
NumberExpression<Double> |
sqrt()
Create a
sqrt(this) expression |
StringExpression |
stringValue()
Create a cast to String expression
|
<N extends Number & Comparable<?>> |
subtract(Expression<N> right)
Create a
this - right expression |
<N extends Number & Comparable<?>> |
subtract(N right)
Create a
this - right expression |
NumberExpression<T> |
sum()
Create a
sum(this) expression |
asc, coalesce, coalesce, desccount, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, 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)
max(left, right) expression
Return the greater of the given values
public static <A extends Number & Comparable<?>> NumberExpression<A> min(Expression<A> left, Expression<A> right)
min(left, right) expression
Returns the smaller of the given values
public static NumberExpression<Double> random()
random() expression
Returns the random number
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 StringExpression stringValue()
Object.toString()public NumberExpression<T> abs()
abs(this) expression
Returns the absolute value of this expression
public <N extends Number & Comparable<?>> NumberExpression<T> add(Expression<N> right)
this + right expression
Returns the sum of this and right
right - rhs of expressionpublic <N extends Number & Comparable<N>> NumberExpression<T> add(N right)
this + right expression
Get the sum of this and right
right - rhs of expressionpublic NumberExpression<Double> avg()
avg(this) expression
Get the average value of this expression (aggregation)
public NumberExpression<Byte> byteValue()
cast(this as byte) expression
Get the byte expression of this numeric expression
Number.byteValue()public <A extends Number & Comparable<? super A>> NumberExpression<A> castToNum(Class<A> type)
public NumberExpression<T> ceil()
ceil(this) expression
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
Math.ceil(double)public <N extends Number & Comparable<?>> NumberExpression<T> divide(Expression<N> right)
this / right expression
Get the result of the operation this / right
right - public <N extends Number & Comparable<?>> NumberExpression<T> divide(N right)
this / right expression
Get the result of the operation this / right
right - public NumberExpression<Double> doubleValue()
cast(this as double) expression
Get the double expression of this numeric expression
Number.doubleValue()public NumberExpression<Float> floatValue()
cast(this as double) expression
Get the float expression of this numeric expression
Number.floatValue()public NumberExpression<T> floor()
floor(this) expression
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.
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)
this >= all right expressionright - public BooleanExpression goeAny(CollectionExpression<?,? super T> right)
this >= any right expressionright - 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)
this > all right expressionright - public BooleanExpression gtAny(CollectionExpression<?,? super T> right)
this > any right expressionright - public BooleanExpression gtAll(SubQueryExpression<? extends T> right)
this > all right expressionright - public BooleanExpression gtAny(SubQueryExpression<? extends T> right)
this > any right expressionright - public final <A extends Number & Comparable<?>> BooleanExpression between(@Nullable A from, @Nullable A to)
this between from and to expression
Is equivalent to from <= this <= to
A - from - inclusive start of rangeto - inclusive end of rangepublic final <A extends Number & Comparable<?>> BooleanExpression between(@Nullable Expression<A> from, @Nullable Expression<A> to)
this between from and to expression
Is equivalent to from <= this <= to
A - from - inclusive start of rangeto - inclusive end of rangepublic final <A extends Number & Comparable<?>> BooleanExpression notBetween(A from, A to)
this not between from and to expression
Is equivalent to this < from || this > to
from - inclusive start of rangeto - inclusive end of rangepublic final <A extends Number & Comparable<?>> BooleanExpression notBetween(Expression<A> from, Expression<A> to)
this not between from and to expression
Is equivalent to this < from || this > to
from - inclusive start of rangeto - inclusive end of rangepublic NumberExpression<Integer> intValue()
this.intValue() expression
Get the int expression of this numeric expression
Number.intValue()public BooleanExpression like(String str)
this like str expressionstr - rhspublic BooleanExpression like(Expression<String> str)
this like str expressionstr - 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)
this <= all right expressionright - rhspublic BooleanExpression loeAny(CollectionExpression<?,? super T> right)
this <= any right expressionright - rhspublic NumberExpression<Long> longValue()
this.longValue() expression
Get the long expression of this numeric expression
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)
this < all right expressionright - rhspublic BooleanExpression ltAny(CollectionExpression<?,? super T> right)
this < any right expressionright - rhspublic NumberExpression<T> max()
max(this) expression
Get the maximum value of this expression (aggregation)
public NumberExpression<T> min()
min(this) expression
Get the minimum value of this expression (aggregation)
public NumberExpression<T> mod(Expression<T> num)
mod(this, num) expressionnum - public NumberExpression<T> mod(T num)
mod(this, num) expressionnum - public <N extends Number & Comparable<?>> NumberExpression<T> multiply(Expression<N> right)
this * right expression
Get the result of the operation this * right
right - public <N extends Number & Comparable<N>> NumberExpression<T> multiply(N right)
this * right expression
Get the result of the operation this * right
right - public NumberExpression<T> negate()
this * -1 expression
Get the negation of this expression
public NumberExpression<T> round()
round(this) expression
Returns the closest int to this.
Math.round(double),
Math.round(float)public NumberExpression<Short> shortValue()
this.shortValue() expression
Get the short expression of this numeric expression
Number.shortValue()public NumberExpression<Double> sqrt()
sqrt(this) expression
Get the square root of this numeric expressions
public <N extends Number & Comparable<?>> NumberExpression<T> subtract(Expression<N> right)
this - right expression
Get the difference of this and right
right - public <N extends Number & Comparable<?>> NumberExpression<T> subtract(N right)
this - right expression
Get the difference of this and right
right - public NumberExpression<T> sum()
sum(this) expression
Get the sum of this expression (aggregation)
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–2016 Querydsl. All rights reserved.