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

public Class ConstructorNode

extends Node
implements AliasableNode
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.jpa.parsing.AliasableNode
Imports
java.util.*, org.eclipse.persistence.exceptions.JPQLException, org.eclipse.persistence.queries.ObjectLevelReadQuery, .ReportQuery

INTERNAL

Purpose: Represent a constructor node (NEW)

Responsibilities:

Field Summary

Modifier and TypeField and Description
private String
className

The name of the constructor class.

public List<Node>
constructorItems

The list of constructor call argument nodes

Inherited from org.eclipse.persistence.internal.jpa.parsing.Node:
aliasleftrightshouldGenerateExpression

Constructor Summary

AccessConstructor and Description
public
ConstructorNode(String className)

Return a new ConstructorNode

Method Summary

Modifier and TypeMethod and Description
public void
addConstructorItem(Node theNode)

INTERNAL Add an Order By Item to this node

public void
applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)

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

INTERNAL Apply this node to the passed query
public String
getAsString()

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

INTERNAL Get the string representation of this node.
private Class<?>
getConstructorClass(ParseTreeContext context)

Check the specific constructor class and return its class instance.

public List<Node>
getConstructorItems()

INTERNAL Get the list of constructor items of this node.

public boolean
public boolean
private boolean
public void
setConstructorItems(List<Node> items)

INTERNAL Set the list of constructor items of this node.

public void
validate(ParseTreeContext context)

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

INTERNAL Validate node and calculate its type.
Inherited from org.eclipse.persistence.internal.jpa.parsing.Node:
addToExpressionappendExpressiongenerateExpressiongetAliasgetColumngetLeftgetLinegetRightgetTypehasLefthasRightisAggregateNodeisAttributeNodeisCountNodeisDivideNodeisDotNodeisEscapeisLiteralNodeisMapKeyNodeisMinusNodeisMultiplyNodeisNotNodeisParameterNodeisPlusNodeisSubqueryNodeisVariableNodequalifyAttributeAccessresolveAttributeresolveClassresolveClassresolveMappingresolveMappingsetAliassetColumnsetLeftsetLinesetRightsetTypetoStringtoStringtoStringDisplayNametoStringIndentvalidateParameter

Field Detail

classNameback to summary
private String className

The name of the constructor class.

constructorItemsback to summary
public List<Node> constructorItems

The list of constructor call argument nodes

Constructor Detail

ConstructorNodeback to summary
public ConstructorNode(String className)

Return a new ConstructorNode

Method Detail

addConstructorItemback to summary
public void addConstructorItem(Node theNode)

INTERNAL Add an Order By Item to this node

applyToQueryback to summary
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)

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

INTERNAL Apply this node to the passed query

Annotations
@Override
getAsStringback to summary
public String getAsString()

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

INTERNAL Get the string representation of this node.

Annotations
@Override
getConstructorClassback to summary
private Class<?> getConstructorClass(ParseTreeContext context)

Check the specific constructor class and return its class instance.

Exceptions
JPQLException:
if the specified constructor class could not be found.
getConstructorItemsback to summary
public List<Node> getConstructorItems()

INTERNAL Get the list of constructor items of this node.

isAliasableNodeback to summary
public boolean isAliasableNode()

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

Annotations
@Override
isConstructorNodeback to summary
public boolean isConstructorNode()

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

INTERNAL Is this node a ConstructorNode

Annotations
@Override
selectingRelationshipFieldback to summary
private boolean selectingRelationshipField(Node node, GenerationContext context)

INTERNAL

setConstructorItemsback to summary
public void setConstructorItems(List<Node> items)

INTERNAL Set the list of constructor items of this node.

validateback to summary
public void validate(ParseTreeContext context)

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

INTERNAL Validate node and calculate its type.

Annotations
@Override