db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: [OJB 1.1] Criteria API Change
Date Thu, 08 Jul 2004 15:58:07 GMT
hi thomas,

adding to the criteria provides more flexibiltity than adding to the query.
you can ie. 'or' two criteria or you can negate a whole criteria.

jakob

Thomas Dudziak wrote:

> 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 ?
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 

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


Mime
View raw message