This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 90210

Summary: Add a DatabaseConnection.getJDBCDriver() method
Product: db Reporter: Andrei Badea <abadea>
Component: CodeAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: blocker CC: davidvc, jimdavidson, jstola, phejl, pjiricka, sherold
Priority: P3 Keywords: API, API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
URL: http://wiki.netbeans.org/wiki/view/VWPDataSourceIntegration
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 119644    
Attachments: a proposed patch

Description Andrei Badea 2006-11-28 17:23:45 UTC
Currently there is no easy way to get the JDBCDriver instance that a
DatabaseConnection will use / used to connect to a database. A
DatabaseConnection.getJDBCDriver() method should be added.

Will be used by the deployment of JDBC drivers to the application server.
Comment 1 John Baker 2007-03-29 01:15:53 UTC
I heard a workaround was determined and so adding getJDBCDriver() is no longer
needed.   This issue will be closed.  If the method is still needed then this
issue can be reopened
Comment 2 Jan Stola 2007-03-29 10:54:09 UTC
Reopening - I am not sure what workaround has jbaker in mind. If it was 
something like
JDBCDriverManager.getDefault().getDrivers(connection.getDriverClass())[0]
then this workaround existed at the time this issue was filled and therefore 
changes nothing on its status. It still would be nice to have a clean way to 
obtain the driver from the connection.
Comment 3 Petr Jiricka 2009-04-07 15:39:02 UTC
I am changing this to a P3 defect, as it blocks another P3 defect (issue 119644). It would be great to have this
implemented for 6.7. Thanks.
Comment 4 Jiri Rechtacek 2009-05-06 15:37:08 UTC
Created attachment 81660 [details]
a proposed patch
Comment 5 Jiri Rechtacek 2009-05-06 15:38:13 UTC
Please review my changes.
Comment 6 Jiri Rechtacek 2009-05-13 11:08:48 UTC
I'm going to integrate it tomorrow.
Comment 7 Jiri Rechtacek 2009-05-14 10:35:17 UTC
integrated in core-main/rev/c15a86ef59d3