public class ValueExpression extends Operation0
| Modifier and Type | Field and Description |
|---|---|
static ValueExpression |
DEFAULT
This special expression represents the default value.
|
static ValueExpression |
FALSE
The expression represents ValueBoolean.FALSE.
|
static ValueExpression |
NULL
The expression represents ValueNull.INSTANCE.
|
static ValueExpression |
TRUE
The expression represents ValueBoolean.TRUE.
|
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| Modifier and Type | Method and Description |
|---|---|
void |
createIndexConditions(SessionLocal session,
TableFilter filter)
Create index conditions if possible and attach them to the table filter.
|
static ValueExpression |
get(Value value)
Create a new expression with the given value.
|
static ValueExpression |
getBoolean(boolean value)
Create a new expression with the given boolean value.
|
static ValueExpression |
getBoolean(Value value)
Create a new expression with the given boolean value.
|
int |
getCost()
Estimate the cost to process the expression.
|
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.
|
boolean |
isConstant()
Check if this expression will always return the same value.
|
boolean |
isEverything(ExpressionVisitor visitor)
Check if this expression and all sub-expressions can fulfill a criteria.
|
boolean |
isNullConstant()
Check if this expression will always return the NULL value.
|
boolean |
isValueSet()
Is the value of a parameter set.
|
mapColumns, optimize, setEvaluatable, updateAggregateaddFilterConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getSubexpression, getSubexpressionCount, getTableAlias, getTableName, getWhenSQL, getWhenValue, isIdentity, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic static final ValueExpression NULL
public static final ValueExpression DEFAULT
public static final ValueExpression TRUE
public static final ValueExpression FALSE
public static ValueExpression get(Value value)
value - the valuepublic static ValueExpression getBoolean(Value value)
value - the boolean valuepublic static ValueExpression getBoolean(boolean value)
value - the boolean valuepublic Value getValue(SessionLocal session)
ExpressiongetValue in class Expressionsession - the sessionpublic TypeInfo getType()
ExpressiongetType in interface TypedgetType in class Expressionpublic void createIndexConditions(SessionLocal session, TableFilter filter)
ExpressioncreateIndexConditions in class Expressionsession - the sessionfilter - the table filterpublic Expression getNotIfPossible(SessionLocal session)
ExpressiongetNotIfPossible in class Expressionsession - the sessionpublic boolean isConstant()
ExpressionisConstant in class Expressionpublic boolean isNullConstant()
ExpressionisNullConstant in class Expressionpublic boolean isValueSet()
ExpressionisValueSet in class Expressionpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class Expressionbuilder - string buildersqlFlags - formatting flagspublic boolean isEverything(ExpressionVisitor visitor)
ExpressionisEverything in class Expressionvisitor - the visitorpublic int getCost()
ExpressiongetCost in class Expression