edu.udo.cs.yale.tools.jdbc
Class DatabaseService
java.lang.Object
edu.udo.cs.yale.tools.jdbc.DatabaseService
public class DatabaseService
- extends java.lang.Object
This service class dynamically registers (additional) JDBC drivers. Please note that drivers
cannot be created by Class.forName() but will just be instantiated automatically via
DriverManager.getConnection(...).
- Version:
- $Id: DatabaseService.java,v 1.5 2006/09/29 10:29:10 ingomierswa Exp $
- Author:
- Ingo Mierswa
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jdbcProperties
private static java.util.List<JDBCProperties> jdbcProperties
DatabaseService
public DatabaseService()
init
public static void init()
registerAllJDBCDrivers
private static void registerAllJDBCDrivers()
registerDynamicJDBCDrivers
private static void registerDynamicJDBCDrivers(java.io.File file)
registerDynamicJDBCDriver
private static void registerDynamicJDBCDriver(java.net.URLClassLoader ucl,
java.lang.String driverName)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.sql.SQLException
- Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.sql.SQLException
registerClasspathJDBCDrivers
private static void registerClasspathJDBCDrivers(java.io.File file)
loadJDBCProperties
private static void loadJDBCProperties(java.io.File file)
addDriverInformation
private static void addDriverInformation(org.w3c.dom.Element driverElement)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAllDrivers
public static java.util.Enumeration<java.sql.Driver> getAllDrivers()
getAllDriverNames
public static java.lang.String[] getAllDriverNames()
getJDBCProperties
public static java.util.List<JDBCProperties> getJDBCProperties()
getDBSystemNames
public static java.lang.String[] getDBSystemNames()
Copyright © 2001-2006