public class TypedValueExpression extends ValueExpression
| Modifier and Type | Field and Description |
|---|---|
static TypedValueExpression |
UNKNOWN
The expression represents the SQL UNKNOWN value.
|
DEFAULT, FALSE, NULL, TRUEAUTO_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 |
|---|---|
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, isValueSetmapColumns, 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 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()
ExpressiongetType in interface TypedgetType in class ValueExpressionpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class ValueExpressionbuilder - string buildersqlFlags - formatting flagspublic boolean isNullConstant()
ExpressionisNullConstant in class ValueExpression