.currentProcess();
try {
ResultSet rs = pst.executeQuery();
ArrayList<RsField> flds = Manager.getTypes(con).getOLFlds(pst);
long rownum = 0;
Record r = new Record();
boolean b;
if ((b = rs.next())) {
cur.regResourceName(true, "row@first");
do {
for (int i = 0; i < flds.size(); i++) {
RsField f = flds.get(i);
Object o = rs.getObject(f.FIELD_NAME);
if (o == null)
o = Null.NULL;
cur.regResourceName(o, "row." + f.FIELD_NAME);
r.setObject(f.FIELD_NAME, o);
}
cur.regResourceName(r, "row");
rownum = rownum + 1;
cur.regResourceName(rownum, "row@id");
b = rs.next();