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 |
builderExpression(StatementSqlBuilder builder)
实现接口的sql片段通过builder.appendSql(String
segment)进行拼接,也可以builder.getStringBuilder方法获取StringBuilder,然后进行append
实现的参数信息通过builder.addParamValue(Object...
|
Expression |
getElseExpression() |
Expression |
getSwitchExpression() |
List<Expression> |
getWhenClauses() |
void |
setElseExpression(Expression elseExpression) |
void |
setSwitchExpression(Expression switchExpression) |
void |
setWhenClauses(List<Expression> whenClauses) |
String |
toString() |
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.public void builderExpression(StatementSqlBuilder builder)
ExpressionBuildProcessor
builderExpression
in interface ExpressionBuildProcessor
Copyright © 2006–2018 TinyGroup. All rights reserved.