> As the new return type for the XPathQueryService.query() method I'm 
> considering adding a ResourceSet. This has been requested by several 
> people to have more flexibility in handling the results. This would be 
> part of the base package.
> 
>     interface ResourceSet {
>        ResourceIterator getIterator() raises (XMLDBException);
>        Resource getResource(in long index) raises (XMLDBException);
>        long getSize() raises (XMLDBException);
>        void addResource(in Resource res) raises (XMLDBException);
>        void clear() raises (XMLDBException);
>        void removeResource(in Resource res) raises (XMLDBException);
>     }

Yes, why not? As long as the ResourceIterator still provides the
possibility to retrieve Resources before the whole resultset has been
transferred to the client. I think the methods "getRecource", "getSize"
etc. will have to block until all results have been transferred. Right?

A cool side effect of this will be that listResources() in Collection
will then probably return a ResourceSet, too, so I will have a
ResourceIterator there.

Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch

----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to