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 

Newbie: question on business object like "CUSTOMER"

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Benson Wong
Guest





PostPosted: Thu Oct 16, 2003 1:46 am    Post subject: Newbie: question on business object like "CUSTOMER" Reply with quote



I am a newbie in component writing. Some questions:

I want to create a object for manipulating "CUSTOMER":
1. if I want to get a customer name by a customerID from the object, should
I just return the customer name from the object by using the SQL to access
the database? or should I get the whole record by using SQL so that it acts
as a more generic routine?
2. Is it common to use SQL to access data inside an object like this one?
(very seldom to see such kind of discussion in the newsgroup)
3. Can I have a code framework example on this object?

Thank you very much
Benson.
Delphi 5.0, Win2000.



Back to top
Paul Nicholls
Guest





PostPosted: Thu Oct 16, 2003 2:02 am    Post subject: Re: Newbie: question on business object like "CUSTOMER" Reply with quote



It would be better to ask in the borland.public.delphi.oodesign group I
think... :-)

"Benson Wong" <benson (AT) linktechsystem (DOT) com.hk> wrote

Quote:
I am a newbie in component writing. Some questions:

I want to create a object for manipulating "CUSTOMER":
1. if I want to get a customer name by a customerID from the object,
should
I just return the customer name from the object by using the SQL to access
the database? or should I get the whole record by using SQL so that it
acts
as a more generic routine?
2. Is it common to use SQL to access data inside an object like this one?
(very seldom to see such kind of discussion in the newsgroup)
3. Can I have a code framework example on this object?

Thank you very much
Benson.
Delphi 5.0, Win2000.






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing 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.