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:
“The history of his present majesty, is a history of unremitting injuries and usurpations ... all of which have in direct object the establishment of an absolute tyranny over these states. To prove this, let facts be submitted to a candid world, for the truth of which we pledge a faith yet unsullied by falsehood.”
—Thomas Jefferson (17431826)
“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)