On Sep 20, 2006, at 11:07 AM, Simen Haugen wrote:

In my current project (a reporting tool), I have actually used this kind of design without knowing it (I guess I'll have to buy a book on design
patterns - GoF is de facto standard still?).

Yeah, but there's lots of other stuff that has fleshed out the literature quite a bit since GoF came out.

I also have something that
can be mistaken for a crude business layer. The application gets data
from 4 different kind of databases, where one of them have 10 servers
running at different locations.

My application looks a bit like this:
[snip]
If I were to transform this to dabos bizobj's, how should this have been
done?

Remember that bizobjs are created by specifying a database connection. In your example, the UI would determine what the connection being used should be, and create the bizobj with that connection. This way, the bizobj only deals with the appropriate tables for the given task. I'm not sure I follow your structure, but in the common case of a chain of stores, with each store having its own database, you'd create the connection for the store you want to work with, and the bizobj would then work with that store's data.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to