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:
“Our systems, perhaps, are nothing more than an unconscious apology for our faultsa gigantic scaffolding whose object is to hide from us our favorite sin.”
—Henri-Frédéric Amiel (18211881)
“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)