Interface Driver

All Known Implementing Classes:
LocalDriver

public interface Driver
A driver for database connection
  • Method Details

    • createPropertyString

      static String createPropertyString(Setting setting, String prefix, String delimiter)
      Create the property string for the URL
      Parameters:
      setting - the setting
      prefix - the prefix
      delimiter - the delimiter between the properties
      Returns:
      the property string
    • createPropertyString

      static String createPropertyString(Setting setting)
      Create the property string for the URL
      Parameters:
      setting - the setting
      Returns:
      the property string
    • getDriverClass

      Class<? extends Driver> getDriverClass()
      Get the driver class
      Returns:
      the driver class
    • convertURL

      String convertURL(Setting setting)
      Get the JDBC url from the config
      Parameters:
      setting - the setting
      Returns:
      the JDBC url
    • applyDefaultSetting

      default Setting applyDefaultSetting(Setting setting)
      Apply the default setting
      Parameters:
      setting - the setting
      Returns:
      the applied setting
    • createSetting

      default Setting createSetting()
      Create a setting with the default values
      Returns:
      the setting