|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.port.database.DatabaseDriverLoader
public final class DatabaseDriverLoader
Utility class to load additional drivers from jar and zip to the
DriverManager
.
Field Summary | |
---|---|
static String[] |
EXTENSIONS
Allowed file extensions, jar and zip only. |
(package private) static String |
JDBC_ODBC_DRIVER
Name of the standard JDBC-ODBC database driver, sun.jdbc.odbc.JdbcOdbcDriver object. |
Method Summary | |
---|---|
static File |
getDriverFileForDriverClass(String driverClass)
Returns the absolute path for the driver class name from which it has been loaded. |
static Set<String> |
getLoadedDriver()
|
static String |
getURLForDriver(String driver)
Returns a URL protocol for a given Driver extended by
an default host, port, database name String. |
static void |
loadDriver(File file)
Loads Driver from the given file. |
(package private) static Driver |
registerDriver(String driver)
Registers given Driver at the DriverManager . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String JDBC_ODBC_DRIVER
public static final String[] EXTENSIONS
Method Detail |
---|
static Driver registerDriver(String driver) throws InvalidSettingsException
Driver
at the DriverManager
.
driver
- to register
InvalidSettingsException
- if the database drivers could not
registeredpublic static final void loadDriver(File file) throws IOException
Driver
from the given file.
file
- Load driver from.
IOException
- IOException
public static Set<String> getLoadedDriver()
public static final String getURLForDriver(String driver)
Driver
extended by
an default host, port, database name String. If no protocol URL has been
defined the default String staring with protocol is return.
driver
- the driver to match URL protocol
public static final File getDriverFileForDriverClass(String driverClass)
driverClass
- driver class name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |