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);
| Access | Constructor and Description |
|---|---|
| public | EclipseLinkJPQLQueryContext(JPQLGrammar
The grammar that defines how to parse a JPQL query jpqlGrammar)Creates a new |
| protected | EclipseLinkJPQLQueryContext(JPQLQueryContext
The parent context parent, Expression The parsed tree representation of the subquery currentQuery)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected DeclarationResolver | |
| protected JPQLQueryContext | buildJPQLQueryContext(JPQLQueryContext currentContext, Expression currentQuery)
Implements abstract org. |
| protected LiteralVisitor | |
| protected EclipseLinkParameterTypeVisitor | |
| protected ResolverBuilder | |
| public EclipseLinkJPQLQueryContext | getParent()
Overrides org. |
| EclipseLinkJPQLQueryContext | back to summary |
|---|---|
| public EclipseLinkJPQLQueryContext(JPQLGrammar jpqlGrammar) Creates a new
| |
| EclipseLinkJPQLQueryContext | back to summary |
|---|---|
| protected EclipseLinkJPQLQueryContext(JPQLQueryContext parent, Expression currentQuery) Creates a new
| |
| buildDeclarationResolver | back to summary |
|---|---|
| protected DeclarationResolver buildDeclarationResolver(DeclarationResolver parent) Overrides org.
| |
| buildJPQLQueryContext | back to summary |
|---|---|
| protected JPQLQueryContext buildJPQLQueryContext(JPQLQueryContext currentContext, Expression currentQuery) Implements abstract org.
| |
| buildLiteralVisitor | back to summary |
|---|---|
| protected LiteralVisitor buildLiteralVisitor() Implements abstract org.
| |
| buildParameterTypeVisitor | back to summary |
|---|---|
| protected EclipseLinkParameterTypeVisitor buildParameterTypeVisitor() Implements abstract org.
| |
| buildResolverBuilder | back to summary |
|---|---|
| protected ResolverBuilder buildResolverBuilder() Implements abstract org.
| |
| getParent | back to summary |
|---|---|
| public EclipseLinkJPQLQueryContext getParent() Overrides org. Doc from org. Returns the parent context if the current context is not the root context.
| |