public class CaseExpression extends Object implements Expression
Syntax:
CASE
WHEN condition THEN expression
[WHEN condition THEN expression]...
[ELSE expression]
END
or
CASE expression
WHEN condition THEN expression
[WHEN condition THEN expression]...
[ELSE expression]
END
See also: https://aurora.vcu.edu/db2help/db2s0/frame3.htm#casexp http://sybooks.sybase.com/onlinebooks/group-as/asg1251e /commands/
Constructor and Description |
---|
CaseExpression() |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionVisitor expressionVisitor) |
Expression |
getElseExpression() |
Expression |
getSwitchExpression() |
List<Expression> |
getWhenClauses() |
void |
setElseExpression(Expression elseExpression) |
void |
setSwitchExpression(Expression switchExpression) |
void |
setWhenClauses(List<Expression> whenClauses) |
String |
toString() |
public void accept(ExpressionVisitor expressionVisitor)
accept
in interface Expression
public Expression getSwitchExpression()
public void setSwitchExpression(Expression switchExpression)
switchExpression
- The switchExpression to set.public Expression getElseExpression()
public void setElseExpression(Expression elseExpression)
elseExpression
- The elseExpression to set.public List<Expression> getWhenClauses()
public void setWhenClauses(List<Expression> whenClauses)
whenClauses
- The whenClauses to set.Copyright © 2006–2018 TinyGroup. All rights reserved.