473,320 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

3 Tiered Architecture

Bob Ross
119 100+
I am trying to get a better understanding of the three tiered architecture and would like some help clarifying the interaction between classes and structure.

The Presentation layer - is easy it is simply the front end (pages, winforms, etc...)

The Business Logic Layer - This contains the domain objects i.e Car() which will hold all the properties of a particular car. One object will be created per car.
But would you have functions in here to save, edit or delete the car?

The Data Access Layer - This would presumably contain a class (i.e. SQLProcedureFactory) that would have functions like ExecuteQuery(), ExecuteProcedure() & ExecuteNonQuery.
Would you also include in this layer a DA class for each business object i.e. DaCar which has functions like SaveCar(), EditCar, GetCarByID, etc...?
Or would the business object use the SQLProcedureFactory themselves?


I would like know if a page wants to get a car by id what methods are called in which classes in what order? The same for if page wants to edit a car's data?

Thanks for any help you can give me.
Jul 18 '08 #1
2 1095
Shashi Sadasivan
1,435 Expert 1GB
In theoretically terminology
the data layer gets and sets data. so if the business layer is going to do that job for you, then you are mixing it up.
the business layer will control which user can do what at which place.
the business layer will check the data for consistency and any calculation before sending the data to the data layer to be saved.
Jul 18 '08 #2
Bob Ross
119 100+
Thanks, but... you haven't answered my questions at all. I know theoretically what it should do; I think the name gives it away.

Lets say for an example you had a page called EditEmployee.aspx. What classes would you build to allow you to edit an entry in the employees table and what would call what to both fetch and user the Employee table?
Jul 18 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: David | last post by:
Hi all, I am looking to do a little brainstorming. I am beginning to switch my mrogram over from a client/server architecture to a multi-tiered architecture. Since this is pretty much a...
6
by: Charles Law | last post by:
This is going to seem like a basic OO question, but it comes up and bites me every now and again. Suppose we have a multi-tiered protocol to implement, what is the logical, OO way to design the...
687
by: cody | last post by:
no this is no trollposting and please don't get it wrong but iam very curious why people still use C instead of other languages especially C++. i heard people say C++ is slower than C but i can't...
2
by: Thrasher Remailer | last post by:
Using the example at http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_menu10 as a base, how can I extend this code to handle tiered ( cascading ) pulldowns? For example, hovering...
6
by: carsonbj | last post by:
I have an issue where the below operation works on a little-endian architecture but not on a big-endian architecture. I was under the impression that pointer arithmetic is architecture independant...
13
by: rrs.matrix | last post by:
hi i have to detect the type of CPU. whether it is 32-bit or 64-bit.. how can this be done.. can anyone please help me.. thanks.
2
by: Ken Ross | last post by:
I'm in the early stages of working up the design for a large .Net web application and want to make sure that we have the best possible physical architecture to support the logical architecture and...
1
by: Cirene | last post by:
Do you have any good book recommendations for learning Entity Framework, DAAB, and/or Tiered Architecture (business objects, etc)? I am a VB.net developer, but C# would be ok I guess.... Thanks
2
by: spima05 | last post by:
Hello I am trying to create a database to calculate commissions on a sale based on a tiered commission schedule and am having trouble with how to design the tables and relationships to store the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.