public Connection connect(DataSourceHandle dataSourceHandle) {  OdaDataSourceHandle handle = (OdaDataSourceHandle) dataSourceHandle;  String userName = (String)handle.getProperty(Constants.ODAUser); String passWord = (String)handle.getProperty(Constants.ODAPassword); String url = (String)handle.getProperty(Constants.ODAURL); String driver = (String)handle.getProperty(Constants.ODADriverClass);  jdbcConnection = connect( userName, passWord, url, driver, handle.getExtensionID());
public Connection connect( String userName, String password, String url, String driverClass, String odaDriverName ) { if( url == null || driverClass == null) { return null; } if( ( userName != null && !userName.equals(this.userName))  ||  !url.equals(this.url) || !driverClass.equals(this.driverClass)) { if(jdbcConnection != null) { closeConnection(); jdbcConnection = null; metaData = null; }  } if(jdbcConnection == null) { try { jdbcConnection = DriverLoader.getConnection( driverClass, url, userName, password ); if ( jdbcConnection == null ) { MessageDialog.openError( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ), JdbcPlugin.getResourceString("connection.test"), JdbcPlugin.getResourceString("connection.failed")); } else { this.driverClass = driverClass; this.url = url; this.userName = userName; } } catch ( SQLException e ) { ExceptionHandler.handle( e ); }  }
	public Connection connect(DataSourceHandle dataSourceHandle)	{						OdaDataSourceHandle handle = (OdaDataSourceHandle) dataSourceHandle;			String userName = (String)handle.getProperty(Constants.ODAUser);		String passWord = (String)handle.getProperty(Constants.ODAPassword);		String url = (String)handle.getProperty(Constants.ODAURL);		String driver = (String)handle.getProperty(Constants.ODADriverClass);				jdbcConnection = connect( userName,				passWord,				url,				driver,				handle.getExtensionID()); 				return jdbcConnection;	}