record = db.getNextRecord(record);
System.out.println("Next record pointer: " + record);
ArgListEntry[] arglist = new ArgListEntry[1];
arglist[0] = new ArgListEntry(0, db.COND_GREATER, 50);
Query query = db.makeQuery(arglist);
record = db.fetchQuery(query);
while(record != null) {
System.out.println("Fetched record: " + record.pointer);
System.out.println("Get field 0 value: " + db.getIntFieldValue(record, 0));