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

public final Class SimpleSelectStatement

extends AbstractSelectStatement
Class Inheritance

BNFL subquery ::= simple_select_clause subquery_from_clause [where_clause] [groupby_clause] [having_clause]
Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

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

Creates a new SimpleSelectStatement.

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.
protected SimpleFromClause
buildFromClause()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.buildFromClause.

Creates the expression representing the from clause of this select statement.
protected SimpleSelectClause
buildSelectClause()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.buildSelectClause.

Creates the expression representing the select clause of this select statement.
public JPQLQueryBNF
protected boolean
shouldManageSpaceAfterClause()

Overrides org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.shouldManageSpaceAfterClause.

Determines whether the whitespace following the HAVING clause should be managed by this expression or not.
Inherited from org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement:
acceptChildrenaddChildrenToaddOrderedChildrenTofindQueryBNFgetFromClausegetGroupByClausegetHavingClausegetSelectClausegetWhereClausehasFromClausehasGroupByClausehasHavingClausehasSelectClausehasSpaceAfterFromhasSpaceAfterGroupByhasSpaceAfterSelecthasSpaceAfterWherehasWhereClauseparsetoParsedText

Constructor Detail

SimpleSelectStatementback to summary
public SimpleSelectStatement(AbstractExpression parent)

Creates a new SimpleSelectStatement.

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
buildFromClauseback to summary
protected SimpleFromClause buildFromClause()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.buildFromClause.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.buildFromClause.

Creates the expression representing the from clause of this select statement.

Returns:SimpleFromClause

A new from clause, null can't be returned

Annotations
@Override
buildSelectClauseback to summary
protected SimpleSelectClause buildSelectClause()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.buildSelectClause.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.buildSelectClause.

Creates the expression representing the select clause of this select statement.

Returns:SimpleSelectClause

A new from clause, null can't be returned

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
shouldManageSpaceAfterClauseback to summary
protected boolean shouldManageSpaceAfterClause()

Overrides org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.shouldManageSpaceAfterClause.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractSelectStatement.shouldManageSpaceAfterClause.

Determines whether the whitespace following the HAVING clause should be managed by this expression or not.

Returns:boolean

true by default to keep the whitespace part of this expression; false to let the parent handle it

Annotations
@Override