You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Anthony Carlos <an...@digitalphenom.com> on 2004/01/29 04:46:21 UTC
Easy question
I read the page on queries: http://db.apache.org/ojb/query.html#report
I noticed two kinds of queries. First, a QueryByCriteria:
Query q = QueryFactory.newQuery(Person.class, crit);
And second, a ReportQueryByCriteria:
ReportQueryByCriteria q =
QueryFactory.newReportQuery(ProductGroup.class, crit);
What's the difference between the two? After looking at 60+ messages in
the mail archive, I'm guessing that it's the fact that the
ReportQueryByCriteria allows the creation of summary/aggregate columns
such as max(), min(), avg(), ...
Am I right?
Also, shouldn't the example for ReportQueryByCriteria declare q as:
ReportQuery q = QueryFactory.newReportQuery(ProductGroup.class, crit);
// Use the ReportQuery interface instead of the ReportQueryByCriteria
class
Thanks for the help!
-Anthony
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org