Interface JdbcDrivers

    • Method Detail

      • getClassLoader

        @NotNull
        ClassLoader getClassLoader()
      • findDefaultDriver

        @Nullable
        Driver findDefaultDriver​(@NotNull
                                 DatabaseType dbType)
        Provides with the default driver for the specified database type.
        Parameters:
        dbType - type of the database.
        Returns:
        the driver, or null if no applicable drivers.
      • getDriver

        @NotNull
        Driver getDriver​(@NotNull
                         String connectionString)
                  throws NoSuitableJdbcDrivers
        Looks for a situable driver (one that accepts the given url, see Driver.acceptsURL(String)). Or raises an exception if no suitable drivers.
        Parameters:
        connectionString - url to check for.
        Returns:
        found suitable driver.
        Throws:
        NoSuitableJdbcDrivers - when no suitable JDBC drivers found.
      • unregisterAll

        void unregisterAll()
      • getDriverLocation

        @Nullable
        File getDriverLocation​(@NotNull
                               Driver driver)
        Returns location of jar file containing specified JDBC driver.
        Returns:
        location of jar file on disk, or null if location cannot be determined for some reason.
        Since:
        9.0.1