BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TDatamodule as OPF

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Alan
Guest





PostPosted: Thu Nov 18, 2004 11:14 pm    Post subject: TDatamodule as OPF Reply with quote



Can I use TDataModule as an data layer to access database as what OPF does ?


Back to top
Joanna Carter (TeamB)
Guest





PostPosted: Fri Nov 19, 2004 12:16 am    Post subject: Re: TDatamodule as OPF Reply with quote



"Alan" <NOSPAMalan_pltse (AT) yahoo (DOT) com.au> a écrit dans le message de news:
419d2cd4$1 (AT) newsgroups (DOT) borland.com...

Quote:
Can I use TDataModule as an data layer to access database as what OPF does
?


The only purpose TDataModule serves is to allow you to place non-visual
components on a non-visual container at design-time.

This is not the purpose of an OPF.

An OPF is intended to separate the business objects that you use from any
notion of databases at all.

Unless you create a dataset component that talks to list of objects rather
than data tables, then the whole data-aware control scenario offered by
Delphi is far from satisfactory. It relies on too many events happening,
sometimes at the wrong time or in the wrong order.

From an application programmer's side of the OPF all you should see are
methods like StoreObject, DeleteObject or RetrieveObject, etc.

Take a look at the articles on OPF on my website :

www.carterconsulting.org.uk

Joanna

--
Joanna Carter (TeamB)

Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.