Click to See Complete Forum and Search --> : Help remembering what a DB class extends!


Guezt
04-28-2009, 03:07 AM
So I have the following arangement:

class Sanitize{
// makes strings safe for dbs
}
interface Database{
// database interface
}

Class MySQL extends Sanitize implements Database{

}

so to use a query $whatever = new MySQL; and then those functions are used. (there are several supported DBs, hence the interface).

So last night I was thinking of something else I could either extend to add to (as it would be only functions) the MySQL class. The problem is I can't remember what I thought of and it's really annoying me. Any ideas? PS please don't comment on the class structure.

Sixtease
04-29-2009, 01:27 AM
Does this belong to the Java forum?