EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class DefaultJPQLQueryContext

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.JPQLQueryContext
      extended by org.eclipse.persistence.jpa.jpql.DefaultJPQLQueryContext

public class DefaultJPQLQueryContext
extends JPQLQueryContext

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);

Version:
2.4
Author:
Pascal Filion
Since:
2.4

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.persistence.jpa.jpql.JPQLQueryContext
JPQLQueryContext.InputParameterVisitor, JPQLQueryContext.QueryExpressionVisitor
 
Field Summary
 
Fields inherited from class org.eclipse.persistence.jpa.jpql.JPQLQueryContext
currentContext, parent
 
Constructor Summary
  DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)
          Creates a new DefaultJPQLQueryContext.
protected DefaultJPQLQueryContext(JPQLQueryContext parent, Expression currentQuery)
          Creates a new sub-DefaultJPQLQueryContext.
 
Method Summary
protected  JPQLQueryContext buildJPQLQueryContext(JPQLQueryContext currentContext, Expression currentQuery)
          
protected  DefaultLiteralVisitor buildLiteralVisitor()
          
protected  DefaultParameterTypeVisitor buildParameterTypeVisitor()
          
protected  DefaultResolverBuilder buildResolverBuilder()
          
 DefaultJPQLQueryContext getParent()
          Returns the parent context if the current context is not the root context.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.JPQLQueryContext
buildDeclarationResolver, buildDeclarationResolver, buildInputParameter, buildQueryExpressionVisitor, convertUnqualifiedDeclaration, dispose, disposeSubqueryContext, findInputParameters, getActualCurrentQuery, getActualDeclarationResolver, getCurrentContext, getCurrentQuery, getDeclarationResolver, getDeclarationResolver, getDeclarationResolverImp, getDeclarations, getEnumType, getExpressionRegistry, getGrammar, getInputParameterVisitor, getJoins, getJPAVersion, getJPQLExpression, getJPQLQuery, getLiteralVisitor, getMapping, getParameterType, getParameterTypeVisitor, getProvider, getQuery, getQueryExpression, getQueryExpressionVisitor, getResolver, getResolver, getResolverBuilder, getResultVariables, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, hasJoins, initialize, initializeRoot, isCollectionIdentificationVariable, isRangeIdentificationVariable, isResultVariable, isSubquery, literal, newSubqueryContext, setJPQLExpression, setQuery, store, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultJPQLQueryContext

public DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)
Creates a new DefaultJPQLQueryContext.


DefaultJPQLQueryContext

protected DefaultJPQLQueryContext(JPQLQueryContext parent,
                                  Expression currentQuery)
Creates a new sub-DefaultJPQLQueryContext.

Parameters:
parent - The parent context
currentQuery - The parsed tree representation of the subquery
Method Detail

buildJPQLQueryContext

protected JPQLQueryContext buildJPQLQueryContext(JPQLQueryContext currentContext,
                                                 Expression currentQuery)

Specified by:
buildJPQLQueryContext in class JPQLQueryContext

buildLiteralVisitor

protected DefaultLiteralVisitor buildLiteralVisitor()

Specified by:
buildLiteralVisitor in class JPQLQueryContext

buildParameterTypeVisitor

protected DefaultParameterTypeVisitor buildParameterTypeVisitor()

Overrides:
buildParameterTypeVisitor in class JPQLQueryContext

buildResolverBuilder

protected DefaultResolverBuilder buildResolverBuilder()

Specified by:
buildResolverBuilder in class JPQLQueryContext

getParent

public DefaultJPQLQueryContext getParent()
Returns the parent context if the current context is not the root context.

Overrides:
getParent in class JPQLQueryContext
Returns:
The parent context or null if the current context is the root

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference