public class DefaultJPQLQueryContext extends JPQLQueryContext
IQuery externalQuery = ...;
JPQLQueryContext context = new JPQLQueryContext(DefaultJPQLGrammar.instance());
context.setQuery(query);
If the JPQL query is already parsed, then the context can use it and it needs to be set before
setting the IQuery:
JPQLExpression jpqlExpression = ...;
JPQLQueryContext context = new JPQLQueryContext(DefaultJPQLGrammar.instance());
context.setJPQLExpression(jpqlExpression);
context.setQuery(query);| Constructor and Description |
|---|
DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)
Creates a new
DefaultJPQLQueryContext. |
| Modifier and Type | Method and Description |
|---|---|
DefaultJPQLQueryContext |
getParent()
Returns the parent context if the current context is not the root context.
|
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, toStringpublic DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)
DefaultJPQLQueryContext.public DefaultJPQLQueryContext getParent()
getParent in class JPQLQueryContextnull if the current context is the rootEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference