java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.ConstructorNode
All Implemented Interfaces:
AliasableNode

public class ConstructorNode extends Node implements AliasableNode
INTERNAL

Purpose: Represent a constructor node (NEW)

Responsibilities:

  • Generate the correct expression for a constructor
  • Field Details

    • constructorItems

      public List<Node> constructorItems
      The list of constructor call argument nodes
  • Constructor Details

    • ConstructorNode

      public ConstructorNode(String className)
      Return a new ConstructorNode
  • Method Details

    • applyToQuery

      public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
      INTERNAL Apply this node to the passed query
      Overrides:
      applyToQuery in class Node
    • validate

      public void validate(ParseTreeContext context)
      INTERNAL Validate node and calculate its type.
      Overrides:
      validate in class Node
    • isConstructorNode

      public boolean isConstructorNode()
      INTERNAL Is this node a ConstructorNode
      Overrides:
      isConstructorNode in class Node
    • addConstructorItem

      public void addConstructorItem(Node theNode)
      INTERNAL Add an Order By Item to this node
    • setConstructorItems

      public void setConstructorItems(List<Node> items)
      INTERNAL Set the list of constructor items of this node.
    • getConstructorItems

      public List<Node> getConstructorItems()
      INTERNAL Get the list of constructor items of this node.
    • getAsString

      public String getAsString()
      INTERNAL Get the string representation of this node.
      Overrides:
      getAsString in class Node
    • isAliasableNode

      public boolean isAliasableNode()
      Overrides:
      isAliasableNode in class Node