getTargetDriver
public java.sql.Driver getTargetDriver(@NonNull java.lang.String driverUrl,
@NonNull java.util.Properties props)
throws java.sql.SQLException
The method returns a driver for specified url. If driver couldn't be found,
the method tries to identify a driver that corresponds to an url and register it.
Registration of the driver could be disabled by provided configuration properties.
If driver couldn't be found and couldn't be registered, the method raises an exception.
- Parameters:
driverUrl - A driver connection string.
props - Connection properties
- Returns:
- A target driver
- Throws:
java.sql.SQLException - when a driver couldn't be found.