protected boolean indexAppliesTo( Or or ) { // the index has to apply to *all* parts of the OR constraint for it to be taken into account return indexAppliesTo(or.getConstraint1()) && indexAppliesTo(or.getConstraint2()); }
protected boolean indexAppliesTo( Or or ) { // the index has to apply to *all* parts of the OR constraint for it to be taken into account return indexAppliesTo(or.getConstraint1()) && indexAppliesTo(or.getConstraint2()); }
Or or = (Or)constraint; return new OrQuery( build(or.getConstraint1(), variables), build(or.getConstraint2(), variables));