Top Description Constructors Methods
org.eclipse.persistence.jpa.jpql.parser

public final Class CollectionValuedPathExpression

extends AbstractPathExpression
Class Inheritance

A collection_valued_field is designated by the name of an association field in a one-to-many or a many-to-many relationship or by the name of an element collection field. The type of a collection_valued_field is a collection of values of the abstract schema type of the related entity or element type.
BNF: collection_valued_path_expression ::= general_identification_variable.{single_valued_object_field.}*collection_valued_field
Author
Pascal Filion
Since
2.3
Version
2.4

Constructor Summary

AccessConstructor and Description
public
CollectionValuedPathExpression(AbstractExpression
The parent of this expression
parent
,
AbstractExpression
The identification variable that was already parsed, which means the beginning of the parsing should start with a dot
expression
)

Creates a new CollectionValuedPathExpression.

public
CollectionValuedPathExpression(AbstractExpression
The parent of this expression
parent
,
AbstractExpression
The identification variable that was already parsed, which means the beginning of the parsing should start with a dot
expression
,
String
The path expression that is following the identification variable
paths
)

Creates a new CollectionValuedPathExpression.

public
CollectionValuedPathExpression(AbstractExpression
The parent of this expression
parent
,
String
The path expression
paths
)

Creates a new CollectionValuedPathExpression.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
public JPQLQueryBNF
Inherited from org.eclipse.persistence.jpa.jpql.parser.AbstractPathExpression:
acceptChildrenaddChildrenToaddOrderedChildrenToendsWithDotfindQueryBNFgetIdentificationVariablegetPathhasIdentificationVariablehasVirtualIdentificationVariableparsepathspathSizesetVirtualIdentificationVariablestartsWithDottoParsedTexttoParsedText

Constructor Detail

CollectionValuedPathExpressionback to summary
public CollectionValuedPathExpression(AbstractExpression parent, AbstractExpression expression)

Creates a new CollectionValuedPathExpression.

Parameters
parent:AbstractExpression

The parent of this expression

expression:AbstractExpression

The identification variable that was already parsed, which means the beginning of the parsing should start with a dot

CollectionValuedPathExpressionback to summary
public CollectionValuedPathExpression(AbstractExpression parent, AbstractExpression expression, String paths)

Creates a new CollectionValuedPathExpression.

Parameters
parent:AbstractExpression

The parent of this expression

expression:AbstractExpression

The identification variable that was already parsed, which means the beginning of the parsing should start with a dot

paths:String

The path expression that is following the identification variable

CollectionValuedPathExpressionback to summary
public CollectionValuedPathExpression(AbstractExpression parent, String paths)

Creates a new CollectionValuedPathExpression.

Parameters
parent:AbstractExpression

The parent of this expression

paths:String

The path expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override
getQueryBNFback to summary
public JPQLQueryBNF getQueryBNF()

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Returns the BNF of this Expression.

Returns:JPQLQueryBNF

The JPQLQueryBNF, which represents the grammar of this Expression

Annotations
@Override