T - Java type being represented herepublic interface ComparableExpression<T> extends Expression<T>
NumericExpression param = (NumericExpression)tq.parameter("criticalValue", Double.class);
tq.filter(cand.value.lt(param));
and we would have had to cast the parameter to NumericExpression| Modifier and Type | Method and Description |
|---|---|
OrderExpression |
asc()
Method to return an order expression for this expression in ascending order.
|
OrderExpression |
desc()
Method to return an order expression for this expression in descending order.
|
BooleanExpression |
gt(ComparableExpression expr)
Method returning whether this expression is greater than the other expression.
|
BooleanExpression |
gt(T t)
Method returning whether this expression is greater than the literal.
|
BooleanExpression |
gteq(ComparableExpression expr)
Method returning whether this expression is greater than or equal the other expression.
|
BooleanExpression |
gteq(T t)
Method returning whether this expression is greater than or equal the literal.
|
BooleanExpression |
lt(ComparableExpression expr)
Method returning whether this expression is less than the other expression.
|
BooleanExpression |
lt(T t)
Method returning whether this expression is less than the literal.
|
BooleanExpression |
lteq(ComparableExpression expr)
Method returning whether this expression is less than or equal the other expression.
|
BooleanExpression |
lteq(T t)
Method returning whether this expression is less than or equal the literal.
|
NumericExpression |
max()
Method to return a numeric expression representing the aggregated maximum of this expression.
|
NumericExpression |
min()
Method to return a numeric expression representing the aggregated minimum of this expression.
|
cast, count, countDistinct, eq, eq, instanceOf, ne, neBooleanExpression lt(ComparableExpression expr)
expr - Other expressionBooleanExpression lt(T t)
t - literalBooleanExpression lteq(ComparableExpression expr)
expr - Other expressionBooleanExpression lteq(T t)
t - literalBooleanExpression gt(ComparableExpression expr)
expr - Other expressionBooleanExpression gt(T t)
t - literalBooleanExpression gteq(ComparableExpression expr)
expr - Other expressionBooleanExpression gteq(T t)
t - literalNumericExpression min()
NumericExpression max()
OrderExpression asc()
OrderExpression desc()
Copyright © 2013. All Rights Reserved.