Class SetNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.MajorNode
-
- org.eclipse.persistence.internal.jpa.parsing.SetNode
-
public class SetNode extends MajorNode
INTERNAL: This node holds a list of all the updates that will occur in an Update Query. Slightly different from other nodes since holds more than two children in a list.
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description SetNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUpdatesToQuery(UpdateAllQuery theQuery, GenerationContext context)
Iterate through the updates in this query and build expressions for them.protected Expression
getExpressionForNode(Node node, Class referenceClass, GenerationContext context)
Create an expression to represent one of the nodes on a SetToNode.Node
qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the update item node for a path expression starting with a unqualified field access and if so, replace it by a qualified field access.void
setAssignmentNodes(List nodes)
INTERNALvoid
validate(ParseTreeContext context)
INTERNAL Validate 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
-
addUpdatesToQuery
public void addUpdatesToQuery(UpdateAllQuery theQuery, GenerationContext context)
Iterate through the updates in this query and build expressions for them. Set the built expressions on the query.
-
qualifyAttributeAccess
public Node qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the update item node 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 node.
-
getExpressionForNode
protected Expression getExpressionForNode(Node node, Class referenceClass, GenerationContext context)
Create an expression to represent one of the nodes on a SetToNode. We will assume that set_to nodes change elements that are direct mappings on the reference class of the query.
-
setAssignmentNodes
public void setAssignmentNodes(List nodes)
INTERNAL
-
-