Purpose: This node represents an 'DOT' (i.e. '.') on the input stream. The left and right will depend on the input stream.
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
| private Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
Overrides org. |
| private void | checkNavigation(Node node, ParseTreeContext context)
INTERNAL Checks whether the left hand side of this dot node is navigable. |
| public boolean | endsWithCollectionField(GenerationContext context)
INTERNAL (): Answer true if the node has a left and right, and the right represents a collection mapping. |
| public boolean | endsWithDirectToField(GenerationContext context)
INTERNAL (): Answer true if the SELECTed node has a left and right, and the right represents a direct-to-field mapping. |
| public Expression | generateExpression(GenerationContext context)
Overrides org. |
| public String | getAsString()
Overrides org. |
| public Node | |
| public Node | |
| public Object | |
| public Class | getTypeOfDirectToField(GenerationContext context)
INTERNAL Returns the attribute type if the right represents a direct-to-field mapping. |
| public boolean | |
| private boolean | |
| public boolean | isDotNode()
Overrides org. |
| public Node | qualifyAttributeAccess(ParseTreeContext context)
Overrides org. |
| public String | resolveAttribute()
Overrides org. |
| public Class | resolveClass(GenerationContext context)
Overrides org. |
| private Object | resolveEnumTypeName(String name, TypeHelper helper)
INTERNAL Returns the type representation for the specified type name. |
| public DatabaseMapping | resolveMapping(GenerationContext context)
Overrides org. |
| public void | validate(ParseTreeContext context)
Overrides org. |
| enumConstant | back to summary |
|---|---|
| private Object enumConstant | |
| DotNode | back to summary |
|---|---|
| public DotNode() | |
| applyToQuery | back to summary |
|---|---|
| public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) Overrides org. INTERNAL Apply this node to the passed query
| |
| checkNavigation | back to summary |
|---|---|
| private void checkNavigation(Node node, ParseTreeContext context) INTERNAL Checks whether the left hand side of this dot node is navigable. | |
| endsWithCollectionField | back to summary |
|---|---|
| public boolean endsWithCollectionField(GenerationContext context) INTERNAL (): Answer true if the node has a left and right, and the right represents a collection mapping. | |
| endsWithDirectToField | back to summary |
|---|---|
| public boolean endsWithDirectToField(GenerationContext context) INTERNAL (): Answer true if the SELECTed node has a left and right, and the right represents a direct-to-field mapping. | |
| generateExpression | back to summary |
|---|---|
| public Expression generateExpression(GenerationContext context) Overrides org. INTERNAL Return a TopLink expression by getting the required variables using the left and right nodes "emp.address.city" = builder.get("address").get("city")
| |
| getAsString | back to summary |
|---|---|
| public String getAsString() Overrides org. INTERNAL Get the string representation of this node.
| |
| getLeftMostNode | back to summary |
|---|---|
| public Node getLeftMostNode() INTERNAL Return the left most node of a dot expr, so return 'a' for 'a.b.c'. | |
| getRightMostNode | back to summary |
|---|---|
| public Node getRightMostNode() INTERNAL Return the right most node of a dot expr, so return 'c' for 'a.b.c'. | |
| getTypeForMapKey | back to summary |
|---|---|
| public Object getTypeForMapKey(ParseTreeContext context) | |
| getTypeOfDirectToField | back to summary |
|---|---|
| public Class INTERNAL Returns the attribute type if the right represents a direct-to-field mapping. | |
| isAliasableNode | back to summary |
|---|---|
| public boolean isAliasableNode() Overrides org.
| |
| isDeclaredVariable | back to summary |
|---|---|
| private boolean isDeclaredVariable(Node node, ParseTreeContext context) | |
| isDotNode | back to summary |
|---|---|
| public boolean isDotNode() Overrides org. INTERNAL Yes, this is a dot node
| |
| qualifyAttributeAccess | back to summary |
|---|---|
| public Node qualifyAttributeAccess(ParseTreeContext context) Overrides org. INTERNAL Check the left child node for an unqualified field access. The method delegates to the left most expression of multi-navigation path expression.
| |
| resolveAttribute | back to summary |
|---|---|
| public String resolveAttribute() Overrides org. INTERNAL Answer the name of the attribute which is represented by the receiver's right node.
| |
| resolveClass | back to summary |
|---|---|
| public Class Overrides org. resolveClass: Answer the class which results from traversing the mappings for the receiver's nodes
| |
| resolveEnumTypeName | back to summary |
|---|---|
| private Object resolveEnumTypeName(String name, TypeHelper helper) INTERNAL Returns the type representation for the specified type name. The method looks for inner classes if it cannot resolve the type name. | |
| resolveMapping | back to summary |
|---|---|
| public DatabaseMapping resolveMapping(GenerationContext context) Overrides org. INTERNAL Answer the mapping resulting from traversing the receiver's nodes
| |
| validate | back to summary |
|---|---|
| public void validate(ParseTreeContext context) Overrides org. INTERNAL Validate node and calculate its type. Check for enum literals.
| |