Package javax.jdo.query
Interface IfThenElseExpression<T>
-
- Type Parameters:
T
- Java type being returned here
- All Superinterfaces:
ComparableExpression<T>
,Expression<T>
public interface IfThenElseExpression<T> extends ComparableExpression<T>
Expression representing an "IF ... ELSE ..." construct.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IfThenElseExpression<T>
elseEnd(Expression<T> valueExpr)
Method to add the "ELSE ..." clause.IfThenElseExpression<T>
elseEnd(T value)
Method to add the "ELSE ..." clause.IfThenElseExpression<T>
ifThen(BooleanExpression ifExpr, Expression<T> valueExpr)
Method to add an "IF (...) ..." clause.IfThenElseExpression<T>
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 Detail
-
ifThen
IfThenElseExpression<T> ifThen(BooleanExpression ifExpr, T value)
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
IfThenElseExpression<T> ifThen(BooleanExpression ifExpr, Expression<T> valueExpr)
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
IfThenElseExpression<T> elseEnd(T value)
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
IfThenElseExpression<T> elseEnd(Expression<T> valueExpr)
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
-
-