public Connection connect(DataSourceDesign dataSourceHandle) {  DataSourceDesign handle = (DataSourceDesign) dataSourceHandle;  String userName = (String) handle.getPublicProperties( ) .findProperty( Constants.ODAUser ) .getValue( ); String passWord = (String) handle.getPublicProperties( ) .findProperty( Constants.ODAPassword ) .getValue( ); String url = (String) handle.getPublicProperties( ) .findProperty( Constants.ODAURL ) .getValue( ); String driver = (String) handle.getPublicProperties( ) .findProperty( Constants.ODADriverClass ) .getValue( );  jdbcConnection = connect( userName, passWord, url, driver, handle.getOdaExtensionId( ) );
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; this.pass = password; } } catch ( SQLException e ) { ExceptionHandler.showException( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ), JdbcPlugin.getResourceString( "exceptionHandler.title.error" ), e.getLocalizedMessage( ), e ); return null; }  }
	public Connection connect(DataSourceDesign dataSourceHandle)	{						DataSourceDesign handle = (DataSourceDesign) dataSourceHandle;			String userName = (String) handle.getPublicProperties( )				.findProperty( Constants.ODAUser )				.getValue( );		String passWord = (String) handle.getPublicProperties( )				.findProperty( Constants.ODAPassword )				.getValue( );		String url = (String) handle.getPublicProperties( )				.findProperty( Constants.ODAURL )				.getValue( );		String driver = (String) handle.getPublicProperties( )				.findProperty( Constants.ODADriverClass )				.getValue( );				jdbcConnection = connect( userName,				passWord,				url,				driver,				handle.getOdaExtensionId( ) ); 				return jdbcConnection;	}