DriverManager.java :  » Scripting » Pnuts » pnuts » jdbc » Java Open Source

Java Open Source » Scripting » Pnuts 
Pnuts » pnuts » jdbc » DriverManager.java
/*
 * @(#)DriverManager.java 1.2 04/12/06
 *
 * Copyright (c) 1997-2003 Sun Microsystems, Inc. All Rights Reserved.
 *
 * See the file "LICENSE.txt" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 */
package pnuts.jdbc;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;

/*
 * A workaround for http://developer.java.sun.com/developer/bugParade/bugs/4507707.html
 */
public class DriverManager {

  public static Connection getConnection(String url,
                       String user,
                       String password)
    throws SQLException
  {
      return java.sql.DriverManager.getConnection(url, user, password);
  }

  public static Connection getConnection(String url, Properties props)
    throws SQLException
  {
      return java.sql.DriverManager.getConnection(url, props);
  }

  public static Connection getConnection(String url)
    throws SQLException
  {
      return java.sql.DriverManager.getConnection(url);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.