public class CaseStatement extends AbstractSQLFragment
| Modifier and Type | Class and Description |
|---|---|
static class |
CaseStatement.WhenThen |
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CASE |
static java.lang.String |
ELSE |
static java.lang.String |
END |
static java.lang.String |
THEN |
static java.lang.String |
WHEN |
AS, COMMA, DEFAULT_SEPARATOR, EMPTY, EMPTY_ARRAY, INDENT, LEFT_PAREN, NEWLINE, RIGHT_PAREN, SPACE| Constructor and Description |
|---|
CaseStatement() |
CaseStatement(CaseStatement.WhenThen[] whenThens)
CASE WHEN condition THEN thenExpression ...
|
CaseStatement(CaseStatement.WhenThen[] whenThens,
SQLFragment elseExpression)
CASE WHEN condition THEN thenExpression ...
|
CaseStatement(SQLFragment expression,
CaseStatement.WhenThen[] whenThens)
CASE expression WHEN condition THEN thenExpression ...
|
CaseStatement(SQLFragment expression,
CaseStatement.WhenThen[] whenThens,
SQLFragment elseExpression)
CASE expression WHEN condition THEN thenExpression ...
|
| Modifier and Type | Method and Description |
|---|---|
SQLFragment |
getElseExpression() |
SQLFragment |
getExpression() |
java.lang.String |
getSQLText()
Return the SQL for this fragment.
|
CaseStatement.WhenThen[] |
getWhenThens() |
void |
setElseExpression(SQLFragment elseExpression) |
void |
setExpression(SQLFragment expression) |
void |
setWhenThens(CaseStatement.WhenThen[] whenThens) |
appendToBuffer, appendToBuffer, argsToString, getName, getStartOffset, getTextOrNull, getTextOrNull, getType, setStartOffset, surroundWithBrackets, surroundWithBrackets, toStringsetParentcheckInit, checkInit, copyToImpl, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization, processPropertyChange, setIDaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setName, setProperties, setPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParent, setParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setProperties, setPropertypublic static final java.lang.String CASE
public static final java.lang.String WHEN
public static final java.lang.String THEN
public static final java.lang.String ELSE
public static final java.lang.String END
public CaseStatement()
public CaseStatement(SQLFragment expression, CaseStatement.WhenThen[] whenThens, SQLFragment elseExpression)
public CaseStatement(SQLFragment expression, CaseStatement.WhenThen[] whenThens)
public CaseStatement(CaseStatement.WhenThen[] whenThens, SQLFragment elseExpression)
public CaseStatement(CaseStatement.WhenThen[] whenThens)
public SQLFragment getExpression()
public void setExpression(SQLFragment expression)
public CaseStatement.WhenThen[] getWhenThens()
public void setWhenThens(CaseStatement.WhenThen[] whenThens)
public SQLFragment getElseExpression()
public void setElseExpression(SQLFragment elseExpression)
public java.lang.String getSQLText()
SQLFragment