/** * Populates this object by scanning the JPQL query using the given JPQL grammar. * * @param jpqlGrammar The {@link JPQLGrammar} how the JPQL query is parsed */ void populate(JPQLGrammar jpqlGrammar) { JPQLQueryContext queryContext = new JPQLQueryContext(query, jpqlGrammar); ConstructorVisitor visitor = new ConstructorVisitor(queryContext); queryContext.getJPQLExpression().accept(visitor); }
/** * Populates this object by scanning the JPQL query using the given JPQL grammar. * * @param jpqlGrammar The {@link JPQLGrammar} how the JPQL query is parsed */ void populate(JPQLGrammar jpqlGrammar) { JPQLQueryContext queryContext = new JPQLQueryContext(query, jpqlGrammar); ConstructorVisitor visitor = new ConstructorVisitor(queryContext); queryContext.getJPQLExpression().accept(visitor); }