| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | getCost()
Implements abstract org. Estimate the cost to process the expression. |
| public int | |
| public static int | Returns: the maximum 1-based index, or-1parameters parameters)Returns the maximum 1-based index. |
| public Expression | getNotIfPossible(SessionLocal
the session session)Overrides org. If it is possible, return the negated expression. |
| public Value | getParamValue()
Implements org. Get the value of the parameter if set. |
| public TypeInfo | getType()
Implements abstract org. Implements org. Returns the expected data type if no value is set, or the data type of the value if one is set. |
| 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 | isEverything(ExpressionVisitor
the visitor visitor)Implements abstract org. Check if this expression and all sub-expressions can fulfill a criteria. |
| public boolean | isValueSet()
Overrides org. Implements org. Is the value of a parameter set. |
| public Expression | optimize(SessionLocal
the session session)Overrides org. Try to optimize the expression. |
| public void | |
| public void | setValue(Value
the new value v, boolean if the old value (if one is set) should be closed closeOld)Implements org. Set the value of the parameter. |
| public void |
| column | back to summary |
|---|---|
| private Column column | |
| index | back to summary |
|---|---|
| private final int index | |
| value | back to summary |
|---|---|
| private Value value | |
| Parameter | back to summary |
|---|---|
| public Parameter(int index) | |
| checkSet | back to summary |
|---|---|
| public void checkSet() Implements org. Doc from org. Check if the value is set.
| |
| 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.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() | |
| getMaxIndex | back to summary |
|---|---|
| public static int getMaxIndex(ArrayList<Parameter> parameters) Returns the maximum 1-based index. | |
| 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.
| |
| getParamValue | back to summary |
|---|---|
| public Value getParamValue() Implements org. Doc from org. Get the value of the parameter if set. | |
| getType | back to summary |
|---|---|
| public TypeInfo getType() Implements abstract org. Implements org. Doc from org. Returns the expected data type if no value is set, or the data type of the value if one is set. | |
| 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.
| |
| 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.
| |
| isValueSet | back to summary |
|---|---|
| public boolean isValueSet() Overrides org. Implements org. Doc from org. Is the value of a parameter set.
| |
| optimize | back to summary |
|---|---|
| public Expression optimize(SessionLocal session) Overrides org. Doc from org. Try to optimize the expression.
| |
| setColumn | back to summary |
|---|---|
| public void setColumn(Column column) | |
| setValue | back to summary |
|---|---|
| public void setValue(Value v, boolean closeOld) Implements org. Doc from org. Set the value of the parameter. | |
| setValue | back to summary |
|---|---|
| public void setValue(Value v) | |