<Pierre van Rooden:>
> 1.I am not sure if we really WANT the database to be available through a
> static function. We migth concider, in the future, to enable the use of
> multiple databases or allow mutiple clouds in one instance of MMBase,
> which could mean multiple instances of the MMBase.java class.
There are no limits to what we might consider in the future. In order to
deal with this, instance methods are a better choice than class methods, I
agree. I'm sceptical about the other points you make, but I won't go into
that for now.
Accordingly, the proposed methods become:
MMObjectBuilder:
public List getNodes(NodeSearchQuery query) throws
SearchQueryException;
public int count(NodeSearchQuery query) throws SearchQueryException;
ClusterBuilder:
public List getClusterNodes(SearchQuery query) throws
SearchQueryException;
Rob van Maris
Developer
Finalist IT Group
Java Specialists
-------------------------------------------------------------
Amsterdam, The Netherlands
Office: +31 20 5962321 (Direct)
Mobile: +31 651444006
Fax: +31 20 5962331
-------------------------------------------------------------