 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Benson Wong Guest
|
Posted: Thu Oct 16, 2003 1:46 am Post subject: Newbie: question on business object like "CUSTOMER" |
|
|
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
|
Posted: Thu Oct 16, 2003 2:02 am Post subject: Re: Newbie: question on business object like "CUSTOMER" |
|
|
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 |
|
 |
|
|
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
|
|