org.deegree.commons.jdbc
Class DriverWrapper

java.lang.Object
  extended by org.deegree.commons.jdbc.DriverWrapper
All Implemented Interfaces:
Driver

public class DriverWrapper
extends Object
implements Driver

Workaround class to fix inability of DriverManager to accept classes not loaded with system class loader...

Version:
$Revision: 32026 $, $Date: 2011-09-27 17:19:11 +0200 (Tue, 27 Sep 2011) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

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

Constructor Detail

DriverWrapper

public DriverWrapper(Driver d)
Method Detail

acceptsURL

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

connect

public Connection connect(String url,
                          Properties info)
                   throws SQLException
Specified by:
connect 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

getPropertyInfo

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

jdbcCompliant

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

getParentLogger

public Logger getParentLogger()
                       throws SQLFeatureNotSupportedException
Throws:
SQLFeatureNotSupportedException


Copyright © 2011. All Rights Reserved.