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

public final Class StateFieldPathExpression

extends AbstractPathExpression
Class Inheritance

A single_valued_association_field is designated by the name of an association-field in a one-to-one or many-to-one relationship. The type of a single_valued_association_field and thus a single_valued_association_path_expression is the abstract schema type of the related entity. A collection_valued_association_field is designated by the name of an association-field in a one-to-many or a many-to-many relationship. The type of a collection_valued_association_field is a collection of values of the abstract schema type of the related entity. An embedded_class_state_field is designated by the name of an entity-state field that corresponds to an embedded class. Navigation to a related entity results in a value of the related entity's abstract schema type.
BNF: state_field_path_expression ::= {identification_variable | single_valued_association_path_expression}.state_field
BNF: single_valued_association_path_expression ::= identification_variable.{single_valued_association_field.}*single_valued_association_field
Author
Pascal Filion
Since
2.3
Version
2.4

Constructor Summary

AccessConstructor and Description
public
StateFieldPathExpression(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 StateFieldPathExpression.

public
StateFieldPathExpression(AbstractExpression
The parent of this expression
parent
,
String
The path expression that is following the identification variable
paths
)

Creates a new StateFieldPathExpression.

public
StateFieldPathExpression(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 StateFieldPathExpression.

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

StateFieldPathExpressionback to summary
public StateFieldPathExpression(AbstractExpression parent, AbstractExpression expression)

Creates a new StateFieldPathExpression.

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

StateFieldPathExpressionback to summary
public StateFieldPathExpression(AbstractExpression parent, String paths)

Creates a new StateFieldPathExpression.

Parameters
parent:AbstractExpression

The parent of this expression

paths:String

The path expression that is following the identification variable

StateFieldPathExpressionback to summary
public StateFieldPathExpression(AbstractExpression parent, AbstractExpression expression, String paths)

Creates a new StateFieldPathExpression.

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

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