public BaseIndexInfo(T table, final List<? extends Expression> projectedCols, final Criteria condition, OrderBy orderBy, boolean primary) { this.table = table; if (primary || this.table.getColumnMap().keySet().containsAll(projectedCols)) { covering = true; } if (table.getPkLength() > 0) { processCriteria(condition, primary); if (orderBy != null) { ordering = useIndexForOrderBy(orderBy); } } }
public BaseIndexInfo(T table, final List<? extends Expression> projectedCols, final Criteria condition, OrderBy orderBy, boolean primary) { this.table = table; if (primary || this.table.getColumnMap().keySet().containsAll(projectedCols)) { covering = true; } if (table.getPkLength() > 0) { processCriteria(condition, primary); if (orderBy != null) { ordering = useIndexForOrderBy(orderBy); } } }
public BaseIndexInfo(T table, final List<? extends Expression> projectedCols, final Criteria condition, OrderBy orderBy, boolean primary) { this.table = table; if (primary || this.table.getColumnMap().keySet().containsAll(projectedCols)) { covering = true; } if (table.getPkLength() > 0) { processCriteria(condition, primary); if (orderBy != null) { ordering = useIndexForOrderBy(orderBy); } } }
for (Iterator<Criteria> critIter = crits.iterator(); critIter.hasNext();) { Criteria criteria = critIter.next(); if (table.getColumnMap().keySet().containsAll(ElementCollectorVisitor.getElements(criteria, false))) { if (coveredCriteria == null) { coveredCriteria = new CompoundCriteria();
for (Iterator<Criteria> critIter = crits.iterator(); critIter.hasNext();) { Criteria criteria = critIter.next(); if (table.getColumnMap().keySet().containsAll(ElementCollectorVisitor.getElements(criteria, false))) { if (coveredCriteria == null) { coveredCriteria = new CompoundCriteria();
for (Iterator<Criteria> critIter = crits.iterator(); critIter.hasNext();) { Criteria criteria = critIter.next(); if (table.getColumnMap().keySet().containsAll(ElementCollectorVisitor.getElements(criteria, false))) { if (coveredCriteria == null) { coveredCriteria = new CompoundCriteria();