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

public final Class FromClause

extends AbstractFromClause
Class Inheritance

The FROM clause of a query defines the domain of the query by declaring identification variables. An identification variable is an identifier declared in the FROM clause of a query. The domain of the query may be constrained by path expressions. Identification variables designate instances of a particular entity abstract schema type. The FROM clause can contain multiple identification variable declarations separated by a comma (,).

JPA 1.0, 2.0, 2.1, EclipseLink 1.0 - 2.4:

BNF: from_clause ::= FROM identification_variable_declaration {, {identification_variable_declaration | collection_member_declaration}}*
EclipseLink 2.5:
BNF: from_clause ::= FROM identification_variable_declaration {, {identification_variable_declaration | collection_member_declaration}}* [hierarchical_query_clause] [asof_clause]
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

AccessConstructor and Description
public
FromClause(AbstractExpression
The parent of this expression
parent
)

Creates a new FromClause.

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 String
getDeclarationQueryBNFId()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractFromClause.getDeclarationQueryBNFId.

Returns the BNF of the declaration part of this clause.
public JPQLQueryBNF
Inherited from org.eclipse.persistence.jpa.jpql.parser.AbstractFromClause:
acceptChildrenaddChildrenToaddOrderedChildrenTobuildCollectionExpressionfindQueryBNFgetActualIdentifiergetAsOfClausegetDeclarationgetHierarchicalQueryClausehasAsOfClausehasDeclarationhasHierarchicalQueryClausehasSpaceAfterDeclarationhasSpaceAfterFromhasSpaceAfterHierarchicalQueryClauseisParsingCompleteparseshouldParseWithFactoryFirsttoParsedText

Constructor Detail

FromClauseback to summary
public FromClause(AbstractExpression parent)

Creates a new FromClause.

Parameters
parent:AbstractExpression

The parent of this 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
getDeclarationQueryBNFIdback to summary
public String getDeclarationQueryBNFId()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractFromClause.getDeclarationQueryBNFId.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractFromClause.getDeclarationQueryBNFId.

Returns the BNF of the declaration part of this clause.

Returns:String

The BNF of the declaration part of this clause

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