public static Iterator allocateResultSetIterator(edu.isi.sdbc.Connection connection, LogicObject relation, String sqlstatement) {
    { AllPurposeIterator self000 = AllPurposeIterator.newAllPurposeIterator();

      self000.iteratorNestedIterator = edu.isi.sdbc.Connection.getResultSet(connection, sqlstatement, Stella.NIL);
      self000.iteratorObject = relation;
      self000.iteratorSecondObject = RDBMS.getRelationTableInfo(((NamedDescription)(relation)));
      self000.iteratorNextCode = Native.find_java_method("edu.isi.powerloom.rdbms.RDBMS", "resultSetIteratorNextP", new java.lang.Class [] {Native.find_java_class("edu.isi.stella.AllPurposeIterator")});
      { AllPurposeIterator value000 = self000;

        return (value000);
      }
    }
  }