Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00446076
Message ID:
00446446
Vues:
18
Hi Christian,

You might want to search "business object" as well. Jim booth's book on OO Design covers them.

Also, there are three frameworks I know of that rely on them: Mere Mortals, Visual Fox Express, and Codebook.

There are two "thought current" when it comes to business objects:

The purist approach is that the business object is a direct representation of a record. Therefore the data is presented to the rest of the world as properties of the object.

The practical approach (that's how I call it) states that the business object is comprised pretty much as the "functionality" (fetch record, delete, add, etc.) and the data is still presented to the world as a cursor. The practicality of this approach is that it's faster (i.e. vfp loves cursors).

Mere Mortals uses the latter approach. Take Note's DataClass relies on the purist approach (under some circumstances it does return a cursor), but then DataClass, if I'm correct, is for interfacing with sql-server data rather than vfp dbf's.

Hope this helps!

Alex


>Hello,
>
>I'm very interested in using OOP more to handle my data. Until now I used OOP for the benefits of having visible objects like forms and their controls or business classes and application control classes and so one, but for the code in those methods I handle the data still in a similar way I did in FP 2.6, with the exception of tablebuffering and the using of a database container.
>
>I heard sometimes about data objects, but nowhere I could find a real good example/explanation of how to use data (as an object?) this way, and how to gain the benfits of working this way. So I do not know much more than the term data object.
>
>Maybe I did not search very much, but I was wondering whether someone here can point me to a good example or description of using data objects, and generally how to use more OOP in data handling procedures.
>
>Thank you very much for your time and effort,
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform