Interface Driver

All Known Subinterfaces:
H2BaseDriver, SqliteBaseDriver
All Known Implementing Classes:
H2LocalDriver, H2MemoryDriver, H2ServerDriver, LocalDriver, MariaDBDriver, MySqlDriver, PostgreSqlDriver, SqliteFileDriver, SqliteMemoryDriver, SqlServerDriver

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 void applyDefaultSetting(Setting setting)
      Apply the default setting
      Parameters:
      setting - the setting
    • getDriverClassName

      default String getDriverClassName()
      Get the driver class name
      Returns:
      the driver class name