theQuery.setExpressionBuilder(builder); generationContext.setBaseExpression(variable, baseExpression); theQuery.setExpressionBuilder(baseExpression.getBuilder());
theQuery.setExpressionBuilder(builder); theQuery.setExpressionBuilder(new ExpressionBuilder(baseClass));
theQuery.setExpressionBuilder(builder); generationContext.setBaseExpression(variable, baseExpression); theQuery.setExpressionBuilder(baseExpression.getBuilder());
query.setExpressionBuilder(list.get(0).getBuilder()); query.addJoinedAttribute(fetch); query.setExpressionBuilder(((InternalSelection)selection).getCurrentNode().getBuilder()); List<org.eclipse.persistence.expressions.Expression> list = ((FromImpl) this.roots.iterator().next()).findJoinFetches(); if (!list.isEmpty()) { query.setExpressionBuilder(list.get(0).getBuilder()); // set the builder to one of the fetches bases. query.setExpressionBuilder(this.selection.currentNode.getBuilder()); for (Root root : this.getRoots()){ if (root.getJavaType().equals(this.queryType)){ query.setExpressionBuilder(((RootImpl) root).getCurrentNode().getBuilder()); break;
void visitAbstractFromClause(AbstractFromClause expression) { // Set the ExpressionBuilder Expression baseExpression = queryContext.getBaseExpression(); ExpressionBuilder expressionBuilder = baseExpression.getBuilder(); query.setExpressionBuilder(expressionBuilder); // Set the reference class if it's not set if (query.getReferenceClass() == null) { query.setReferenceClass(expressionBuilder.getQueryClass()); query.changeDescriptor(queryContext.getSession()); } // Add join expressions to the query (but not the join fetch expressions) JoinVisitor visitor = new JoinVisitor(); expression.accept(visitor); // Visit the AS OF clause if (expression.hasAsOfClause()) { expression.getAsOfClause().accept(this); } // Visit the hierarchical clause if (expression.hasHierarchicalQueryClause()) { expression.getHierarchicalQueryClause().accept(this); } }
void visitAbstractFromClause(AbstractFromClause expression) { // Set the ExpressionBuilder Expression baseExpression = queryContext.getBaseExpression(); ExpressionBuilder expressionBuilder = baseExpression.getBuilder(); query.setExpressionBuilder(expressionBuilder); // Set the reference class if it's not set if (query.getReferenceClass() == null) { query.setReferenceClass(expressionBuilder.getQueryClass()); query.changeDescriptor(queryContext.getSession()); } // Add join expressions to the query (but not the join fetch expressions) JoinVisitor visitor = new JoinVisitor(); expression.accept(visitor); // Visit the AS OF clause if (expression.hasAsOfClause()) { expression.getAsOfClause().accept(this); } // Visit the hierarchical clause if (expression.hasHierarchicalQueryClause()) { expression.getHierarchicalQueryClause().accept(this); } }