|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Java type being represented herepublic interface ComparableExpression<T>
Representation of an expression for a Java type that implements java.lang.Comparable. Nore that the methods taking Expression as an argument could have been defined to take ComparableExpression but that would then have prevented code like
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
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.datanucleus.query.typesafe.Expression |
|---|
cast, count, countDistinct, eq, eq, instanceOf, ne, ne |
| Method Detail |
|---|
BooleanExpression lt(ComparableExpression expr)
expr - Other expression
BooleanExpression lt(T t)
t - literal
BooleanExpression lteq(ComparableExpression expr)
expr - Other expression
BooleanExpression lteq(T t)
t - literal
BooleanExpression gt(ComparableExpression expr)
expr - Other expression
BooleanExpression gt(T t)
t - literal
BooleanExpression gteq(ComparableExpression expr)
expr - Other expression
BooleanExpression gteq(T t)
t - literal
NumericExpression min()
NumericExpression max()
OrderExpression asc()
OrderExpression desc()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||