@@ -0,0 +1,1767 @@
+/*%0A * FindBugs - Find Bugs in Java programs%0A * Copyright (C) 2003-2008 University of Maryland%0A * %0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A * %0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A * %0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A */%0A%0Apackage edu.umd.cs.findbugs.cloud.db;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.Driver;%0Aimport java.sql.DriverPropertyInfo;%0Aimport java.sql.SQLException;%0Aimport java.util.Properties;%0A%0A/**%0A * http://www.kfu.com/~nsayer/Java/dyn-jdbc.html%0A */%0Aclass DriverShim implements Driver %7B%0A%09private Driver driver;%0A%09DriverShim(Driver d) %7B%0A%09%09this.driver = d;%0A%09%7D%0A%09public boolean acceptsURL(String u) throws SQLException %7B%0A%09%09return this.driver.acceptsURL(u);%0A%09%7D%0A%09public Connection connect(String u, Properties p) throws SQLException %7B%0A%09%09return this.driver.connect(u, p);%0A%09%7D%0A%09public int getMajorVersion() %7B%0A%09%09return this.driver.getMajorVersion();%0A%09%7D%0A%09public int getMinorVersion() %7B%0A%09%09return this.driver.getMinorVersion();%0A%09%7D%0A%09public DriverPropertyInfo%5B%5D getPropertyInfo(String u, Properties p) throws SQLException %7B%0A%09%09return this.driver.getPropertyInfo(u, p);%0A%09%7D%0A%09public boolean jdbcCompliant() %7B%0A%09%09return this.driver.jdbcCompliant();%0A%09%7D%0A%0A%7D

handle sql drivers not loaded by system class loader