亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? drivermanager.java

?? gcc的組建
?? JAVA
字號:
/* DriverManager.java -- Manage JDBC drivers   Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version. GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.sql;import java.io.PrintStream;import java.io.PrintWriter;import java.util.Enumeration;import java.util.Properties;import java.util.StringTokenizer;import java.util.Vector;/**  * This class manages the JDBC drivers in the system. It maintains a  * registry of drivers and locates the appropriate driver to handle a  * JDBC database URL.  * <p>  * On startup, <code>DriverManager</code> loads all the managers specified  * by the system property <code>jdbc.drivers</code>.  The value of this  * property should be a colon separated list of fully qualified driver  * class names.  Additional drivers can be loaded at any time by  * simply loading the driver class with <code>class.forName(String)</code>.  * The driver should automatically register itself in a static   * initializer.  * <p>  * The methods in this class are all <code>static</code>. This class  * cannot be instantiated.  *  * @author Aaron M. Renn (arenn@urbanophile.com)  */public class DriverManager {  /**   * This is the log stream for JDBC drivers.   */  private static PrintStream log_stream;  /**   * This is the log writer for JDBC drivers.   */  private static PrintWriter log_writer;  /**   * This is the login timeout used by JDBC drivers.   */  private static int login_timeout;  /**   * This is the list of JDBC drivers that are loaded.   */  private static Vector drivers;   // Hmm, seems like we might want to do a Hashtable and lookup by something,   // but what would it be?  // Load all drivers on startup  static  {    drivers = new Vector();    String driver_string = System.getProperty("jdbc.drivers");    if (driver_string != null)      {	StringTokenizer st = new StringTokenizer(driver_string);	while (st.hasMoreTokens())          {            String driver_classname = st.nextToken();            try              {        	Class.forName(driver_classname); // The driver registers itself              }            catch (Exception e)	      {		// Ignore not founds	      }          }      }  }  /** Can't be instantiated. */  private DriverManager()  {  }  /**   * This method returns the log writer being used by all JDBC drivers.   * This method should be used in place of the deprecated   * <code>getLogStream</code> method.   *   * @return The log writer in use by JDBC drivers.   */  public static PrintWriter getLogWriter()  {    return log_writer;  }    /**   * This method sets the log writer being used by JDBC drivers.  This is a   * system-wide parameter that affects all drivers.  Note that since there   * is no way to retrieve a <code>PrintStream</code> from a    * <code>PrintWriter</code>, this method cannot set the log stream in   * use by JDBC.  Thus any older drivers may not see this setting.   *   * @param out The new log writer for JDBC.   */  public static void setLogWriter(PrintWriter out)  {    DriverManager.log_writer = out;  }/**  * This method attempts to return a connection to the specified  * JDBC URL string using the specified connection properties.  *  * @param url The JDBC URL string to connect to.  * @param properties The connection properties.  *  * @return A <code>Connection</code> to that URL.  *  * @exception SQLException If an error occurs.  */  public static Connection getConnection(String url, Properties properties)    throws SQLException  {    Driver d = getDriver(url);    if (d == null)      throw new SQLException("Driver not found for URL: " + url);    return d.connect(url, properties);  }  /**   * This method attempts to return a connection to the specified   * JDBC URL string using the specified username and password.   *   * @param url The JDBC URL string to connect to.   * @param user The username to connect with.   * @param password The password to connect with.   * @return A <code>Connection</code> to that URL.   * @exception SQLException If an error occurs.   */  public static Connection getConnection(String url, String user,    String password) throws SQLException  {    Properties p = new Properties();    if (user != null)      p.setProperty("user", user);    if (password != null)      p.setProperty("password", password);    return getConnection(url, p);  }  /**   * This method attempts to return a connection to the specified   * JDBC URL string.   *   * @param url The JDBC URL string to connect to.   *   * @return A <code>Connection</code> to that URL.   *   * @exception SQLException If an error occurs.   */  public static Connection getConnection(String url) throws SQLException  {    return getConnection(url, new Properties());  }  /**   * This method returns a driver that can connect to the specified   * JDBC URL string.  This will be selected from among drivers loaded   * at initialization time and those drivers manually loaded by the   * same class loader as the caller.   *   * @param url The JDBC URL string to find a driver for.   *   * @return A <code>Driver</code> that can connect to the specified   * URL.   *   * @exception SQLException If an error occurs, or no suitable driver can be found.   */  public static Driver getDriver(String url) throws SQLException  {    // FIXME: Limit driver search to the appropriate subset of loaded drivers.    Enumeration e = drivers.elements();    while(e.hasMoreElements())      {	Driver d = (Driver)e.nextElement();	if (d.acceptsURL(url))          return d;      }    throw new SQLException("No driver found for " + url);  }  /**   * This method registers a new driver with the manager.  This is normally   * called by the driver itself in a static initializer.   *   * @param driver The new <code>Driver</code> to add.   *   * @exception SQLException If an error occurs.   */  public static void registerDriver(Driver driver) throws SQLException  {    if (! drivers.contains(driver))      drivers.addElement(driver);    }/**  * This method de-registers a driver from the manager.  *  * @param driver The <code>Driver</code> to unregister.  *  * @exception SQLException If an error occurs.  */  public static void deregisterDriver(Driver driver) throws SQLException  {    if (drivers.contains(driver))      drivers.removeElement(driver);  }  /**   * This method returns a list of all the currently registered JDBC drivers   * that were loaded by the current <code>ClassLoader</code>.   *   * @return An <code>Enumeration</code> of all currently loaded JDBC drivers.   */  public static Enumeration getDrivers()  {    Vector v = new Vector();    Enumeration e = drivers.elements();    // Is this right?    ClassLoader cl = Thread.currentThread().getContextClassLoader();    while(e.hasMoreElements())      {	Object obj = e.nextElement();	ClassLoader loader = obj.getClass().getClassLoader();	if (loader == null)	  loader = ClassLoader.getSystemClassLoader();	if (! loader.equals(cl))	  continue;	v.addElement(obj);      }     return v.elements();  }  /**   * This method set the login timeout used by JDBC drivers.  This is a   * system-wide parameter that applies to all drivers.   *   * @param login_timeout The new login timeout value.   */  public static void setLoginTimeout(int seconds)  {    DriverManager.login_timeout = login_timeout;    }  /**   * This method returns the login timeout in use by JDBC drivers systemwide.   *   * @return The login timeout.   */  public static int getLoginTimeout()  {    return login_timeout;  }  /**   * This method sets the log stream in use by JDBC.   *   * @param log_stream The log stream in use by JDBC.   *   * @deprecated Use <code>setLogWriter</code> instead.   */  public static void setLogStream(PrintStream out)  {    DriverManager.log_stream = log_stream;  }  /**   * This method returns the log stream in use by JDBC.   *   * @return The log stream in use by JDBC.   *   * @deprecated Use <code>getLogWriter()</code> instead.   */  public static PrintStream getLogStream()  {    return log_stream;  }  /**   * This method prints the specified line to the log stream.   *   * @param str The string to write to the log stream.   */  public static void println(String message)  {    if (log_stream != null) // Watch for user not using logging      log_stream.println(message);  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清久久久久久| 777午夜精品视频在线播放| 久久精品综合网| 国产成a人亚洲精| 亚洲影视在线观看| 欧美怡红院视频| 日韩电影在线观看网站| 欧美一区日韩一区| 国产精品一区二区三区网站| 国产精品大尺度| 欧美综合在线视频| 麻豆视频一区二区| 国产欧美日本一区二区三区| 99久久精品久久久久久清纯| 亚洲成精国产精品女| 91精品国产91综合久久蜜臀| 国产精品影视在线观看| 亚洲天堂福利av| 欧美日韩高清在线| 国产一区二区美女| 亚洲欧美另类小说| 日韩欧美精品在线| 成人黄色一级视频| 午夜免费久久看| 国产午夜亚洲精品羞羞网站| 91成人免费在线| 久久aⅴ国产欧美74aaa| 成人欧美一区二区三区白人| 91精品欧美综合在线观看最新 | 国产精品伊人色| 亚洲精品乱码久久久久久久久| 欧美一级国产精品| 97久久精品人人澡人人爽| 日韩av一区二区在线影视| 国产精品传媒在线| 日韩无一区二区| 在线视频国产一区| 国产69精品久久久久毛片| 亚洲电影一区二区三区| 亚洲国产精华液网站w| 91精品国产福利| 91视视频在线观看入口直接观看www | 欧美日韩三级一区| 成人性生交大片免费看视频在线| 偷拍亚洲欧洲综合| 日韩一区在线看| 国产午夜精品理论片a级大结局| 欧美精选午夜久久久乱码6080| 99久久精品免费精品国产| 激情欧美一区二区| 性感美女久久精品| 亚洲品质自拍视频| 中文字幕 久热精品 视频在线| 日韩美女视频在线| 欧美日韩精品一区二区在线播放| 99久久亚洲一区二区三区青草| 精品一区二区三区在线观看| 日韩高清不卡在线| 亚洲一区中文日韩| 亚洲欧美另类图片小说| 国产精品国产三级国产普通话三级| 亚洲精品福利视频网站| 欧美激情一区二区三区蜜桃视频 | 欧美日韩一区视频| 日本久久一区二区三区| 不卡一区二区在线| 成人av电影免费观看| 国产综合成人久久大片91| 久久se精品一区精品二区| 美国十次综合导航| 久久精品免费观看| 激情久久五月天| 国产一区二区免费视频| 国产一区二区在线视频| 精品在线视频一区| 国产尤物一区二区在线| 国产一区欧美一区| 国产九色精品成人porny| 国精产品一区一区三区mba视频| 精品一区二区三区视频| 国产一区美女在线| 高清在线成人网| 99久久免费视频.com| 99国产精品久久久久| 色久综合一二码| 欧美亚洲国产一区二区三区 | 一区二区三区av电影| 一区二区三区自拍| 亚洲va欧美va天堂v国产综合| 丝袜亚洲精品中文字幕一区| 美国十次综合导航| 国产麻豆欧美日韩一区| 丁香亚洲综合激情啪啪综合| 91玉足脚交白嫩脚丫在线播放| 91国产视频在线观看| 精品视频在线免费| 精品日产卡一卡二卡麻豆| 国产三级精品三级| 中文字幕中文字幕中文字幕亚洲无线| 亚洲乱码国产乱码精品精可以看| 亚洲自拍偷拍麻豆| 日韩国产成人精品| 国产高清精品网站| 91在线视频播放地址| 欧美精品v国产精品v日韩精品 | 欧美成人乱码一区二区三区| 久久久久九九视频| 国产精品福利一区| 日韩不卡免费视频| 国产成人免费视| 欧美午夜理伦三级在线观看| 91精品麻豆日日躁夜夜躁| 久久色视频免费观看| 1区2区3区欧美| 麻豆国产一区二区| 99re热这里只有精品免费视频| 91精品国产免费| 国产精品乱码一区二区三区软件| 亚洲1区2区3区视频| 黄色精品一二区| 久久精品欧美日韩| 一区二区三区成人在线视频| 美女视频一区二区| 91久久免费观看| 国产日产欧美一区二区视频| 亚洲国产综合人成综合网站| 国产成人精品免费看| 欧美精品一级二级三级| 国产精品国产精品国产专区不片| 日本免费在线视频不卡一不卡二 | 日本电影欧美片| 久久久.com| 免费人成在线不卡| 色婷婷av一区二区三区gif| 久久久久9999亚洲精品| 日本在线不卡一区| 97久久超碰国产精品| 久久尤物电影视频在线观看| 亚洲成人自拍偷拍| 91视视频在线观看入口直接观看www | 成人av小说网| www国产成人免费观看视频 深夜成人网| 亚洲综合视频在线| 成熟亚洲日本毛茸茸凸凹| 日韩欧美一区在线观看| 亚洲夂夂婷婷色拍ww47| av不卡免费在线观看| 久久精品这里都是精品| 久久超级碰视频| 日韩一区二区三区四区| 亚洲午夜精品在线| 色婷婷综合久色| 中文字幕日本乱码精品影院| 国产v综合v亚洲欧| 久久精品综合网| 国产精品自在欧美一区| 日韩精品在线一区| 日韩av二区在线播放| 宅男在线国产精品| 日韩精品福利网| 欧美日韩成人在线一区| 一区二区三区日韩在线观看| 97久久久精品综合88久久| 国产精品久久久久影院亚瑟| 成人午夜电影网站| 国产日产欧产精品推荐色| 国产成人午夜高潮毛片| 国产精品美女久久福利网站| 成人av动漫在线| 最新国产の精品合集bt伙计| 97se亚洲国产综合自在线 | 欧美性xxxxxx少妇| 亚洲一区二区黄色| 欧美日本视频在线| 麻豆精品一区二区三区| 精品精品国产高清一毛片一天堂| 久久99国产精品久久99| 国产日韩高清在线| 91视频.com| 亚洲一区中文日韩| 日韩亚洲欧美综合| 国产一区二区主播在线| 中文字幕在线播放不卡一区| 日本韩国精品一区二区在线观看| 亚洲亚洲精品在线观看| 欧美一级艳片视频免费观看| 久久精工是国产品牌吗| 久久久99免费| 日韩一区二区免费在线电影| 精品一区二区三区免费视频| 国产视频亚洲色图| 一本色道亚洲精品aⅴ| 午夜不卡av免费| 国产亚洲成av人在线观看导航| 色诱视频网站一区| 日本一不卡视频| 中文字幕免费观看一区| 欧美天天综合网| 国产在线精品国自产拍免费| 亚洲乱码中文字幕|