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: PagingIterator: not really a scrollcursor!
Date Thu, 18 Dec 2003 16:04:05 GMT
hi all,

sounds reasonable.


Martin Kalén wrote:
> Gelhar, Wallace Joseph wrote:
>> Perhaps if you intend to guarantee that all Iteraters returned by the 
>> PB are OJBIterators, the getIterator...() methods should have a return 
>> type of OJBIterator.  This allows me as an application programmer to 
>> program to the OJBIterator Interface without concern of the OJB 
>> internals changing the type of the Iterator returned.  OJBIterator 
>> still implements Iterator so it does not break binary compatibility 
>> with legacy code.
> I like this a lot!
> It's a bit shaky to a cast to OJBIterator to get access to e.g. 
> releaseDbResources. It would feel much "safer" if the OJB PB-API could 
> promise that each concrete iterator returned would in fact be 
> implementing the OJBIterator interface.
> (And it would prevent anyone from adding a new Iterator that didn't.)
> Just my 5 SEK... ;-)
>  /Martin

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

View raw message