Package javax.jdo.query
Interface ComparableExpression<T>
- Type Parameters:
T
- Java type being represented here
- All Superinterfaces:
Expression<T>
- All Known Subinterfaces:
BooleanExpression
,ByteExpression
,CharacterExpression
,DateExpression
,DateTimeExpression
,EnumExpression<T>
,GeometryCollectionExpression<T>
,GeometryExpression<T>
,IfThenElseExpression<T>
,LinearRingExpression<T>
,LineStringExpression<T>
,LocalDateExpression
,LocalDateTimeExpression
,LocalTimeExpression
,MultiLineStringExpression<T>
,MultiPointExpression<T>
,MultiPolygonExpression<T>
,NumericExpression<T>
,OptionalExpression<T>
,PointExpression<T>
,PolygonExpression<T>
,StringExpression
,TimeExpression
Representation of an expression for a Java type that implements java.lang.Comparable.
-
Method Summary
Modifier and TypeMethodDescriptionasc()
Method to return an order expression for this expression in ascending order.desc()
Method to return an order expression for this expression in descending order.gt
(ComparableExpression<? extends T> expr) Method returning whether this expression is greater than the other expression.Method returning whether this expression is greater than the literal.gteq
(ComparableExpression<? extends T> expr) Method returning whether this expression is greater than or equal the other expression.Method returning whether this expression is greater than or equal the literal.lt
(ComparableExpression<? extends T> expr) Method returning whether this expression is less than the other expression.Method returning whether this expression is less than the literal.lteq
(ComparableExpression<? extends T> expr) Method returning whether this expression is less than or equal the other expression.Method returning whether this expression is less than or equal the literal.max()
Method to return a numeric expression representing the aggregated maximum of this expression.min()
Method to return a numeric expression representing the aggregated minimum of this expression.Methods inherited from interface javax.jdo.query.Expression
as, cast, count, countDistinct, eq, eq, instanceOf, ne, ne
-
Method Details
-
lt
Method returning whether this expression is less than the other expression.- Parameters:
expr
- Other expression- Returns:
- Whether this is less than the other
-
lt
Method returning whether this expression is less than the literal.- Parameters:
t
- literal- Returns:
- Whether this is less than the other
-
lteq
Method returning whether this expression is less than or equal the other expression.- Parameters:
expr
- Other expression- Returns:
- Whether this is less than or equal the other
-
lteq
Method returning whether this expression is less than or equal the literal.- Parameters:
t
- literal- Returns:
- Whether this is less than or equal the other
-
gt
Method returning whether this expression is greater than the other expression.- Parameters:
expr
- Other expression- Returns:
- Whether this is greater than the other
-
gt
Method returning whether this expression is greater than the literal.- Parameters:
t
- literal- Returns:
- Whether this is greater than the other
-
gteq
Method returning whether this expression is greater than or equal the other expression.- Parameters:
expr
- Other expression- Returns:
- Whether this is greater than or equal to the other
-
gteq
Method returning whether this expression is greater than or equal the literal.- Parameters:
t
- literal- Returns:
- Whether this is greater than or equal to the other
-
min
ComparableExpression<T> min()Method to return a numeric expression representing the aggregated minimum of this expression.- Returns:
- Numeric expression for the minimum
-
max
ComparableExpression<T> max()Method to return a numeric expression representing the aggregated maximum of this expression.- Returns:
- Numeric expression for the maximum
-
asc
OrderExpression<T> asc()Method to return an order expression for this expression in ascending order.- Returns:
- The order expression
-
desc
OrderExpression<T> desc()Method to return an order expression for this expression in descending order.- Returns:
- The order expression
-