On Fri, 2002-08-09 at 16:30, Marcel Maatkamp wrote:
>         // virtual node -> real node
>         Enumeration e = tussenresults.elements();
>         while(e.hasMoreElements())
>             results.addElement( 
>this.parent.getNode(((MMObjectNode)e.nextElement()).getStringValue(type+".number")) );
> 
>         return results;
>     }
This can produce a lot of select * from the database. Maybe we should
change it to something like 
        return ((MMObjectBuilder)getModule(type)).search("where number in (" +
foundNumbers + ")"); ?

Or add a method 'List MMObjectBuilder::getNodes(List objectnumbers)',
where the getNodes will return MMObjectNodes of the type(subtype) of the
builder specified.

The MMObjectBuilder can decide how to handle the request on the builder
for the nodes. When a node is mentioned in the list and not in the
builder, i think it is valid to throw an exception.

-- 
Eduard Witteveen Systeem Ontwikkelaar
NOS Internet,  Gateway C Kamer 107
+31(0)356772910 http://www.omroep.nl/

Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal

Reply via email to