Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.tools

public Class DefaultJPQLQueryContext

extends JPQLQueryContext
Class Inheritance
Imports
org.eclipse.persistence.jpa.jpql.parser.Expression, .JPQLGrammar, org.eclipse.persistence.jpa.jpql.tools.resolver.DefaultResolverBuilder

This context is used to store information related to the JPQL query.
 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);
Author
Pascal Filion
Since
2.4
Version
2.4

Field Summary

Inherited from org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext:
currentContextparent

Constructor Summary

AccessConstructor and Description
public
DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)

Creates a new DefaultJPQLQueryContext.

protected
DefaultJPQLQueryContext(JPQLQueryContext
The parent context
parent
,
Expression
The parsed tree representation of the subquery
currentQuery
)

Creates a new sub-DefaultJPQLQueryContext.

Method Summary

Modifier and TypeMethod and Description
protected JPQLQueryContext
protected DefaultLiteralVisitor
protected DefaultParameterTypeVisitor
protected DefaultResolverBuilder
public DefaultJPQLQueryContext
getParent()

Overrides org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext.getParent.

Returns the parent context if the current context is not the root context.
Inherited from org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext:
buildDeclarationResolverbuildDeclarationResolverbuildInputParameterbuildQueryExpressionVisitorconvertUnqualifiedDeclarationdisposedisposeSubqueryContextfindInputParametersgetActualCurrentQuerygetActualDeclarationResolvergetCurrentContextgetCurrentQuerygetDeclarationgetDeclarationResolvergetDeclarationResolvergetDeclarationResolverImpgetDeclarationsgetEnumTypegetExpressionRegistrygetGrammargetInputParameterVisitorgetJPAVersiongetJPQLExpressiongetJPQLQuerygetLiteralVisitorgetMappinggetParameterTypegetParameterTypeVisitorgetProvidergetProviderVersiongetQuerygetQueryExpressiongetQueryExpressionVisitorgetResolvergetResolvergetResolverBuildergetResultVariablesgetTypegetTypegetTypegetTypeDeclarationgetTypeHelpergetTypeRepositoryhasJoinsinitializeinitializeRootisCollectionIdentificationVariableisRangeIdentificationVariableisResultVariableisSubqueryisTolerantliteralnewSubqueryContextsetJPQLExpressionsetQuerysetTolerantstoretoString

Constructor Detail

DefaultJPQLQueryContextback to summary
public DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)

Creates a new DefaultJPQLQueryContext.

DefaultJPQLQueryContextback to summary
protected DefaultJPQLQueryContext(JPQLQueryContext parent, Expression currentQuery)

Creates a new sub-DefaultJPQLQueryContext.

Parameters
parent:JPQLQueryContext

The parent context

currentQuery:Expression

The parsed tree representation of the subquery

Method Detail

buildJPQLQueryContextback to summary
protected JPQLQueryContext buildJPQLQueryContext(JPQLQueryContext currentContext, Expression currentQuery)

Implements abstract org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext.buildJPQLQueryContext.

Annotations
@Override
buildLiteralVisitorback to summary
protected DefaultLiteralVisitor buildLiteralVisitor()

Implements abstract org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext.buildLiteralVisitor.

Annotations
@Override
buildParameterTypeVisitorback to summary
protected DefaultParameterTypeVisitor buildParameterTypeVisitor()

Implements abstract org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext.buildParameterTypeVisitor.

Annotations
@Override
buildResolverBuilderback to summary
protected DefaultResolverBuilder buildResolverBuilder()

Implements abstract org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext.buildResolverBuilder.

Annotations
@Override
getParentback to summary
public DefaultJPQLQueryContext getParent()

Overrides org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext.getParent.

Doc from org.eclipse.persistence.jpa.jpql.tools.JPQLQueryContext.getParent.

Returns the parent context if the current context is not the root context.

Returns:DefaultJPQLQueryContext

The parent context or null if the current context is the root

Annotations
@Override