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 | |
| protected | DefaultJPQLQueryContext(JPQLQueryContext
The parent context parent, Expression The parsed tree representation of the subquery currentQuery)Creates a new sub- |
| Modifier and Type | Method and Description |
|---|---|
| protected JPQLQueryContext | buildJPQLQueryContext(JPQLQueryContext currentContext, Expression currentQuery)
Implements abstract org. |
| protected DefaultLiteralVisitor | |
| protected DefaultParameterTypeVisitor | |
| protected DefaultResolverBuilder | |
| public DefaultJPQLQueryContext | getParent()
Overrides org. |
| DefaultJPQLQueryContext | back to summary |
|---|---|
| public DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar) Creates a new | |
| DefaultJPQLQueryContext | back to summary |
|---|---|
| protected DefaultJPQLQueryContext(JPQLQueryContext parent, Expression currentQuery) Creates a new sub-
| |
| buildJPQLQueryContext | back to summary |
|---|---|
| protected JPQLQueryContext buildJPQLQueryContext(JPQLQueryContext currentContext, Expression currentQuery) Implements abstract org.
| |
| buildLiteralVisitor | back to summary |
|---|---|
| protected DefaultLiteralVisitor buildLiteralVisitor() Implements abstract org.
| |
| buildParameterTypeVisitor | back to summary |
|---|---|
| protected DefaultParameterTypeVisitor buildParameterTypeVisitor() Implements abstract org.
| |
| buildResolverBuilder | back to summary |
|---|---|
| protected DefaultResolverBuilder buildResolverBuilder() Implements abstract org.
| |
| getParent | back to summary |
|---|---|
| public DefaultJPQLQueryContext getParent() Overrides org. Doc from org. Returns the parent context if the current context is not the root context.
| |