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 65471 - [50cat] Allow adding JDBC drivers from JDBC libraries
Summary: [50cat] Allow adding JDBC drivers from JDBC libraries
Status: NEW
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
: 67053 (view as bug list)
Depends on:
Blocks: 152819
  Show dependency tree
 
Reported: 2005-09-30 03:46 UTC by clever
Modified: 2013-08-01 12:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description clever 2005-09-30 03:46:36 UTC
I see a separation between JDBC drivers and Java libraries. I'd like to see a
"use existing Java library" for the JDBC selection dialog. This would close the
circle.  (It seems to be that a JDBC driver can be treated as a Java library...
including it's API, source, etc.)
Comment 1 Andrei Badea 2005-09-30 10:53:33 UTC
Seems like a good idea. But what exactly do you mean by "JDBC selection dialog"?
Is that the Add Driver dialog or Add Connection dialog? 

It would also help if you could write the scenario describing the use of a Java
library as a JDBC driver. Something like:

1) Right-click the Databases node, choose the Add Connection action.

2) In the Name combo box choose the name of a Java library.

etc.

Note that if you use a Java library as a JDBC driver, there isnt' any
information as what the driver class is, so the Add Connection dialog can't
suggest the database URLs (as it does for registered JDBC drivers). Could be
solved by just registering JDBC drivers based on Java libraries -- you won't
have to select the JARs, just enter the driver class (or have it be determined
automatically). Not sure if this is what you proposed, so please write some details.
Comment 2 clever 2005-10-02 01:12:53 UTC
Good afternoon!

I apologize for being so vague...

Here's the detail.

Establishing the environment for my project, I realize that I need to add JDBC
support to my project.  After I'm presented the window, I'm asked for "Driver
Files:..

In the Add JDBC driver window, I would like to see a new button that says "Add
JAR / Files...", and the existing "Add..." changed to say "Add Library...".
Similar behavior exists currently in the right-click context menu for the
"Libraries..." part of the project view.

The use would then have the same options they have today, with the ability to
pick the driver class.  I think this would "feel" more consistent, and add one
more use for the Java Library feature. In addition, the auto select whould work
exactly like it does today.
Comment 3 Andrei Badea 2005-10-02 11:12:11 UTC
Thanks for the explanation, I understand now.
Comment 4 Andrei Badea 2005-10-18 15:41:30 UTC
*** Issue 67053 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Rechtacek 2009-10-16 14:09:32 UTC
Reassigned to new owner.