473,804 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3 Tiered Architecture

Bob Ross
119 New Member
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. SQLProcedureFac tory) that would have functions like ExecuteQuery(), ExecuteProcedur e() & 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 SQLProcedureFac tory 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 1116
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
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 New Member
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.as px. 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
1274
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 shrink-wrapped progam, I do not know what technologies a company has at their location nor the level of IT staff to implement and maintain the program. Some of the companies that will be working with this program are large with lots of technical resources...
6
3833
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 handler? For example, let's say that we have to implement the ISO 7-layer protocol, or something like an Allen-Bradley master-slave protocol. At the lowest layer we might only need to top and tail the data being transported, such as DLE STX DLE...
687
23776
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 believe that. in pieces of the application where speed really matters you can still use "normal" functions or even static methods which is basically the same. in C there arent the simplest things present like constants, each struct and enum...
2
1276
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 over 'Scripting' opens a pulldown with 5 items. I'd like to add a submenu to 'DHTML' that would appear to the immediate right and top-level with 'DHTML' when 'DHTML' is hovered over, with the submenu containing six items.
6
3664
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 and bitwise operations are architecture dependant. The intention is to store two bytes, as chars, extracted from a short input parameter as: <code> void foo(short id_pair) { char *ptr = &id_pair;
13
7213
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
1260
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 implementation. To my way of thinking, that means that no only do we follow a 3-tier approach from a logical view (data access, business logic, and UI) but that we also separate the application into physical layers to improve scalability and...
1
1381
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
5494
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 info needed. Each sale will have 1 or 2 sales reps which are assigned to a tier. For example: repA is assigned to Tier 1 repB is assigned to Tier 2
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.