Module org.eclipse.persistence.core
Class JPQLParseTree
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.ParseTree
org.eclipse.persistence.internal.jpa.parsing.JPQLParseTree
INTERNAL
Purpose: 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildContext
(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.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
-
Constructor Details
-
JPQLParseTree
public JPQLParseTree()EJBQLParseTree constructor comment.
-
-
Method Details
-
buildContext
INTERNAL Build the context to be used when generating the expression from the parse tree -
populateSubquery
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
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.
-