Unable to be type safe when using databases

Discussion in 'Plugin Development' started by beastman3226, Sep 15, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    beastman3226

    I'm trying to add support for SQLite, MySQL and Oracle, but my Database class is abstract, the problem with it being abstract is that when I try to use a method like, openConnection(), it's not existant. I have tried using an enum of DatabaseType but its getDatabase() method still returns a Database object when I need SQLite, MySQL or Oracle.

    Does anyone have any solutions? Any suggestions?
     
Thread Status:
Not open for further replies.

Share This Page