01: /*
02: * @(#)DriverManager.java 1.2 04/12/06
03: *
04: * Copyright (c) 1997-2003 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package pnuts.jdbc;
10:
11: import java.sql.Connection;
12: import java.sql.SQLException;
13: import java.util.Properties;
14:
15: /*
16: * A workaround for http://developer.java.sun.com/developer/bugParade/bugs/4507707.html
17: */
18: public class DriverManager {
19:
20: public static Connection getConnection(String url, String user,
21: String password) throws SQLException {
22: return java.sql.DriverManager
23: .getConnection(url, user, password);
24: }
25:
26: public static Connection getConnection(String url, Properties props)
27: throws SQLException {
28: return java.sql.DriverManager.getConnection(url, props);
29: }
30:
31: public static Connection getConnection(String url)
32: throws SQLException {
33: return java.sql.DriverManager.getConnection(url);
34: }
35: }
|