public class EclipseLinkJPQLQueryContext 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);JPQLQueryContext.InputParameterVisitor, JPQLQueryContext.QueryExpressionVisitorcurrentContext, parent| Modifier | Constructor and Description |
|---|---|
|
EclipseLinkJPQLQueryContext(JPQLGrammar jpqlGrammar)
Creates a new
EclipseLinkJPQLQueryContext. |
protected |
EclipseLinkJPQLQueryContext(JPQLQueryContext parent,
Expression currentQuery)
Creates a new
EclipseLinkJPQLQueryContext. |
| Modifier and Type | Method and Description |
|---|---|
protected DeclarationResolver |
buildDeclarationResolver(DeclarationResolver parent) |
protected JPQLQueryContext |
buildJPQLQueryContext(JPQLQueryContext currentContext,
Expression currentQuery) |
protected LiteralVisitor |
buildLiteralVisitor() |
protected EclipseLinkParameterTypeVisitor |
buildParameterTypeVisitor() |
protected ResolverBuilder |
buildResolverBuilder() |
EclipseLinkJPQLQueryContext |
getParent()
Returns the parent context if the current context is not the root context.
|
buildDeclarationResolver, buildInputParameter, buildQueryExpressionVisitor, convertUnqualifiedDeclaration, dispose, disposeSubqueryContext, findInputParameters, getActualCurrentQuery, getActualDeclarationResolver, getCurrentContext, getCurrentQuery, getDeclaration, getDeclarationResolver, getDeclarationResolver, getDeclarationResolverImp, getDeclarations, getEnumType, getExpressionRegistry, getGrammar, getInputParameterVisitor, getJPAVersion, getJPQLExpression, getJPQLQuery, getLiteralVisitor, getMapping, getParameterType, getParameterTypeVisitor, getProvider, getProviderVersion, getQuery, getQueryExpression, getQueryExpressionVisitor, getResolver, getResolver, getResolverBuilder, getResultVariables, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, hasJoins, initialize, initializeRoot, isCollectionIdentificationVariable, isRangeIdentificationVariable, isResultVariable, isSubquery, isTolerant, literal, newSubqueryContext, setJPQLExpression, setQuery, setTolerant, store, toStringpublic EclipseLinkJPQLQueryContext(JPQLGrammar jpqlGrammar)
EclipseLinkJPQLQueryContext.jpqlGrammar - The grammar that defines how to parse a JPQL queryprotected EclipseLinkJPQLQueryContext(JPQLQueryContext parent, Expression currentQuery)
EclipseLinkJPQLQueryContext.parent - The parent contextcurrentQuery - The parsed tree representation of the subqueryprotected DeclarationResolver buildDeclarationResolver(DeclarationResolver parent)
buildDeclarationResolver in class JPQLQueryContextprotected JPQLQueryContext buildJPQLQueryContext(JPQLQueryContext currentContext, Expression currentQuery)
buildJPQLQueryContext in class JPQLQueryContextprotected LiteralVisitor buildLiteralVisitor()
buildLiteralVisitor in class JPQLQueryContextprotected EclipseLinkParameterTypeVisitor buildParameterTypeVisitor()
buildParameterTypeVisitor in class JPQLQueryContextprotected ResolverBuilder buildResolverBuilder()
buildResolverBuilder in class JPQLQueryContextpublic EclipseLinkJPQLQueryContext getParent()
getParent in class JPQLQueryContextnull if the current context is the root