@Override public Collection<? extends javax.jcr.query.qom.StaticOperand> getValues() { return rightOperands(); }
@Override public Collection<? extends javax.jcr.query.qom.StaticOperand> getValues() { return rightOperands(); }
@Override public void visit( SetCriteria criteria ) { criteria.leftOperand().accept(this); append(" IN ("); Iterator<? extends StaticOperand> iter = criteria.rightOperands().iterator(); if (iter.hasNext()) { iter.next().accept(this); while (iter.hasNext()) { append(','); iter.next().accept(this); } } append(')'); }
@Override public void visit( SetCriteria criteria ) { criteria.leftOperand().accept(this); append(" IN ("); Iterator<? extends StaticOperand> iter = criteria.rightOperands().iterator(); if (iter.hasNext()) { iter.next().accept(this); while (iter.hasNext()) { append(','); iter.next().accept(this); } } append(')'); }
@Override public void visit( SetCriteria setCriteria ) { strategy.visit(setCriteria); enqueue(setCriteria.leftOperand()); for (StaticOperand right : setCriteria.rightOperands()) { enqueue(right); } visitNext(); }
@Override public void visit( SetCriteria setCriteria ) { strategy.visit(setCriteria); enqueue(setCriteria.leftOperand()); for (StaticOperand right : setCriteria.rightOperands()) { enqueue(right); } visitNext(); }
DynamicOperand newOperand = rewrite(context, operand); if (newOperand != operand) { return new SetCriteria(newOperand, set.rightOperands());
DynamicOperand newOperand = rewrite(context, operand); if (newOperand != operand) { return new SetCriteria(newOperand, set.rightOperands());
DynamicOperand newLhs = replaceReferencesToRemovedSource(context, lhs, rewrittenSelectors); if (lhs == newLhs) return constraint; return new SetCriteria(newLhs, criteria.rightOperands());
DynamicOperand newLhs = replaceReferencesToRemovedSource(context, lhs, rewrittenSelectors); if (lhs == newLhs) return constraint; return new SetCriteria(newLhs, criteria.rightOperands());
boolean foundSubquery = false; List<StaticOperand> newStaticOperands = new LinkedList<StaticOperand>(); for (StaticOperand rhs : criteria.rightOperands()) { StaticOperand newRhs = replaceSubqueriesWithBindVariables(context, rhs, subqueriesByVariableName); newStaticOperands.add(newRhs);
boolean foundSubquery = false; List<StaticOperand> newStaticOperands = new LinkedList<StaticOperand>(); for (StaticOperand rhs : criteria.rightOperands()) { StaticOperand newRhs = replaceSubqueriesWithBindVariables(context, rhs, subqueriesByVariableName); newStaticOperands.add(newRhs);
DynamicOperand lhs = replaceAliasesWithProperties(context, criteria.leftOperand(), propertyByAlias); if (lhs == criteria.leftOperand()) return criteria; return new SetCriteria(lhs, criteria.rightOperands());
DynamicOperand lhs = replaceAliasesWithProperties(context, criteria.leftOperand(), propertyByAlias); if (lhs == criteria.leftOperand()) return criteria; return new SetCriteria(lhs, criteria.rightOperands());
DynamicOperand operand = criteria.getOperand(); if (isPathOriented(operand)) { return new SetCriteria(operand, criteria.rightOperands());
DynamicOperand newLeft = replaceViewReferences(context, oldLeft, mapping, node); if (newLeft == oldLeft) return set; return new SetCriteria(newLeft, set.rightOperands());
DynamicOperand operand = criteria.getOperand(); if (isPathOriented(operand)) { return new SetCriteria(operand, criteria.rightOperands());
DynamicOperand newLeft = replaceViewReferences(context, oldLeft, mapping, node); if (newLeft == oldLeft) return set; return new SetCriteria(newLeft, set.rightOperands());