Daniel --

Take a look at the getCount(Query) method that's defined in the
PersistenceBroker interface.  It should provide the functionality you're
looking for.

Ron Gallagher
Atlanta, GA
[EMAIL PROTECTED]


-----Original Message-----
From: Daniel R. Ambrosio [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 4:56 PM
To: OJB Users List
Subject: Smart Count


Hello everyone,

What would be the smarter way to do a count on an entity based on a
criteria?

I believe that getting the Collection (using getCollectionByQuery()) and
then size() is not the best way to that using OJB is it?

Cheers,
Dani


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to