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:
“In the one instance, the dreamer ... loses sight of this object in a wilderness of deductions and suggestions ... until ... he finds the incitamentum, or first cause of his musings,... forgotten. In my case, the primary object was invariably frivolous, although assuming, through the medium of my distempered vision, a refracted and unreal importance.”
—Edgar Allan Poe (18091849)
“Nothing in the world can take the place of Persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and Determination alone are omnipotent. The slogan Press On, has solved and will always solve the problems of the human race.”
—Calvin Coolidge (18721933)