The enterprise objects advantage, Figure 3-4, Implementing business logic in enterprise objects – Apple WebObjects 5 User Manual
Page 34

34
The Enterprise Objects Advantage
Apple Computer, Inc. January 2002
C H A P T E R 3
Enterprise Objects
The Enterprise Objects Advantage
A hallmark feature of WebObjects, especially in comparison to other solutions, is
the separation of the business logic from the datasource and the user interface. In
WebObjects, you put the business logic in the enterprise objects, as shown in Figure
3-4.
Figure 3-4
Implementing business logic in enterprise objects
Another approach (Figure 3-5) is to implement business logic in the Web or desktop
application. The WebObjects approach betters this approach in the following ways:
■
It offers greater reuse.
In WebObjects, you code your business logic once, and
each application that accesses your database can use it. You don’t have to
re-code your business logic into each screen or Web page.
Relational database
WebObjects
Application
.................
.................
Business logic