4. Working with your objects: insert, changes, deletion

Now that we have seen how an object interacts with the core, we still have to learn about how they can be inserted, updated or deleted and how these changes can be made persistent into a RDBMS.

There is one component which fulfills these goals: the EditingContext. EditingContext can be thought as a graph of objects. Its major feature is to hold objects at runtime for which it is its responsability to track changes, either in the object (changes for some of an object's attributes) or between objects (when the objects in relationships change).

Everything you do within an EditingContext is likely to be made persistent (given that the objects derive from CustomObject and that they have a corresponding entity defined in some model).

Comments are welcome: Sebastien Bigaret / Modeling Home Page
Hosted by:SourceForge.net Logo