Class MySqlDriver

java.lang.Object
me.hsgamer.hscore.database.driver.mysql.MySqlDriver
All Implemented Interfaces:
Driver

public class MySqlDriver extends Object implements Driver
A driver for MySQL
  • Constructor Details

    • MySqlDriver

      public MySqlDriver()
  • Method Details

    • getDriverClass

      public Class<? extends Driver> getDriverClass()
      Description copied from interface: Driver
      Get the driver class
      Specified by:
      getDriverClass in interface Driver
      Returns:
      the driver class
    • convertURL

      public String convertURL(Setting setting)
      Description copied from interface: Driver
      Get the JDBC url from the config
      Specified by:
      convertURL in interface Driver
      Parameters:
      setting - the setting
      Returns:
      the JDBC url
    • applyDefaultSetting

      public void applyDefaultSetting(Setting setting)
      Description copied from interface: Driver
      Apply the default setting
      Specified by:
      applyDefaultSetting in interface Driver
      Parameters:
      setting - the setting