DriverManager.getDriver

DriverManager.getDriver

Class Overview | Class Members | This Package | All Packages

Syntax
public static Driver getDriver( String url ) throws SQLException
Parameters
url
a database url of the form jdbc:subprotocol:subname
Returns
a Driver that can connect to the URL
Description
Attempt to locate a driver that understands the given URL. The DriverManager attempts to select an appropriate driver from the set of registered JDBC drivers.

Exceptions
SQLException if a database-access error occurs.