Guys,
I would like to be able to count(*) the number of results from a Criteria query, without executing the query. I know there is a patch available to add count(), but I'd prefer to not go that route.
What might be nice is to be able to build the Critera, and then return the query is would use as a string. Then, I could simply string replace the SELECT FIELD1, FIELD2, etc, with SELECT count(*), then manually execute the Query.
Is there any way to do this? I've looked at the API docs and it doesn't look promising, but I hope one of you might be able to prove me wrong.
Thanks for the help!
Jbwiv
|