Package javax.jdo.query
Interface IfThenElseExpression<T>
- Type Parameters:
T
- Java type being returned here
- All Superinterfaces:
ComparableExpression<T>
,Expression<T>
Expression representing an "IF ... ELSE ..." construct.
-
Method Summary
Modifier and TypeMethodDescriptionelseEnd
(Expression<T> valueExpr) Method to add the "ELSE ..." clause.Method to add the "ELSE ..." clause.ifThen
(BooleanExpression ifExpr, Expression<T> valueExpr) Method to add an "IF (...) ..." clause.ifThen
(BooleanExpression ifExpr, T value) Method to add an "IF (...) ..." clause.Methods inherited from interface javax.jdo.query.ComparableExpression
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
Methods inherited from interface javax.jdo.query.Expression
as, cast, count, countDistinct, eq, eq, instanceOf, ne, ne
-
Method Details
-
ifThen
Method to add an "IF (...) ..." clause. If called multiple times, will add extra "IF (...) ..." or "ELSE IF (...) ..."- Parameters:
ifExpr
- The if expressionvalue
- The return value- Returns:
- This expression
-
ifThen
Method to add an "IF (...) ..." clause. If called multiple times, will add extra "IF (...) ..." or "ELSE IF (...) ..."- Parameters:
ifExpr
- The if expressionvalueExpr
- The return value expression- Returns:
- This expression
-
elseEnd
Method to add the "ELSE ..." clause. If called multiple times will replace the previous else clause- Parameters:
value
- The return value- Returns:
- This expression
-
elseEnd
Method to add the "ELSE ..." clause. If called multiple times will replace the previous else clause- Parameters:
valueExpr
- The return value expression- Returns:
- This expression
-