Code example for Driver

Methods: connect

1
			} catch (Exception exception) {
				throw new SQLException("Failed to load JDBC driver class " + driverClassName, exception);
			} 
			driver = DriverManager.getDriver(url);
		} 
		Connection connection = driver.connect(url, connectProperties);
		if (defaultDatabase != null) {
			connection.setCatalog(defaultDatabase);
		} 
		return connection;
	} 
 
	public void destroy() throws SQLException { 
		if (driver != null) {
			DriverManager.deregisterDriver(driver);
		} 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java