public class TypedValueExpression extends ValueExpression
Modifier and Type | Field and Description |
---|---|
static TypedValueExpression |
UNKNOWN
The expression represents the SQL UNKNOWN value.
|
DEFAULT, FALSE, NULL, TRUE
AUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESES
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
Modifier and Type | Method and Description |
---|---|
static ValueExpression |
get(Value value,
TypeInfo type)
Create a new expression with the given value and type.
|
TypeInfo |
getType()
Returns the data type.
|
static ValueExpression |
getTypedIfNull(Value value,
TypeInfo type)
Create a new typed value expression with the given value and type if
value is
NULL , or a plain value expression otherwise. |
java.lang.StringBuilder |
getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
Get the SQL statement of this expression.
|
boolean |
isNullConstant()
Check if this expression will always return the NULL value.
|
createIndexConditions, get, getBoolean, getBoolean, getCost, getNotIfPossible, getValue, isConstant, isEverything, isValueSet
mapColumns, optimize, setEvaluatable, updateAggregate
addFilterConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getSubexpression, getSubexpressionCount, getTableAlias, getTableName, getWhenSQL, getWhenValue, isIdentity, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTraceSQL
public static final TypedValueExpression UNKNOWN
public static ValueExpression get(Value value, TypeInfo type)
value
- the valuetype
- the value typepublic static ValueExpression getTypedIfNull(Value value, TypeInfo type)
NULL
, or a plain value expression otherwise.value
- the valuetype
- the value typepublic TypeInfo getType()
Expression
getType
in interface Typed
getType
in class ValueExpression
public java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder, int sqlFlags)
Expression
getUnenclosedSQL
in class ValueExpression
builder
- string buildersqlFlags
- formatting flagspublic boolean isNullConstant()
Expression
isNullConstant
in class ValueExpression