org.apache.geronimo.jdbc
Class DelegatingDriver

java.lang.Object
  extended by org.apache.geronimo.jdbc.DelegatingDriver
All Implemented Interfaces:
Driver

public class DelegatingDriver
extends Object
implements Driver

Class to sneak around idiotic classloading restrictions in DriverManager. This basically does the same as DriverManager except that you register Driver instances directly.


Constructor Summary
DelegatingDriver()
           
 
Method Summary
 boolean acceptsURL(String url)
           
 Connection connect(String url, Properties info)
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
           
 boolean jdbcCompliant()
           
static void registerDriver(Driver instance)
           
static void unregisterDriver(Driver instance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingDriver

public DelegatingDriver()
Method Detail

registerDriver

public static void registerDriver(Driver instance)

unregisterDriver

public static void unregisterDriver(Driver instance)

connect

public Connection connect(String url,
                          Properties info)
                   throws SQLException
Specified by:
connect in interface Driver
Throws:
SQLException

acceptsURL

public boolean acceptsURL(String url)
                   throws SQLException
Specified by:
acceptsURL in interface Driver
Throws:
SQLException

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String url,
                                            Properties info)
                                     throws SQLException
Specified by:
getPropertyInfo in interface Driver
Throws:
SQLException

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface Driver

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface Driver

jdbcCompliant

public boolean jdbcCompliant()
Specified by:
jdbcCompliant in interface Driver


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.