? about business abstraction layer and ADO

S

SteveK

OK, I want to have an abstracted "Business Object" layer that my application
will deal with.

The way that I understand it is, Business layer utilizes the DAL to get the
data from the Datastore. That works fine in the "Pull" scenario when
retrieving data, but when I want to add data to the datastore, would I still
use the business layer or would I interact with the DAL, add the records,
then turn around and somehow pull them through the business layer to get
them back to the app.

This is hard to explain.... I guess I would like to open a discussion with
anyone that is using DataSet, Business Objects and possibly
SqlNotificationServices and how they all interact and in what order. I'm
getting snagged on design and have come to a stand still.

Thanks for any info, tips or ideas!
Steve
 
S

Scott M.

SteveK said:
OK, I want to have an abstracted "Business Object" layer that my
application
will deal with.

The way that I understand it is, Business layer utilizes the DAL to get
the
data from the Datastore.
Yes.

That works fine in the "Pull" scenario when
retrieving data, but when I want to add data to the datastore, would I
still
use the business layer or would I interact with the DAL, add the records,
then turn around and somehow pull them through the business layer to get
them back to the app.

You would create methods for your business objects that take in the new
data, validate and/or modify it and then the business object would pass the
data to the Data Layer for insertion into the data store.
This is hard to explain.... I guess I would like to open a discussion
with
anyone that is using DataSet, Business Objects and possibly
SqlNotificationServices and how they all interact and in what order. I'm
getting snagged on design and have come to a stand still.

Thanks for any info, tips or ideas!
Steve

For example:

Business Object: Policy
Method: getPolicy(PolicyID)
Method: updatePolicy(PolicyID, Customer, foo, foo, foo, etc.)
Method: deletePolicy(PolicyID)
Method: createPolicy(new data, new data, etc.)

Each of these method invokes a similiar method of a data object in the data
layer and the data layer object actually does the DB modifications.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top