General information
Category:
Object Oriented Programming
Oh, just one more question (sorry to be a pain).
If say, the client wants to create a new USER, the client calls the AddUser() method in the BO, then the BO calls the AddNew() method in the data-object, but, what form should the initial information passed around be in? I know ADO and XML are the forms, but what about identifying which values go in which fields?
Should, perhaps, the client send a single-record recordset, or single-record XML string?
Thanks
Kev
>The middle tier should have an AddUser method that does the following:
>
>1. Call validation methods if any are needed.
>2. Pass the data onto the AddUser method of the data tier.
>
>The business tier should have no knowledge of how the data is actually saved. (Is it an INSERT, an APPEND BLANK, a SQL INSERT?) The business tier neither knows nor cares. The data ojbect handles the actual implementation of the insert (or however you implement it).
>
>
>>Marcus
>>
>>I'm currently working on a very simple app in order to get me into this.
>>
>>I'm starting with a simple business object for USERS. What I've done so far is have a USER Data-object, and a USER business-object. The USER business-object creates the USER data-object and uses that object to obtain data from the USER table (talking in ADO).
>>
>>One of the things that's stumping me is, where to insert/delete records from? The middle-tier or the data-tier? If I insert a new record do I need to pass the data-object all the field values etc?
>>
>>Am I on the right track?
>>
>>Thanks
>>Kev
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only