Purpose: Represent a attribute.
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
| private QueryKey | |
| private String | |
| private DatabaseMapping | |
| private String | name
The attribute name. |
| private boolean | outerJoin
Flag indicating outer join |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Expression | addToExpression(Expression parentExpression, GenerationContext context)
Overrides org. |
| public Expression | |
| public void | |
| public Object | |
| public String | getAsString()
Overrides org. |
| public String | |
| public String | |
| public DatabaseMapping | |
| public boolean | isAttributeNode()
Overrides org. |
| public boolean | |
| public boolean | |
| public Node | qualifyAttributeAccess(ParseTreeContext context)
Overrides org. |
| public boolean | |
| public Class | resolveClass(GenerationContext context, Class<?> ownerClass)
Overrides org. |
| public DatabaseMapping | resolveMapping(GenerationContext context, Class<?> ownerClass)
Overrides org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public void | validate(ParseTreeContext context)
Overrides org. |
| attributeQueryKey | back to summary |
|---|---|
| private QueryKey attributeQueryKey | |
| castClassName | back to summary |
|---|---|
| private String castClassName | |
| mapping | back to summary |
|---|---|
| private DatabaseMapping mapping | |
| name | back to summary |
|---|---|
| private String name The attribute name. | |
| outerJoin | back to summary |
|---|---|
| private boolean outerJoin Flag indicating outer join | |
| requiresCollectionAttribute | back to summary |
|---|---|
| private boolean requiresCollectionAttribute | |
| AttributeNode | back to summary |
|---|---|
| public AttributeNode() Create a new AttributeNode | |
| AttributeNode | back to summary |
|---|---|
| public AttributeNode(String name) Create a new AttributeNode with the passed name
| |
| addToExpression | back to summary |
|---|---|
| public Expression addToExpression(Expression parentExpression, GenerationContext context) Overrides org. Doc from org. INTERNAL Add my expression semantics to the parentExpression. Each subclass will add a different expression and thus will need to override this method
| |
| appendCast | back to summary |
|---|---|
| public Expression appendCast(Expression exp, GenerationContext context) | |
| checkForQueryKey | back to summary |
|---|---|
| public void checkForQueryKey(Object ownerType, TypeHelper typeHelper) | |
| computeActualType | back to summary |
|---|---|
| public Object computeActualType(Object initialType, TypeHelper typeHelper) | |
| getAsString | back to summary |
|---|---|
| public String getAsString() Overrides org. INTERNAL Get the string representation of this node.
| |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() | |
| getCastClassName | back to summary |
|---|---|
| public String getCastClassName() | |
| getMapping | back to summary |
|---|---|
| public DatabaseMapping getMapping() | |
| isAttributeNode | back to summary |
|---|---|
| public boolean isAttributeNode() Overrides org. INTERNAL Is this node an AttributeNode
| |
| isCollectionAttribute | back to summary |
|---|---|
| public boolean isCollectionAttribute() | |
| isOuterJoin | back to summary |
|---|---|
| public boolean isOuterJoin() | |
| qualifyAttributeAccess | back to summary |
|---|---|
| public Node qualifyAttributeAccess(ParseTreeContext context) Overrides org. INTERNAL If called this AttributeNode represents an unqualified field access. The method returns a DotNode representing a qualified field access with the base variable as left child node and the attribute as right child node.
| |
| requiresCollectionAttribute | back to summary |
|---|---|
| public boolean requiresCollectionAttribute() | |
| resolveClass | back to summary |
|---|---|
| public Class Overrides org. resolveClass: Answer the class for the mapping associated with the my variableName in the ownerClass. Answer null if the node represents a mapping that doesn't exist
| |
| resolveMapping | back to summary |
|---|---|
| public DatabaseMapping resolveMapping(GenerationContext context, Class<?> ownerClass) Overrides org. resolveMapping: Answer the mapping which corresponds to my variableName.
| |
| setAttributeName | back to summary |
|---|---|
| public void setAttributeName(String name) | |
| setCastClassName | back to summary |
|---|---|
| public void setCastClassName(String castClassName) | |
| setMapping | back to summary |
|---|---|
| public void setMapping(DatabaseMapping mapping) | |
| setOuterJoin | back to summary |
|---|---|
| public void setOuterJoin(boolean outerJoin) | |
| setRequiresCollectionAttribute | back to summary |
|---|---|
| public void setRequiresCollectionAttribute(boolean requiresCollectionAttribute) | |
| toString | back to summary |
|---|---|
| public String toString(int indent) Overrides org.
| |
| validate | back to summary |
|---|---|
| public void validate(ParseTreeContext context) Overrides org. INTERNAL Validate the current node and calculates its type.
| |