Table of Contents Previous Section

Database Integration Level

Database integration is handled mainly by classes in the Enterprise Objects Framework (see Figure 18). The Enterprise Objects Framework converts operations on objects to database operations on records, thereby allowing your WebObjects application to interact with a database in an object-oriented manner.

Figure 18. Request-Response Loop: Database Access

Two classes are involved at this level:

When a WebObjects application accesses a database, one or more of the components in the application contain one or more WODisplayGroup objects. The session object provides access to an EOEditingContext object that is used, for example, when changed data is saved to the database. Each session uses an EOEditingContext to manage graphs of objects fetched from a database and to ensure that all parts of an application remain synchronized. For read-only applications, you can customize WOSession to return a per-application EOEditingContext.

For more information on how the WebObjects and Enterprise Objects classes interact, see the Enterprise Objects Developer's Guide.

Table of Contents Next Section