ECO (Domain Driven Design) - Object Persistence

Object Persistence

ECO performs object-relational mapping based on metadata which is taken from the model or from an xml file. It implements such advanced object persistence features as caching, lazy load and others. Mapping scheme is configurable enough to use ECO with existing databases. Database reverse engineering wizard as a part of ECO helps with this task.

ECO automatically keeps track of all unsaved changes to the objects and provides simple means for the programmer to propagate these changes to the persistent storage, for example using the following command:

ECOSpace.PersistenceService.UpdateDatabase;

Using OCL simplifies loading objects from the persistent storage. The example code below uses the OCL expression "Person.AllInstances" to load all instances of the class named "Person" in the UML model:

IObjectList people = ECOSpace.OclService.Evaluate("Person.AllInstances");

Read more about this topic:  ECO (Domain Driven Design)

Famous quotes containing the words object and/or persistence:

    I find very reasonable the Celtic belief that the souls of our dearly departed are trapped in some inferior being, in an animal, a plant, an inanimate object, indeed lost to us until the day, which for some never arrives, when we find that we pass near the tree, or come to possess the object which is their prison. Then they quiver, call us, and as soon as we have recognized them, the spell is broken. Freed by us, they have vanquished death and return to live with us.
    Marcel Proust (1871–1922)

    Extreme patience and persistence are required,
    Yet everybody succeeds at this before being handed
    The surprise box lunch of the rest of his life.
    John Ashbery (b. 1927)