edu.udo.cs.yale.tools.jdbc
Class DatabaseService

java.lang.Object
  extended by 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

Field Summary
private static java.util.List<JDBCProperties> jdbcProperties
           
 
Constructor Summary
DatabaseService()
           
 
Method Summary
private static void addDriverInformation(org.w3c.dom.Element driverElement)
           
static java.lang.String[] getAllDriverNames()
           
static java.util.Enumeration<java.sql.Driver> getAllDrivers()
           
static java.lang.String[] getDBSystemNames()
           
static java.util.List<JDBCProperties> getJDBCProperties()
           
static void init()
           
private static void loadJDBCProperties(java.io.File file)
           
private static void registerAllJDBCDrivers()
           
private static void registerClasspathJDBCDrivers(java.io.File file)
           
private static void registerDynamicJDBCDriver(java.net.URLClassLoader ucl, java.lang.String driverName)
           
private static void registerDynamicJDBCDrivers(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdbcProperties

private static java.util.List<JDBCProperties> jdbcProperties
Constructor Detail

DatabaseService

public DatabaseService()
Method Detail

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