| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final int[] | |
| private static final String[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ValueNode | Returns: The new top of the expression tree.The FROM list for the statement. This parameter
is not used in this case. fromList, SubqueryList The subquery list being built as we find
SubqueryNodes. Not used in this case. subqueryList, List<AggregateNode> The aggregate list being built as we find
AggregateNodes. Not used in this case. aggregates)Overrides org. Binding this expression means setting the result DataTypeServices. |
| pack-priv void | generateExpression(ExpressionClassBuilder
The ExpressionClassBuilder for the class being built acb, MethodBuilder The method the code to place the code mb)Overrides org. CurrentDatetimeOperatorNode is used in expressions. |
| protected int | Returns: The variant type for the underlying expression.Overrides org. Return the variant type for the underlying expression. |
| pack-priv boolean | isEquivalent(ValueNode
the node to compare this ValueNode against. o)Implements abstract org. Tests if this node is equivalent to the specified ValueNode. |
| public String | toString()
Overrides org. Convert this object to a String. |
| CURRENT_DATE | back to summary |
|---|---|
| pack-priv static final int CURRENT_DATE | |
| CURRENT_TIME | back to summary |
|---|---|
| pack-priv static final int CURRENT_TIME | |
| CURRENT_TIMESTAMP | back to summary |
|---|---|
| pack-priv static final int CURRENT_TIMESTAMP | |
| jdbcTypeId | back to summary |
|---|---|
| private static final int[] jdbcTypeId | |
| methodName | back to summary |
|---|---|
| private static final String[] methodName | |
| whichType | back to summary |
|---|---|
| private int whichType | |
| CurrentDatetimeOperatorNode | back to summary |
|---|---|
| pack-priv CurrentDatetimeOperatorNode(int whichType, ContextManager cm) | |
| bindExpression | back to summary |
|---|---|
| pack-priv ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, List<AggregateNode> aggregates) throws StandardException Overrides org. Binding this expression means setting the result DataTypeServices. In this case, the result type is based on the operation requested.
| |
| generateExpression | back to summary |
|---|---|
| pack-priv void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException Overrides org. CurrentDatetimeOperatorNode is used in expressions. The expression generated for it invokes a static method on a special Derby type to get the system time and wrap it in the right java.sql type, and then wrap it into the right shape for an arbitrary value, i.e. a column holder. This is very similar to what constants do.
| |
| getOrderableVariantType | back to summary |
|---|---|
| protected int getOrderableVariantType() Overrides org. Return the variant type for the underlying expression. The variant type can be: VARIANT - variant within a scan (method calls and non-static field access) SCAN_INVARIANT - invariant within a scan (column references from outer tables) QUERY_INVARIANT - invariant within the life of a query (constant expressions)
| |
| isEquivalent | back to summary |
|---|---|
| pack-priv boolean isEquivalent(ValueNode o) Implements abstract org. Doc from org. Tests if this node is equivalent to the specified ValueNode. Two ValueNodes are considered equivalent if they will evaluate to the same value during query execution. This method provides basic expression matching facility for the derived class of ValueNode and it is used by the language layer to compare the node structural form of the two expressions for equivalence at bind phase. Note that it is not comparing the actual row values at runtime to produce a result; hence, when comparing SQL NULLs, they are considered to be equivalent and not unknown. One usage case of this method in this context is to compare the select column expression against the group by expression to check if they are equivalent. e.g.: SELECT c1+c2 FROM t1 GROUP BY c1+c2 In general, node equivalence is determined by the derived class of ValueNode. But they generally abide to the rules below:
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from org. Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. | |