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); } }
queryExpression = addNonFetchJoinedAttribute(expression, identificationVariable);
queryExpression = addNonFetchJoinedAttribute(expression, identificationVariable);
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); } }
/** * {@inheritDoc} */ @Override public void visit(RangeVariableDeclaration expression) { baseExpression = addNonFetchJoinedAttribute( expression, (IdentificationVariable) expression.getIdentificationVariable() ); }
/** * {@inheritDoc} */ @Override public void visit(CollectionMemberDeclaration expression) { addNonFetchJoinedAttribute( expression, (IdentificationVariable) expression.getIdentificationVariable() ); }
/** * {@inheritDoc} */ @Override public void visit(CollectionMemberDeclaration expression) { addNonFetchJoinedAttribute( expression, (IdentificationVariable) expression.getIdentificationVariable() ); }
/** * {@inheritDoc} */ @Override public void visit(RangeVariableDeclaration expression) { baseExpression = addNonFetchJoinedAttribute( expression, (IdentificationVariable) expression.getIdentificationVariable() ); }