Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.parsing

public Class SetNode

extends MajorNode
Class Inheritance
Imports
org.eclipse.persistence.expressions.*, org.eclipse.persistence.queries.*, java.util.*

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

Modifier and TypeField and Description
private List<Node>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public 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.

public Node
qualifyAttributeAccess(ParseTreeContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.qualifyAttributeAccess.

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.
public void
setAssignmentNodes(List<Node> nodes)

INTERNAL

public void
Inherited from org.eclipse.persistence.internal.jpa.parsing.MajorNode:
getContextsetContext

Field Detail

assignmentNodesback to summary
private List<Node> assignmentNodes

Constructor Detail

SetNodeback to summary
public SetNode()

Method Detail

addUpdatesToQueryback to summary
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.

getExpressionForNodeback to summary
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.

qualifyAttributeAccessback to summary
public Node qualifyAttributeAccess(ParseTreeContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.qualifyAttributeAccess.

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.

Annotations
@Override
setAssignmentNodesback to summary
public void setAssignmentNodes(List<Node> nodes)

INTERNAL

validateback to summary
public void validate(ParseTreeContext context)

Overrides org.eclipse.persistence.internal.jpa.parsing.Node.validate.

INTERNAL Validate node.

Annotations
@Override