db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <to...@first.fhg.de>
Subject Re: [OJB 1.1] Criteria API Change
Date Thu, 08 Jul 2004 06:19:42 GMT
Brian McCallister wrote:

> I would like to add change all of the various "Criteria.add*(..): void" 
> methods to return a Criteria instance, the same one called against. This 
> will allow chaining criteria calls a la:
> criteria = criteria.addEqualTo("foo", foo).addGreaterThan("bar", 
> bar).addLike("baz", baz);
> This will break drop-in jar replacement without a recompile, but will 
> work fine with a recompile on existing code as they all return void now.

This looks pretty close to the SODA Api then, except that you have add 
prefixes and you add at the criteria (which looks somewhat strange to 
me) instead of the query ?


To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org

View raw message