[plug] Data Abstraction

James Devenish devenish at guild.uwa.edu.au
Wed Dec 17 15:45:23 WST 2003


In message <20031217074147.GB7404 at mail.guild.uwa.edu.au>
on Wed, Dec 17, 2003 at 03:41:47PM +0800, James Devenish wrote:
> The get_descriptor() method would create the descriptor and could return
> a reference to it

Or, more to the point: The get_descriptor() method would search for a
record in the database and if none were found, it would create one. If a
record is already found (or has just been created), a Descriptor object
would be instantiated using the data corresponding to the matching
record.

If you have multiple descriptors per Item then obviously there's a
little bit more to it (e.g. choosing an interative or ID-based
interface for getting one of many descriptors".





More information about the plug mailing list