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

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

?? dbconnectionprovider.java

?? 這是學習Java必須讀懂兩套源代碼
?? JAVA
字號:
/**
 * Copyright (C) 2001 Yasna.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        Yasna.com (http://www.yasna.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Yazd" and "Yasna.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact yazd@yasna.com.
 *
 * 5. Products derived from this software may not be called "Yazd",
 *    nor may "Yazd" appear in their name, without prior written
 *    permission of Yasna.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL YASNA.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of Yasna.com. For more information
 * on Yasna.com, please see <http://www.yasna.com>.
 */

/**
 * Copyright (C) 2000 CoolServlets.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        CoolServlets.com (http://www.coolservlets.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Jive" and "CoolServlets.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact webmaster@coolservlets.com.
 *
 * 5. Products derived from this software may not be called "Jive",
 *    nor may "Jive" appear in their name, without prior written
 *    permission of CoolServlets.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL COOLSERVLETS.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CoolServlets.com. For more information
 * on CoolServlets.com, please see <http://www.coolservlets.com>.
 */

package com.Yasna.forum.database;

import java.sql.Connection;
import java.util.Enumeration;

/**
 * Abstract class that defines the connection provider framework. Other classes
 * extend this abstract class to make connection to actual data sources.
 */
public abstract class DbConnectionProvider {

    /** Dummy values. Override in subclasses. **/
    private static final String NAME = "";
    private static final String DESCRIPTION = "";
    private static final String AUTHOR = "";
    private static final int MAJOR_VERSION = 0;
    private static final int MINOR_VERSION = 0;
    private static final boolean POOLED = false;

    /**
     * Returns the name of the connection provider.
     *
     * @return the name of the connection provider.
     */
    public String getName() {
        return NAME;
    }

    /**
     * Returns a description of the connection provider.
     *
     * @return the description of the connection provider.
     */
    public String getDescription() {
        return DESCRIPTION;
    }

    /**
     * Returns the author of the connection provider.
     *
     * @return the name of the author of this connection provider.
     */
    public String getAuthor() {
        return AUTHOR;
    }

    /**
     * Returns the major version of the connection provider, i.e. 1.x.
     *
     * @return the major version number of the provider.
     */
    public int getMajorVersion() {
        return MAJOR_VERSION;
    }

    /**
     * Returns the minor version of the connection provider, i.e. x.1.
     *
     * @return the minor version number of the provider.
     */
    public int getMinorVersion() {
        return MINOR_VERSION;
    }

    /**
     * Returns true if this connection provider provides connections out
     * of a connection pool. Implementing and using connection providers that
     * are pooled is strongly recommended, as they greatly increase the speed
     * of Yazd.
     *
     * @return true if the Connection objects returned by this provider are
     *      pooled.
     */
    public boolean isPooled() {
        return POOLED;
    }

    /**
     * Returns a database connection. When a Yazd component is done with a
     * connection, it will call the close method of that connection. Therefore,
     * connection pools with special release methods are not directly
     * supported by the connection provider infrastructure. Instead, connections
     * from those pools should be wrapped such that calling the close method
     * on the wrapper class will release the connection from the pool.
     *
     * @return a Connection object.
     */
    public abstract Connection getConnection();

    /**
     * Starts the connection provider. For some connection providers, this
     * will be a no-op. However, connection provider users should always call
     * this method to make sure the connection provider is started.
     */
    protected abstract void start();

    /**
     * This method should be called whenever properties have been changed so
     * that the changes will take effect.
     */
    protected abstract void restart();

    /**
     * Tells the connection provider to destroy itself. For many connection
     * providers, this will essentially result in a no-op. However,
     * connection provider users should always call this method when changing
     * from one connection provider to another to ensure that there are no
     * dangling database connections.
     */
    protected abstract void destroy();

    /**
     * Returns the value of a property of the connection provider.
     *
     * @param name the name of the property.
     * @return the value of the property.
     */
    public abstract String getProperty(String name);

    /**
     * Returns the description of a property of the connection provider.
     *
     * @param name the name of the property.
     * @return the description of the property.
     */
    public abstract String getPropertyDescription(String name);

    /**
     * Returns an enumeration of the property names for the connection provider.
     *
     * @return an Enumeration of the property names.
     */
    public abstract Enumeration propertyNames();

