<Kees Jongenburger:>
>hmm . an object builder belongs to a cloud
>MMOBjectBuilder has a datamember mmb (by inheriance from MMTable)
>mmb shoud be used to get a database connection.

According to the documentation this is not true.
This is wat the javadoc (MMObjectBuilder.database), says about retrieving a
reference to the database:
    use MMBase.getMMBase().getDatabase() or mmb.getDatabase() instead
This suggests the field MMTable.mmb should be deprecated as well,
MMBase.getMMBase() should be used instead.

This demonstrates also that a reference to an actual MMObjectBuilder
instance is not required to get a database reference.

The choice class vs. instance method is a conceptual rather than technical.
Technically it can be implemented both ways.

Rob van Maris
Developer

Finalist IT Group
Java Specialists
-------------------------------------------------------------
Amsterdam, The Netherlands
Office: +31 20 5962321 (Direct)
Mobile: +31 651444006
Fax: +31 20 5962331
-------------------------------------------------------------



Reply via email to