public final class JDBCDriver extends Object
Modifier and Type | Method and Description |
---|---|
static JDBCDriver |
create(String name,
String displayName,
String clazz,
URL[] urls)
Creates a new JDBCDriver instance.
|
boolean |
equals(Object obj) |
String |
getClassName()
Returns the JDBC driver class name.
|
String |
getDisplayName()
Returns the display name of the driver (used for example to display the driver in the UI).
|
Driver |
getDriver()
Get a reference to the underlying java.sql.Driver for this JDBCDriver.
|
String |
getName()
Return the programmatic driver name.
|
URL[] |
getURLs()
Returns the array of the JDBC driver files URLs.
|
int |
hashCode() |
String |
toString() |
public static JDBCDriver create(String name, String displayName, String clazz, URL[] urls)
name
- the programmatic name of the driver; must not be null.displayName
- the display name of the driver (used for example to display the driver in the UI); must not be null.clazz
- the JDBC driver class; must not be null.urls
- the array of the JDBC driver files URLs; must not be null.NullPointerException
- if any of the parameters is null.public URL[] getURLs()
public String getClassName()
public String getDisplayName()
public String getName()
public Driver getDriver() throws DatabaseException
DatabaseException
- if there was an error trying to get the driver instance