|
org.netbeans.modules.db/0 1.20.0 4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.db.explorer.JDBCDriverManager
public final class JDBCDriverManager
This class manages the list of JDBC drivers registered in the Database Explorer.
| Method Summary | |
|---|---|
void |
addDriver(JDBCDriver driver)
Adds a new JDBC driver. |
void |
addDriverListener(JDBCDriverListener listener)
Registers a JDBCDriverListener. |
static JDBCDriverManager |
getDefault()
Gets the JDBCDriverManager singleton instance. |
JDBCDriver[] |
getDrivers()
Gets the registered JDBC drivers. |
JDBCDriver[] |
getDrivers(String drvClass)
Gets the registered JDBC drivers with the specified class name. |
void |
removeDriver(JDBCDriver driver)
Removes a JDBC driver. |
void |
removeDriverListener(JDBCDriverListener listener)
Unregisters the specified JDBCDriverListener. |
void |
showAddDriverDialog()
Shows the Add Driver dialog, allowing the user to add a new JDBC driver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JDBCDriverManager getDefault()
public JDBCDriver[] getDrivers()
public JDBCDriver[] getDrivers(String drvClass)
drvClass - driver class name; must not be null.
NullPointerException - if the specified class name is null.public void addDriver(JDBCDriver driver) throws DatabaseException
driver - the JDBCDriver instance describing the driver to be added;
must not be null.
NullPointerException - if the specified driver is null.
DatabaseException if an error occurred while adding the driver.
DatabaseExceptionpublic void removeDriver(JDBCDriver driver) throws DatabaseException
driver - the JDBCDriver instance to be removed.
DatabaseException - if an error occurred while adding the driver.public void showAddDriverDialog()
public void addDriverListener(JDBCDriverListener listener)
public void removeDriverListener(JDBCDriverListener listener)
|
org.netbeans.modules.db/0 1.20.0 4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||