Class FromNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.MajorNode
-
- org.eclipse.persistence.internal.jpa.parsing.FromNode
-
public class FromNode extends MajorNode
INTERNALPurpose: Represent a FROM
Responsibilities:
- Determines the context for the Parse Tree
- Determine the reference class for a query
- Handle any FROM ... IN clauses
- Since:
- TopLink 5.0
- Author:
- Jon Driscoll
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description FromNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List
getDeclarations()
String
getFirstVariable()
Node
qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the declaration nodes for a path expression starting with a unqualified field access and if so, replace it by a qualified field access.void
setDeclarations(List decls)
void
validate(ParseTreeContext context)
INTERNAL Validate the current node.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.MajorNode
getContext, setContext
-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, generateExpression, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAliasableNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
-
-
-
-
Method Detail
-
getFirstVariable
public String getFirstVariable()
-
getDeclarations
public List getDeclarations()
-
setDeclarations
public void setDeclarations(List decls)
-
qualifyAttributeAccess
public Node qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the declaration nodes for a path expression starting with a unqualified field access and if so, replace it by a qualified field access.- Overrides:
qualifyAttributeAccess
in classNode
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate the current node.
-
-