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

public Class JPQLParseTree

extends ParseTree
Class Inheritance
Imports
org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.queries.DatabaseQuery, .DeleteAllQuery, .ModifyAllQuery, .ObjectLevelReadQuery, .ReadQuery, .UpdateAllQuery

INTERNAL

Purpose: This represents an EJBQL parse tre

Responsibilities:

Author
Jon Driscoll and Joel Lucuik
Since
TopLink 4.0

Constructor Summary

AccessConstructor and Description
public
JPQLParseTree()

EJBQLParseTree constructor comment.

Method Summary

Modifier and TypeMethod and Description
public GenerationContext
buildContext(ReadQuery readQuery, AbstractSession session)

INTERNAL Build the context to be used when generating the expression from the parse tree

private GenerationContext
buildSubqueryContext(ReadQuery readQuery, GenerationContext outer)

INTERNAL Build the context to be used when generating the expression from the subquery parse tree.

private void
public void
populateQuery(DatabaseQuery
The query to populate
query
,
AbstractSession
The session to use to information such as descriptors.
session
)

Add all of the relevant query settings from an EJBQLParseTree to the given database query.

private void
public GenerationContext

Returns:

the GenerationContext for the subquery
populateSubquery
(ObjectLevelReadQuery
The query to populate
readQuery
,
GenerationContext
the GenerationContext of the outer EJBQL query.
outer
)

Add all of the relevant query settings from an EJBQLParseTree to the given database query.

Inherited from org.eclipse.persistence.internal.jpa.parsing.ParseTree:
addGroupingToQueryaddHavingToQueryaddNonFetchJoinAttributesaddOrderingToQueryaddParametersToQueryaddUpdatesToQueryadjustReferenceClassForQueryapplyQueryNodeToQuerybuildContextbuildContextForReadQuerycreateDatabaseQuerygenerateExpressiongetClassLoadergetContextgetDistinctStategetFromNodegetGroupByNodegetHavingNodegetOrderByNodegetQueryNodegetReferenceClassgetSetNodegetWhereNodehasGroupByhasHavinghasOrderByinitBaseExpressioninitBaseExpressionqualifyAttributeAccesssetClassLoadersetContextsetDistinctStatesetFromNodesetGroupByNodesetHavingNodesetOrderByNodesetQueryNodesetSelectionCriteriaForQuerysetSetNodesetWhereNodetoStringusesDistinctvalidatevalidatevalidateverifySelect

Constructor Detail

JPQLParseTreeback to summary
public JPQLParseTree()

EJBQLParseTree constructor comment.

Method Detail

buildContextback to summary
public GenerationContext buildContext(ReadQuery readQuery, AbstractSession session)

INTERNAL Build the context to be used when generating the expression from the parse tree

buildSubqueryContextback to summary
private GenerationContext buildSubqueryContext(ReadQuery readQuery, GenerationContext outer)

INTERNAL Build the context to be used when generating the expression from the subquery parse tree.

populateModifyQueryInternalback to summary
private void populateModifyQueryInternal(ModifyAllQuery query, GenerationContext generationContext)
populateQueryback to summary
public void populateQuery(DatabaseQuery query, AbstractSession session)

Add all of the relevant query settings from an EJBQLParseTree to the given database query.

Parameters
query:DatabaseQuery

The query to populate

session:AbstractSession

The session to use to information such as descriptors.

populateReadQueryInternalback to summary
private void populateReadQueryInternal(ObjectLevelReadQuery objectQuery, GenerationContext generationContext)
populateSubqueryback to summary
public GenerationContext populateSubquery(ObjectLevelReadQuery readQuery, GenerationContext outer)

Add all of the relevant query settings from an EJBQLParseTree to the given database query.

Parameters
readQuery:ObjectLevelReadQuery

The query to populate

outer:GenerationContext

the GenerationContext of the outer EJBQL query.

Returns:GenerationContext

the GenerationContext for the subquery