Query q2 = gtm.query(Disc.class);
q2.constrain("DTITLE", OP.STARTS_WITH, FUNCTION.TO_UPPER, searchFor);
q2.constrain("DTITLE", OP.CONTAINS, FUNCTION.TO_UPPER, "live");
q2.constrain("DYEAR", OP.RANGE, 2000, 2002);
q2.constrain("DGENRE", OP.EQUALS, FUNCTION.TO_UPPER, "BLUES");
discs = q2.execute();
Iterator<Disc> iter = discs.iterator();
while (iter.hasNext()) {
Disc disc = iter.next();
System.out.println(disc);