db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <mccallis...@forthillcompany.com>
Subject [OJB 1.1] Criteria API Change
Date Thu, 08 Jul 2004 02:30:22 GMT
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.

-brian



---------------------------------------------------------------------
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