Table of Contents Previous Section
Ingredients of an Enterprise Objects Framework Application
Enterprise Objects Framework can be used to create many different kinds of applications:
- Command-line programs without a graphical user interface
- Application Kit client/server desktop applications where all the logic is in a client
- HTML WebObjects applications where all the logic is in the application server
- WebObjects applications with interactive Java clients where the logic is distributed between an application server and its clients
- A user interface. The type of interface you want-whether a graphical user interface based on Apple's Application Kit for a desktop application, an HTML web interface based on Apple's WebObjects framework, or an interactive Java client (using Sun's JDK user interface objects) for a web application-determines the tools you use to create the user interface. For Application Kit applications and Java web clients, you use Interface Builder. For HTML web applications, you use WebObjects Builder.
- A model. A model defines the mapping between your enterprise objects and the data stored in your database. An enterprise object class typically corresponds to a table in a database, and an enterprise object instance corresponds to a single row or record in the corresponding table. You define and store this correspondence in models that you build graphically with the EOModeler application.
- Enterprise Objects. These are your business objects, in custom code that you provide. Enterprise objects couple data from the database with the business logic required to operate on that data.
- Enterprise Objects Framework's classes and interfaces. The classes and interfaces (or classes and protocols if you're using Objective-C) let you programmatically manipulate data as it passes between the database server, your enterprise objects, and the user interface. Although simple applications can be created entirely in one of the builder tools, sophisticated applications require using some of the Enterprise Objects Framework classes in your own code.
- A database server and an adaptor for that server. An adaptor is a mechanism that connects your application to a particular server. For each type of server you use, you need a separate adaptor. Enterprise Objects Framework provides adaptors for Oracle, Sybase, Informix, and ODBC-compliant servers. It also provides a sample adaptor for a flat-file data store and an adaptor for OpenBase Lite-a database that ships with Enterprise Objects Framework as an unsupported demo.
Figure 6. The Ingredients of an Enterprise Objects Framework Application
Table of Contents Next Section