Class EclipseLinkJPQLQueryContext


  • public class EclipseLinkJPQLQueryContext
    extends JPQLQueryContext
    This context is used to store information related to the JPQL query. It supports the EclipseLink extension over the default JPQL grammar.
     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);
    Since:
    2.4
    Version:
    2.4
    Author:
    Pascal Filion
    • Constructor Detail

      • EclipseLinkJPQLQueryContext

        public EclipseLinkJPQLQueryContext​(JPQLGrammar jpqlGrammar)
        Creates a new EclipseLinkJPQLQueryContext.
        Parameters:
        jpqlGrammar - The grammar that defines how to parse a JPQL query