Table of Contents Previous Section

Database Integration

WebObjects has been extended and enhanced in many ways to interact smoothly with the Enterprise Objects Framework, thereby enabling WebObjects applications to fetch, write, and query database records. A major factor behind this integration is WODisplayGroup. Instances of this class (commonly referred to as display groups) provide a simple interface allowing objects in a WebObjects application to interact with relational databases. Enterprise Objects Framework and WODisplayGroup convert operations on objects to database operations on records. Display groups use classes defined in Enterprise Objects to:

The WOSession class also provides access to an EOEditingContext object that is used, for example, when changed data is saved to the database. Each session uses its own EOEditingContext to manage graphs of objects fetched from a database and to ensure that activity remains synchronized. For read-only applications you can customize WOSession to return a per-application EOEditingContext.

Table of Contents Next Section