|
From: | Horst Herb |
Subject: | Re: [Gnumed-devel] gmDbObject |
Date: | Mon, 16 Sep 2002 18:13:13 +1000 |
User-agent: | Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.1a) Gecko/20020611 |
Karsten Hilbert wrote:
I have added a generic base class for database objects ("gmDbObject.py" in "gnumed/client/python-common/").Horst, what is the difference/intended purpose of gmDbObject vs. gmDBCache ?
The cache object uses a singleton to share data used by many client widgets within the same process.
The gmDbObject is just an abstraction of backend access hiding a few more complexities (like the handling of readonly / read-write queries etc). In it's next version it will furthermore allow to hide a few of the complexities involved with highly normalized structures.
The cache object will soon be rewritten completely and derive the cached objects from gmDbObject. It will no longer cache just one row, but a dictionary of database objects as identified by their primary keys.
Horst
[Prev in Thread] | Current Thread | [Next in Thread] |