Você está na página 1de 3

In this explanation thin client means web-application.

Application layer or presentation layer:


Internet explorer or browser is the application layer client software that handles the http requests for the
user who is using thin client.
What the presentation layer does:
1. It accesses the server software of thin client (ie the server.dll files to the users interface that is
the web browser through I!. It basically presents the application to the user who wants to use thin
client
". #pplication layer uses the http or https protocol to handle the requests from the user to the server
and then resend the result bac$ from the server to the user.
Example%
&ser enters a login name and pwd and clic$s on login
'resentation layer handles this http request by verifying this login name and pwd by sending this
request via the #'Is to the database via the database engine
(nce the #'I which is in the business logic layer verifies this login is correct) it will resend the
serviced http request to the browser
*ence the user will be able to login
+. if the application does not support the presentation layer then the user cannot use a web browser
to tal$ to the application
,. presentation layer basically handles the data representation
Example% the pwd is stored in an encoded format in the database. -hat is the reason why a pwd
appears in asteris$ when a user enters his pwd
Example% the .-/ data might be stored in a non readable format in the database) but to the user
in the presentation layer it appears as a readable text
0. sql management studio) internet explorer) db visuali1er) crystal reports - these are some examples
of presentation layer softwares.
Business logic layer:
-his basically deals with how the application will behave when a user is performing some action. -he
main logic behind how the application behaves is coded in this business logic layer.
/or example% if u want the administrator to add a new user only with a min of 0 characters length login
name then the #'I associated with this new user adding functionality is coded in this business logic
layer only
Example% this is the layer which will service the user requests coming form the presentation layer and
then processing the request as per the #'I functions that are built in the business logic layer. 2i$e for
example if a user is trying to add a new record for which he has no permission) then it is the business
login layer which will determine if the user really has permission to add a record or no.
3hat ever you do in the application) the main logic for the behavior of the application is determined by
the business login layer
Another example:
3hen you search for records in the thin client) the logic behind how to search the records is coded in this
business login layer only.
#nother example% suppose I want to add rules) lists) and permissions on a table. -hen all this logic is
defined in this layer.
(ur schema wi1ard rules) lists) security) schema options) 456) external tables are all part of the
business logic layer.
25#') windows authentication) .57 users) by pass security 8 all this wor$ because of the business logic
layer only
3ithout business logic layer no application can wor$
Database layer:
.equests coming from presentation layer go to business logic layer via the #'I or inbuilt functions in the
code.
9ow the business logic layer will tal$ to the database layer by validating the data entered by the user with
the data already stored in the database layer.
/or example% a user adds a record. -he business logic layer will process this request and then send a
database create request to the database layer via the database engine to add this record in the
database.
Example% if a user wants to run a report) then the business logic layer will send the database query
request li$e select : from account; to the database layer. -hen the business logic layer will send the
records of the query to the presentation layer to present it to the user.
7asically database layer is the database server of our application. -he database server handles the
requests of the presentation and the business logic layer via the database engine.
If the schema wi1ard is adding a new table) then it the database layer which is doing the <ob of adding
the new table.
5=9 connection is used by =aratoga to tal$ to the database layer.
Note:
#pplication server can expose the business logic layer #'Is to the developers) so that the developers
can build the application li$e how ever they want.
-his is one of the main features of the application server li$e II=.

Você também pode gostar