AW: [OJB-developers] superflous CriteriaException
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2001-11-14 18:25:13
|
Hi all, > -----Urspr=FCngliche Nachricht----- > Von: Bischof, Rainer [mailto:rai...@ed...] > Gesendet: Dienstag, 13. November 2001 22:09 >=20 > >This cleanup is already on the todo list. I will try to it without > >changes to the PersistenceBroker API.=20 > >I agree that it will be easier to do this myself than to=20 > delegate it and > >to reintegrate the results... >=20 > From my point of view API changes are justified if they lead=20 > to a better > useability. Especially these chnages only mean throwing=20 > Exceptions where > they haven't been thrown before. I know this leads to code changes in > existing applications but that's something we have to live=20 > with in order to > enhance reliability which should be the main focus. It's just=20 > that IMHO OJB > has a limited reliability if it just ignores Exceptions which arise > somewhere in the framework. >=20 I agree. All I wanted to say is: all PersistenceBroker methods are = already declared with throws clauses (PersistenceBrokerException or derived Exceptions). I will try to throw no other exceptions than these if possible, to = reduce modifications to client code. =20 > Another point - next feature request ;-) : > What about adding a method to the Broker which deletes=20 > objects that match a > query ( & again SQL statement). > Right now it's somewhat tedious to cycle through a collection=20 > and delete all > obecjts by hand. The broker can even optimize this if the descriptor > indicates that affected objects have no dependend objects it=20 > can directly > issue a delete statement without instantiating all objects=20 > (needs to clear > the cache for this class, though). >=20 OK, I will add this to the to-do list ! Thomas > Thanks, > rb >=20 > Rainer Bischof > EDS - Electronic Data Systems > European Automotive Solution Center - Distributed Solutions > Email: rai...@ed... >=20 > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers >=20 |