Re: OOP - a question about database access

From: Alfredo Novoa (alfredo_at_ncs.es)
Date: 11/02/03


Date: 2 Nov 2003 05:08:43 -0800

Tim <nocomment@rogers.com> wrote in message news:<6wTob.89392$7B1.76193@news04.bloor.is.net.cable.rogers.com>...

> Do you tell the president of a bank that the databases he has with
> customer banking information may have to be completely reorganized
> depending on your object oriented analysis for some reporting system or
> do you make your system fit the data, if possible?
> All this theory is nice but it ain't gonna fly in the real world that I
> live in.

I dissagree, that theory is terribly stupid.

Again the key question is that in a data centric system OO is only
useful in the development of thin GUIs which communicate with the DBMS
using SQL.

The only objects you need are objects like Form, Grid, Edit, ComboBox,
RadioButton, MenuItem, etc.

Objects like Employee, Customer, etc are completely unnecessary
because that entities are already managed by the DBMS. You only need
to map the database tables to visual controls like grids, edits, etc.

Alfredo