public final class BooleanTest extends SimplePredicate
AUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESESADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
BooleanTest(Expression left,
boolean not,
boolean whenOperand,
java.lang.Boolean right) |
| Modifier and Type | Method and Description |
|---|---|
void |
createIndexConditions(SessionLocal session,
TableFilter filter)
Create index conditions if possible and attach them to the table filter.
|
Expression |
getNotIfPossible(SessionLocal session)
If it is possible, return the negated expression.
|
TypeInfo |
getType()
Returns the data type.
|
java.lang.StringBuilder |
getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
Get the SQL statement of this expression.
|
Value |
getValue(SessionLocal session)
Return the resulting value for the current row.
|
java.lang.StringBuilder |
getWhenSQL(java.lang.StringBuilder builder,
int sqlFlags)
Appends the SQL statement of this when operand to the specified builder.
|
boolean |
getWhenValue(SessionLocal session,
Value left)
Return the resulting value of when operand for the current row.
|
getCost, getSubexpression, getSubexpressionCount, isEverything, isWhenConditionOperand, mapColumns, needParentheses, optimize, setEvaluatable, updateAggregateaddFilterConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getTableAlias, getTableName, isConstant, isIdentity, isNullConstant, isValueSet, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic BooleanTest(Expression left, boolean not, boolean whenOperand, java.lang.Boolean right)
public java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class Expressionbuilder - string buildersqlFlags - formatting flagspublic java.lang.StringBuilder getWhenSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetWhenSQL in class Expressionbuilder - string buildersqlFlags - formatting flagspublic Value getValue(SessionLocal session)
ExpressiongetValue in class Expressionsession - the sessionpublic boolean getWhenValue(SessionLocal session, Value left)
ExpressiongetWhenValue in class Expressionsession - the sessionleft - value on the left sidepublic Expression getNotIfPossible(SessionLocal session)
ExpressiongetNotIfPossible in class Expressionsession - the sessionpublic void createIndexConditions(SessionLocal session, TableFilter filter)
ExpressioncreateIndexConditions in class Expressionsession - the sessionfilter - the table filterpublic TypeInfo getType()
ExpressiongetType in interface TypedgetType in class Expression