Let's merge these ideas...
What about function
doGroupSelect(Criteria criteria, String function) ?
Usage could work like this:
Criteria criteria = new Criteria().add(SomePeer.SomeField,"value");
BasePeer.doGroupSelect(criteria,"count") or
BasePeer.doGroupSelect(criteria,Criteria.COUNT)
And behavior:
similar to doSelect but query string generated by this method
looks like this:
select count(table.somefield) from table where table.somefield=value
i.e. - we wrap all fields from Criteria by count(...) function
This is also solution for MAX,MIN etc.
Oskar
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]