code: private int indexForColumnName(String name) {
          final Integer index = rs.getColumnNames().get(name);
          if (index == null) { return -1; }
          return ((missingColumns & (1 << index.intValue())) == 0) ? index.intValue() : -1;
      }
docs: - (NSInteger) indexForColumnName: (NSString*)name