Class EclipseLinkJPQLQueryContext
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext
-
- org.eclipse.persistence.jpa.jpql.tools.EclipseLinkJPQLQueryContext
-
public class EclipseLinkJPQLQueryContext extends JPQLQueryContext
This context is used to store information related to the JPQL query. It supports the EclipseLink extension over the default JPQL grammar.
If the JPQL query is already parsed, then the context can use it and it needs to be set before setting theIQueryexternalQuery = ...; JPQLQueryContext context = new JPQLQueryContext(DefaultJPQLGrammar.instance()); context.setQuery(query);IQuery:JPQLExpressionjpqlExpression = ...; JPQLQueryContext context = new JPQLQueryContext(DefaultJPQLGrammar.instance()); context.setJPQLExpression(jpqlExpression); context.setQuery(query);- Since:
- 2.4
- Version:
- 2.4
- Author:
- Pascal Filion
-
-
Constructor Summary
Constructors Constructor Description EclipseLinkJPQLQueryContext(JPQLGrammar jpqlGrammar)Creates a newEclipseLinkJPQLQueryContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EclipseLinkJPQLQueryContextgetParent()Returns the parent context if the current context is not the root context.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext
convertUnqualifiedDeclaration, dispose, disposeSubqueryContext, findInputParameters, getActualCurrentQuery, getActualDeclarationResolver, getCurrentContext, getCurrentQuery, getDeclaration, getDeclarationResolver, getDeclarationResolver, getDeclarations, getEnumType, getExpressionRegistry, getGrammar, getJPAVersion, getJPQLExpression, getJPQLQuery, getMapping, getParameterType, getProvider, getProviderVersion, getQuery, getQueryExpression, getResolver, getResolver, getResultVariables, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, hasJoins, isCollectionIdentificationVariable, isRangeIdentificationVariable, isResultVariable, isSubquery, isTolerant, literal, newSubqueryContext, setJPQLExpression, setQuery, setTolerant, toString
-
-
-
-
Constructor Detail
-
EclipseLinkJPQLQueryContext
public EclipseLinkJPQLQueryContext(JPQLGrammar jpqlGrammar)
Creates a newEclipseLinkJPQLQueryContext.- Parameters:
jpqlGrammar- The grammar that defines how to parse a JPQL query
-
-
Method Detail
-
getParent
public EclipseLinkJPQLQueryContext getParent()
Returns the parent context if the current context is not the root context.- Overrides:
getParentin classJPQLQueryContext- Returns:
- The parent context or
nullif the current context is the root
-
-