Class DefaultJPQLQueryContext
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext
-
- org.eclipse.persistence.jpa.jpql.tools.DefaultJPQLQueryContext
-
public class DefaultJPQLQueryContext extends JPQLQueryContext
This context is used to store information related to the JPQL query.
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 DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)Creates a newDefaultJPQLQueryContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultJPQLQueryContextgetParent()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
-
DefaultJPQLQueryContext
public DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)
Creates a newDefaultJPQLQueryContext.
-
-
Method Detail
-
getParent
public DefaultJPQLQueryContext 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
-
-