Module org.eclipse.persistence.core
Class ConstructorNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.ConstructorNode
- All Implemented Interfaces:
AliasableNode
INTERNAL
Purpose: Represent a constructor node (NEW)
Responsibilities:
- Generate the correct expression for a constructor
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of constructor call argument nodesFields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstructorItem(Node theNode) INTERNAL Add an Order By Item to this nodevoidapplyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) INTERNAL Apply this node to the passed queryINTERNAL Get the string representation of this node.INTERNAL Get the list of constructor items of this node.booleanbooleanINTERNAL Is this node a ConstructorNodevoidsetConstructorItems(List<Node> items) INTERNAL Set the list of constructor items of this node.voidvalidate(ParseTreeContext context) INTERNAL Validate node and calculate its type.Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, generateExpression, getAlias, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.internal.jpa.parsing.AliasableNode
getAlias, setAlias
-
Field Details
-
constructorItems
The list of constructor call argument nodes
-
-
Constructor Details
-
ConstructorNode
Return a new ConstructorNode
-
-
Method Details
-
applyToQuery
INTERNAL Apply this node to the passed query- Overrides:
applyToQueryin classNode
-
validate
INTERNAL Validate node and calculate its type. -
isConstructorNode
public boolean isConstructorNode()INTERNAL Is this node a ConstructorNode- Overrides:
isConstructorNodein classNode
-
addConstructorItem
INTERNAL Add an Order By Item to this node -
setConstructorItems
INTERNAL Set the list of constructor items of this node. -
getConstructorItems
INTERNAL Get the list of constructor items of this node. -
getAsString
INTERNAL Get the string representation of this node.- Overrides:
getAsStringin classNode
-
isAliasableNode
public boolean isAliasableNode()- Overrides:
isAliasableNodein classNode
-