Re: Smart Count
Hi Olli, Thanks a lot! That´s exactly what I needed! :) Cheers [EMAIL PROTECTED] wrote: Hello Daniel, -Original Message- From: Daniel R. Ambrosio [mailto:[EMAIL PROTECTED] 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? try PersistenceBroker.getCount(Query) HTH, Olli - 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]
RE: Smart Count
Hello Daniel, -Original Message- From: Daniel R. Ambrosio [mailto:[EMAIL PROTECTED] 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? try PersistenceBroker.getCount(Query) HTH, Olli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]