[Dbixx-devel] Questions about DatabaseInterface
Status: Alpha
Brought to you by:
cyborch
From: Jerry S. <ye...@sp...> - 2002-06-06 02:04:21
|
Hello Anders (and others), I have been taking a look at the code to see how it is supposed to work. You mention on the homepage and the emails that the PersistentFactory should call DatabaseInterface's load() method to get the object from the database. Everything was making sense until I looked for a class that implements DatabaseInterface. The only one that implements it is SybaseInterface. I am trying to use MySQL. There is a class dbixx.sql.mysql.MySQLInterface that extends SQLDatabaseInterface but does not implement DatabaseInterface. My question is, should dbixx.sql.mysql.MySQLInterface implement DatabaseInterface or should there be a class dbixx.MySQLInterface, similar to SybaseInterface, that implements DatabaseInterface? You mentioned in a previous mail that SybaseInterface needs to be rewritten. Looking at dbixx.sql.mysql.MySQLInterface, it looks like it is meant to handle the connection to the database and construct the query that returns the attributes. My guess is that there needs to be a dbixx.MySQLInterface that implements DatabaseInterface and uses an instance of dbixx.sql.mysql.MySQLInterface. Is this correct? As you can probably tell, my understanding is limited, but I'm trying to figure this out. Feel free to correct/flame me. As an aside, one of the diagrams on the homepage has text so small that it is unreadable. Could you replace it with a larger version? Jerry Seutter |