Purpose: The node that represents typed variables, local variables, remote variables and TYPE constants.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Object | classConstant
if this represents a type constant, this value will be populated by validate |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addAttributeWithFetchJoins(ReportQuery reportQuery, Expression expression, GenerationContext context)
INTERNAL Add the variable as ReportQuery item. |
| private void | addFetchJoins(ObjectLevelReadQuery theQuery, GenerationContext context)
INTERNAL Check for any JOIN FETCH nodes of the current variable and add them as joined attributes. |
| public void | applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext)
Overrides org. |
| public Expression | |
| public Expression | generateExpression(GenerationContext generationContext)
Overrides org. |
| public Expression | |
| public String | getAsString()
Overrides org. |
| public String | |
| public Node | |
| public Object | |
| public String | |
| public boolean | isAlias(GenerationContext context)
isAlias: Answer true if this variable represents an alias in the FROM clause. |
| public boolean | |
| public boolean | |
| public boolean | isVariableNode()
Overrides org. |
| public Node | qualifyAttributeAccess(ParseTreeContext context)
Overrides org. |
| public Class | resolveClass(GenerationContext generationContext)
Overrides org. |
| public void | |
| public String | |
| public void | validate(ParseTreeContext context)
Overrides org. |
| canonicalName | back to summary |
|---|---|
| private String canonicalName | |
| classConstant | back to summary |
|---|---|
| private Object classConstant if this represents a type constant, this value will be populated by validate | |
| variableName | back to summary |
|---|---|
| private String variableName | |
| VariableNode | back to summary |
|---|---|
| public VariableNode() VariableNode constructor comment. | |
| VariableNode | back to summary |
|---|---|
| public VariableNode(String newVariableName) | |
| addAttributeWithFetchJoins | back to summary |
|---|---|
| private void addAttributeWithFetchJoins(ReportQuery reportQuery, Expression expression, GenerationContext context) INTERNAL Add the variable as ReportQuery item. The method checks for any JOIN FETCH nodes of the current variable and adds them as part of the ReportQuery item. | |
| addFetchJoins | back to summary |
|---|---|
| private void addFetchJoins(ObjectLevelReadQuery theQuery, GenerationContext context) INTERNAL Check for any JOIN FETCH nodes of the current variable and add them as joined attributes. This method is called in case of a non ReportQuery instance. | |
| applyToQuery | back to summary |
|---|---|
| public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext) Overrides org. INTERNAL Apply this node to the passed query
| |
| generateBaseBuilderExpression | back to summary |
|---|---|
| public Expression generateBaseBuilderExpression(GenerationContext context) | |
| generateExpression | back to summary |
|---|---|
| public Expression generateExpression(GenerationContext generationContext) Overrides org. Doc from org. INTERNAL Generate an expression for the node. Each subclass will generate a different expression and thus will need to override this method
| |
| generateExpressionForAlias | back to summary |
|---|---|
| public Expression generateExpressionForAlias(GenerationContext context) | |
| getAsString | back to summary |
|---|---|
| public String getAsString() Overrides org. INTERNAL Get the string representation of this node.
| |
| getCanonicalVariableName | back to summary |
|---|---|
| public String getCanonicalVariableName() | |
| getNodeForAlias | back to summary |
|---|---|
| public Node getNodeForAlias(GenerationContext context) | |
| getTypeForMapKey | back to summary |
|---|---|
| public Object getTypeForMapKey(ParseTreeContext context) | |
| getVariableName | back to summary |
|---|---|
| public String getVariableName() | |
| isAlias | back to summary |
|---|---|
| public boolean isAlias(GenerationContext context) isAlias: Answer true if this variable represents an alias in the FROM clause. i.e. "FROM Employee emp" declares "emp" as an alias | |
| isAlias | back to summary |
|---|---|
| public boolean isAlias(ParseTreeContext context) | |
| isAliasableNode | back to summary |
|---|---|
| public boolean isAliasableNode() Overrides org.
| |
| isVariableNode | back to summary |
|---|---|
| public boolean isVariableNode() Overrides org. INTERNAL Is this node a VariableNode
| |
| qualifyAttributeAccess | back to summary |
|---|---|
| public Node qualifyAttributeAccess(ParseTreeContext context) Overrides org. INTERNAL This node represent an unqualified field access in the case the method is called and the variableName is not defined as identification variable. The method returns a DotNode representing a qualified field access with the base variable as left child node. The right child node is an AttributeNode using the variableName as field name.
| |
| resolveClass | back to summary |
|---|---|
| public Class Overrides org. resolveClass: Answer the class which corresponds to my variableName. This is the class for an alias, where the variableName is registered to an alias.
| |
| setVariableName | back to summary |
|---|---|
| public void setVariableName(String newVariableName) | |
| toString | back to summary |
|---|---|
| public String toString(int indent) Overrides org.
| |
| validate | back to summary |
|---|---|
| public void validate(ParseTreeContext context) Overrides org. INTERNAL Validate node and calculate its type.
| |