Class JPQLParseTree
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.ParseTree
-
- org.eclipse.persistence.internal.jpa.parsing.JPQLParseTree
-
public class JPQLParseTree extends ParseTree
INTERNALPurpose: This represents an EJBQL parse tre
Responsibilities:
- Maintain the context for the expression generation
- Build an initial expression
- Return a reference class for the expression
- Maintain the root node for the query
- Since:
- TopLink 4.0
- Author:
- Jon Driscoll and Joel Lucuik
-
-
Constructor Summary
Constructors Constructor Description JPQLParseTree()
EJBQLParseTree constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerationContext
buildContext(ReadQuery readQuery, AbstractSession session)
INTERNAL Build the context to be used when generating the expression from the parse treevoid
populateQuery(DatabaseQuery query, AbstractSession session)
Add all of the relevant query settings from an EJBQLParseTree to the given database query.GenerationContext
populateSubquery(ObjectLevelReadQuery readQuery, GenerationContext outer)
Add all of the relevant query settings from an EJBQLParseTree to the given database query.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.ParseTree
addGroupingToQuery, addHavingToQuery, addNonFetchJoinAttributes, addOrderingToQuery, addParametersToQuery, addUpdatesToQuery, adjustReferenceClassForQuery, applyQueryNodeToQuery, buildContext, buildContextForReadQuery, createDatabaseQuery, generateExpression, getClassLoader, getContext, getDistinctState, getFromNode, getGroupByNode, getHavingNode, getOrderByNode, getQueryNode, getReferenceClass, getSetNode, getWhereNode, hasGroupBy, hasHaving, hasOrderBy, initBaseExpression, initBaseExpression, qualifyAttributeAccess, setClassLoader, setContext, setDistinctState, setFromNode, setGroupByNode, setHavingNode, setOrderByNode, setQueryNode, setSelectionCriteriaForQuery, setSetNode, setWhereNode, toString, usesDistinct, validate, validate, validate, verifySelect
-
-
-
-
Method Detail
-
buildContext
public GenerationContext buildContext(ReadQuery readQuery, AbstractSession session)
INTERNAL Build the context to be used when generating the expression from the parse tree
-
populateSubquery
public GenerationContext populateSubquery(ObjectLevelReadQuery readQuery, GenerationContext outer)
Add all of the relevant query settings from an EJBQLParseTree to the given database query.- Parameters:
readQuery
- The query to populateouter
- the GenerationContext of the outer EJBQL query.- Returns:
- the GenerationContext for the subquery
-
populateQuery
public void populateQuery(DatabaseQuery query, AbstractSession session)
Add all of the relevant query settings from an EJBQLParseTree to the given database query.- Parameters:
query
- The query to populatesession
- The session to use to information such as descriptors.
-
-