Bug 191404 Connection is still successful after delete drivers[0703]
Description: Create a Sqlserver datasource and dataset, then delete the jtds driver. Click "Test Connection" is still successful, and the dataset still works. Build Version:2.2.0.v20070607-0630 Steps to reproduce: 1. Add a jtds driver, and create a Sqlserver connection and dataset. 2. Go to "Manage JDBC Drivers" dialog, and delete the driver. 3. Click "Test Connection", the connection is successful. 4. Click "Preview Results" in "Edit Data Set" dialog, it works. Expected Result: Delete driver will lose the connection.
data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/JDBCDriverManager.java
import org.eclipse.core.runtime.Platform;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.osgi.framework.Bundle;
/**
 * Utility classs that manages the JDBC drivers available to this bridge driver.
 * Deals with dynamic discovery of JDBC drivers and some annoying class loader
 * issues. 
 * This class is not to be instantiated by the user. Use the getInstance() method
 * to obtain an instance
 */
public class JDBCDriverManager
{    
    public static final String JDBC_USER_PROP_NAME = "user"; 
    public static final String JDBC_PASSWORD_PROP_NAME = "password"; 
    
	private  HashSet registeredDrivers = new HashSet();
	
	
	private HashMap cachedDriversMap = new HashMap();
	
	
	 
	private HashMap driverExtensions = null;
	
	private  DriverClassLoader extraDriverLoader = null;
	
	private static JDBCDriverManager instance;
	
	private static Logger logger = Logger.getLogger( JDBCDriverManager.class.getName() );