Hi,
I used something like this:
ReportQueryByCriteria q = QueryFactory.newReportQuery(
tasksData.class, criteria);
// define the 'columns' of the report
q.setColumns(new String[] { "count(*)"});
Iterator iter = broker.getReportQueryIteratorByQuery(q);
Integer total = new Integer(0);
if (iter.hasNext()) {
Object[] arr = (Object[]) iter.next();
total = (Integer) arr[0];
if (total == null)
total = new Integer(0);
}
On Thu, 2003-07-10 at 09:44, Lopez Vellon, Ignacio wrote:
> Does anyone know how to perform select count(*) against a table in my database using
> OJB?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]