    /**
     * Sets a property of the connection provider. Each provider has a set number
     * of properties that are determined by the author. Trying to set a non-
     * existant property will result in an IllegalArgumentException.
     *
     * @param name the name of the property to set.
     * @param value the new value for the property.
     */
    public abstract void setProperty(String name, String value);

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品中文在线| 色综合中文综合网| 久久国产精品99久久人人澡| 99久久精品免费| 国产日韩欧美精品一区| 国产乱色国产精品免费视频| 精品日韩在线观看| 免费观看成人av| www国产成人| 北条麻妃国产九九精品视频| 久久爱www久久做| 久久久精品蜜桃| 91在线国内视频| 亚洲第一二三四区| 日韩网站在线看片你懂的| 国产在线精品一区在线观看麻豆| 久久这里只有精品6| 波多野结衣中文一区| 亚洲在线中文字幕| 日本一区二区免费在线 | 欧美人牲a欧美精品| 狠狠色丁香久久婷婷综合_中| 国产精品传媒入口麻豆| 6080国产精品一区二区| 成人丝袜18视频在线观看| 中文字幕国产一区二区| 欧美一区二区三区系列电影| 成人黄色电影在线| 五月婷婷欧美视频| 成人欧美一区二区三区小说 | 日韩成人av影视| 国产精品二三区| 日韩一区二区三区电影在线观看| av一区二区三区| 国产美女精品在线| 精品综合久久久久久8888| 亚洲午夜免费视频| 最新不卡av在线| 亚洲欧美一区二区三区久本道91 | 亚洲三级电影网站| 久久久久99精品国产片| 久久婷婷国产综合精品青草 | 日韩一区二区三区电影| 在线免费观看不卡av| 93久久精品日日躁夜夜躁欧美| 国产成人免费视频网站| 国产精品亚洲专一区二区三区| 五月天亚洲婷婷| 日韩福利电影在线观看| 亚洲午夜免费视频| 日韩综合在线视频| 免费成人在线网站| 国产一区不卡视频| 大美女一区二区三区| 成人久久18免费网站麻豆| 国产成人精品亚洲日本在线桃色| 精品一区二区免费在线观看| 国产精品影视网| eeuss鲁片一区二区三区在线看| 国产成人亚洲综合a∨婷婷 | 韩国欧美一区二区| 成人小视频在线观看| 91福利小视频| 欧美一区二区视频在线观看| 国产精品99久久久久久似苏梦涵| jlzzjlzz欧美大全| 欧美肥妇bbw| 国产精品久久久久9999吃药| 五月婷婷欧美视频| 成人黄动漫网站免费app| 欧美日韩一区二区三区在线| 欧美mv日韩mv亚洲| 亚洲欧美电影一区二区| 日本欧美在线看| 91美女片黄在线观看91美女| 日韩免费看的电影| 亚洲欧美自拍偷拍| 狠狠色综合播放一区二区| 91黄色免费观看| 欧美国产在线观看| 久久超碰97中文字幕| 91精品国产一区二区三区香蕉| 国产精品免费人成网站| 国产又粗又猛又爽又黄91精品| 欧美自拍偷拍午夜视频| 中文字幕乱码一区二区免费| 日本一区中文字幕 | 国产盗摄女厕一区二区三区| 在线不卡一区二区| 亚洲电影在线播放| 99国产精品久久久久久久久久久| 欧美成人福利视频| 日本中文一区二区三区| 丁香啪啪综合成人亚洲小说| 久久人人97超碰com| 久草在线在线精品观看| 日韩欧美一区二区不卡| 国产精品18久久久久| 日韩视频在线观看一区二区| 亚洲123区在线观看| 成人激情免费视频| 国产欧美日韩在线观看| 成人午夜在线视频| 中文字幕第一区二区| 成人久久视频在线观看| 中文一区在线播放| 91福利精品视频| 亚洲最新视频在线播放| 欧美精选一区二区| 日韩国产欧美视频| 久久久国际精品| 色综合视频在线观看| 一区二区三区精品| 91精品国产麻豆国产自产在线 | 精品国产乱码久久久久久夜甘婷婷| 热久久免费视频| 国产精品乱子久久久久| 色噜噜狠狠成人网p站| 免费在线观看一区二区三区| 国产三级一区二区三区| 一本到一区二区三区| 奇米影视7777精品一区二区| 久久久91精品国产一区二区精品 | 欧美精品一区二区三区蜜桃| 国产河南妇女毛片精品久久久| 亚洲免费在线电影| 久久综合狠狠综合| 欧美三级电影网站| 欧美日韩一区小说| 国产精品综合av一区二区国产馆| 亚洲综合在线视频| 久久精品人人做人人综合| 色欧美片视频在线观看| 国产成人在线视频网址| 亚洲va欧美va国产va天堂影院| 国产女同互慰高潮91漫画| 日韩一区二区三区三四区视频在线观看| 国产乱人伦精品一区二区在线观看| 亚洲国产视频在线| 1区2区3区欧美| 国产精品日日摸夜夜摸av| 欧美变态tickling挠脚心| 91.com在线观看| 91国产视频在线观看| 色综合亚洲欧洲| 在线这里只有精品| 欧美日韩成人在线一区| 欧美日本韩国一区二区三区视频| 欧美性三三影院| 欧美日韩极品在线观看一区| 欧美日韩高清一区| 91精品欧美一区二区三区综合在 | 99re这里只有精品首页| 色综合婷婷久久| 欧美日本在线观看| 日韩无一区二区| 国产亚洲婷婷免费| 国产精品久久二区二区| 亚洲免费在线看| 日日欢夜夜爽一区| 国产老女人精品毛片久久| 国产·精品毛片| 在线欧美小视频| 久久新电视剧免费观看| 国产精品欧美综合在线| 亚洲在线免费播放| 看电视剧不卡顿的网站| 国产精品亚洲午夜一区二区三区 | 极品少妇xxxx精品少妇| 波多野结衣精品在线| 欧美三级三级三级爽爽爽| 欧美大片在线观看| 中文字幕日韩欧美一区二区三区| 亚洲国产色一区| 狠狠色丁香婷婷综合| 欧美午夜精品久久久久久孕妇 | 欧美一区二区性放荡片| 国产精品久久久久久亚洲伦| 日韩精品每日更新| 风流少妇一区二区| 26uuu亚洲| 久久福利视频一区二区| 精品视频一区三区九区| 日本一区二区免费在线| 精品一二三四在线| 欧美色图激情小说| 亚洲男女一区二区三区| 97久久精品人人做人人爽 | 91精选在线观看| 亚洲福利电影网| 色婷婷av久久久久久久| 国产精品护士白丝一区av| 粉嫩av一区二区三区| 久久亚洲一区二区三区明星换脸| 婷婷丁香激情综合| 日韩一区二区三| 激情图区综合网| 国产婷婷色一区二区三区在线| 日产国产欧美视频一区精品| 欧美日韩在线三区|