摘要 |
The present invention relates to a computer software framework and method for accessing data from a datastore. The invention discloses a framework for accessing data from a datastore. The framework is comprised of a datatable comprising data retrieved from a datastore. A first class object, a second class object, and a third class object populated with columns of data from the datatable, and the second class object is referenced by the first class object and the third class object is referenced by the second class object. A hashtable is used to cache the first, second, and third class objects such that the first class object is stored as a key in the hashtable and the second and third class objects are the corresponding value of that key in the hashtable. The method for accessing data from a datastore comprises creating a datatable comprising data retrieved from a datastore. A first class object, a second class object, and a third class object are populated with columns of data from the datatable. The second class object is referenced by the first class object and the third class object is referenced by the second class object. The first, second, and third class objects are cached in a hashtable such that the first class object is stored as a key in the hashtable and the second and third class objects are the corresponding value of that key in the hashtable.
|