| Modifier and Type | Field and Description |
|---|---|
| public static final ValueExpression | DEFAULT
This special expression represents the default value. |
| public static final ValueExpression | FALSE
The expression represents ValueBoolean.FALSE. |
| public static final ValueExpression | NULL
The expression represents ValueNull.INSTANCE. |
| public static final ValueExpression | TRUE
The expression represents ValueBoolean.TRUE. |
| pack-priv final Value | value
The value. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | createIndexConditions(SessionLocal
the session session, TableFilter the table filter filter)Overrides org. Create index conditions if possible and attach them to the table filter. |
| public static ValueExpression | |
| public static ValueExpression | Returns: the expressionthe boolean value value)Create a new expression with the given boolean value. |
| public static ValueExpression | Returns: the expressionthe boolean value value)Create a new expression with the given boolean value. |
| public int | getCost()
Implements abstract org. Estimate the cost to process the expression. |
| public Expression | getNotIfPossible(SessionLocal
the session session)Overrides org. If it is possible, return the negated expression. |
| public TypeInfo | getType()
Implements abstract org. Implements org. Returns the data type. |
| public TypeInfo | getTypeIfStaticallyKnown(SessionLocal
the session session)Overrides org. Returns data type of this expression if it is statically known. |
| public StringBuilder | getUnenclosedSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Implements abstract org. Get the SQL statement of this expression. |
| public Value | getValue(SessionLocal
the session session)Implements abstract org. Return the resulting value for the current row. |
| public boolean | isConstant()
Overrides org. Check if this expression will always return the same value. |
| public boolean | isEverything(ExpressionVisitor
the visitor visitor)Implements abstract org. Check if this expression and all sub-expressions can fulfill a criteria. |
| public boolean | isNullConstant()
Overrides org. Check if this expression will always return the NULL value. |
| public boolean |
| DEFAULT | back to summary |
|---|---|
| public static final ValueExpression DEFAULT This special expression represents the default value. It is used for UPDATE statements of the form SET COLUMN = DEFAULT. The value is ValueNull.INSTANCE, but should never be accessed. | |
| FALSE | back to summary |
|---|---|
| public static final ValueExpression FALSE The expression represents ValueBoolean.FALSE. | |
| NULL | back to summary |
|---|---|
| public static final ValueExpression NULL The expression represents ValueNull.INSTANCE. | |
| TRUE | back to summary |
|---|---|
| public static final ValueExpression TRUE The expression represents ValueBoolean.TRUE. | |
| value | back to summary |
|---|---|
| pack-priv final Value value The value. | |
| ValueExpression | back to summary |
|---|---|
| pack-priv ValueExpression(Value value) | |
| createIndexConditions | back to summary |
|---|---|
| public void createIndexConditions(SessionLocal session, TableFilter filter) Overrides org. Doc from org. Create index conditions if possible and attach them to the table filter.
| |
| get | back to summary |
|---|---|
| public static ValueExpression get(Value value) Create a new expression with the given value.
| |
| getBoolean | back to summary |
|---|---|
| public static ValueExpression getBoolean(Value value) Create a new expression with the given boolean value.
| |
| getBoolean | back to summary |
|---|---|
| public static ValueExpression getBoolean(boolean value) Create a new expression with the given boolean value.
| |
| getCost | back to summary |
|---|---|
| public int getCost() Implements abstract org. Doc from org. Estimate the cost to process the expression. Used when optimizing the query, to calculate the query plan with the lowest estimated cost.
| |
| getNotIfPossible | back to summary |
|---|---|
| public Expression getNotIfPossible(SessionLocal session) Overrides org. Doc from org. If it is possible, return the negated expression. This is used to optimize NOT expressions: NOT ID>10 can be converted to ID<=10. Returns null if negating is not possible.
| |
| getType | back to summary |
|---|---|
| public TypeInfo getType() Implements abstract org. Implements org. Doc from org. Returns the data type. The data type may be unknown before the optimization phase. | |
| getTypeIfStaticallyKnown | back to summary |
|---|---|
| public TypeInfo getTypeIfStaticallyKnown(SessionLocal session) Overrides org. Doc from org. Returns data type of this expression if it is statically known.
| |
| getUnenclosedSQL | back to summary |
|---|---|
| public StringBuilder getUnenclosedSQL(StringBuilder builder, int sqlFlags) Implements abstract org. Doc from org. Get the SQL statement of this expression. This may not always be the original SQL statement, especially after optimization. Enclosing '(' and ')' are never appended.
| |
| getValue | back to summary |
|---|---|
| public Value getValue(SessionLocal session) Implements abstract org. Doc from org. Return the resulting value for the current row.
| |
| isConstant | back to summary |
|---|---|
| public boolean isConstant() Overrides org. Doc from org. Check if this expression will always return the same value.
| |
| isEverything | back to summary |
|---|---|
| public boolean isEverything(ExpressionVisitor visitor) Implements abstract org. Doc from org. Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.
| |
| isNullConstant | back to summary |
|---|---|
| public boolean isNullConstant() Overrides org. Doc from org. Check if this expression will always return the NULL value.
| |
| isValueSet | back to summary |
|---|---|
| public boolean isValueSet() Overrides org. Doc from org. Is the value of a parameter set.
| |