Path: utzoo!attcan!uunet!cimshop!davidm From: cimshop!davidm@uunet.UU.NET (David S. Masterson) Newsgroups: comp.object Subject: Re: Object-Oriented COBOL? Message-ID: Date: 18 Nov 90 22:48:59 GMT References: <679@dlogics.COM> <681@dlogics.COM> Sender: davidm@cimshop.UUCP Distribution: comp Organization: Consilium Inc., Mountain View, California. Lines: 33 In-reply-to: dsa@dlogics.COM's message of 16 Nov 90 22:36:49 GMT X-Posting-Software: GNUS 3.12 [ NNTP-based News Reader for GNU Emacs ] >>>>> On 16 Nov 90 22:36:49 GMT, dsa@dlogics.COM (David Angulo) said: dsa> I don't see, however, how you could have these methods generated because dsa> there's no way *I* can think of to figure out which "access philosophy" dsa> (maybe SQL select criteria is a better term) you may want to use. There dsa> are infinitely many ways you could want to access them. I think the C++ code associated with Class would be generatable, but I'm not yet sure about the C++ code for ClassList. This is because the only access methods I could see putting on Class are the primary key methods (select, insert, delete, or update by primary key). All the information needed for these methodologies should be in the data dictionary of the relational database. The more I think about it, though, the more I believe that the appropriate modelling methodology for a relational database from a series of objects is to treat all access methods against the database as operations on a list of some sort (even if its a list of one). Even in the case of list accesses, much of the information model should be well understood at the time of writing the C++ code (and so generatable). For instance, access methods against the primary or foreign key of a table. These could be done with static SQL. All other methods would require dynamic SQL which would need the names of the tables or columns involved (sound like requirements for operations against the basic Classs?) for use in building the proper SQL query. Just a few random thoughts... -- ==================================================================== David Masterson Consilium, Inc. (415) 691-6311 640 Clyde Ct. uunet!cimshop!davidm Mtn. View, CA 94043 ==================================================================== "If someone thinks they know what I said, then I didn't say it!"