示例#1
0
 /** Calculates the index of the where clause ColumnRefs */
 private void calculateWhereClauseColumnRefIndexes() {
   // calculate where clause column ref indexes
   // NOTE, the sqlstore processes the constraints in reverse order,
   // so start with the last index and decrement
   int nextIndex = columns.size() + columnRefsForWhereClause.size();
   for (Iterator i = columnRefsForWhereClause.iterator(); i.hasNext(); ) {
     ColumnRef columnRef = (ColumnRef) i.next();
     columnRef.setIndex(nextIndex--);
   }
 }