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

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

?? abstractconnectionmanager.java

?? 一個java方面的消息訂閱發送的源碼
?? JAVA
字號:
/**
 * Redistribution and use of this software and associated documentation
 * ("Software"), with or without modification, are permitted provided
 * that the following conditions are met:
 *
 * 1. Redistributions of source code must retain copyright
 *    statements and notices.  Redistributions must also contain a
 *    copy of this document.
 *
 * 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 name "Exolab" must not be used to endorse or promote
 *    products derived from this Software without prior written
 *    permission of Exoffice Technologies.  For written permission,
 *    please contact info@exolab.org.
 *
 * 4. Products derived from this Software may not be called "Exolab"
 *    nor may "Exolab" appear in their names without prior written
 *    permission of Exoffice Technologies. Exolab is a registered
 *    trademark of Exoffice Technologies.
 *
 * 5. Due credit should be given to the Exolab Project
 *    (http://www.exolab.org/).
 *
 * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS
 * ``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
 * EXOFFICE TECHNOLOGIES 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.
 *
 * Copyright 2000-2003 (C) Exoffice Technologies Inc. All Rights Reserved.
 */
package org.exolab.jms.persistence;


/**
 * All concrete {@link DBConnectionManager} instances can extend this class.
 *
 * @version     $Revision: 1.1 $ $Date: 2004/11/26 01:50:44 $
 * @author      <a href="mailto:jima@intalio.com">Jim Alateras</a>
 * @see         org.exolab.jms.persistence.DBConnectionManager
 */
public abstract class AbstractConnectionManager
    implements DBConnectionManager {

    /**
     * The user name
     */
    private String _user;
    
    /**
     * The user's password
     */
    private String _password;
    
    /**
     * The JDBC driver class name
     */
    private String _driver;

    /**
     * The JDBC url
     */
    private String _url;

    /**
     * The maximum no. of active connections
     */
    private int _maxActive;

    /**
     * The maximum no. of idle connections
     */
    private int _maxIdle;

    /**
     * The minimum time that a connection may remain idle before it may be 
     * evicted, in seconds
     */
    private long _minIdleTime;

    /**
     * The interval between checking idle connections for eviction, in seconds
     */
    private long _evictionInterval;

    /**
     * The SQL query to validate connections
     */
    private String _testQuery;

    /**
     * Determines if connections should be tested before use,
     * using {@link #_testQuery}
     */
    private boolean _testBeforeUse = false;


    /**
     * Sets the user name that is used to obtain the connection
     *
     * @param name the user name
     */
    public void setUser(String name) {
        _user = name;
    }

    /**
     * Returns the user's name
     *
     * @return the user's name
     */
    public String getUser() {
        return _user;
    }

    /**
     * Sets the user's password that is used to access the database
     *
     * @param password the user's password
     */
    public void setPassword(String password) {
        _password = password;
    }

    /**
     * Returns the user's password
     *
     * @return the user's password
     */
    public String getPassword() {
        return _password;
    }

    /**
     * Sets the JDBC driver class name
     *
     * @param driver the JDBC driver class name
     */
    public void setDriver(String driver) {
        _driver = driver;
    }

    /**
     * Returns the JDBC driver class name
     *
     * @return the JDBC driver class name
     */
    public String getDriver() {
        return _driver;
    }

    /**
     * Sets the URL to the database
     *
     * @param url the JDBC URL
     */
    public void setURL(String url) {
        _url = url;
    }

    /**
     * Returns the JDBC URL
     *
     * @return the JDBC URL
     */
    public String getURL() {
        return _url;
    }

    /**
     * Sets the maximum number of active connections that can be allocated from
     * this pool at the same time, or zero for no limit.
     *
     * @param active the maximum number of active connections
     */
    public void setMaxActive(int active) {
        _maxActive = active;
    }

    /**
     * Returns the maximum number of active connections that can be allocated 
     * from this pool at the same time. 
     *
     * @return the maximum number of active connections
     */
    public int getMaxActive() {
        return _maxActive;
    }

    /**
     * Sets the maximum number of connections that can sit idle in the 
     * connection pool, before connections are evicted.
     *
     * @param idle the maximum number of idle connections
     */
    public void setMaxIdle(int idle) {
        _maxIdle = idle;
    }

    /**
     * Returns the maximum number of connections that can sit idle in the 
     * connection pool, before connections are evicted.
     *
     * @return the maximum number of idle connections
     */
    public int getMaxIdle() {
        return _maxIdle;
    }

    /**
     * Sets the minimum time that a connection may remain idle
     * before it may be evicted, or zero for no eviction.
     *
     * @param time the idle time, in seconds
     */
    public void setMinIdleTime(long time) {
        _minIdleTime = time;
    }

    /**
     * Returns the minimum time that a connection may remain idle
     * before it may be evicted
     *
     * @return the minimum idle time, in seconds
     */
    public long getMinIdleTime() {
        return _minIdleTime;
    }

    /**
     * Sets the interval between checking idle connections for eviction.
     * Idle connections are removed after {@link #setMinIdleTime} seconds, 
     * or if {@ link #testQuery} is specified, and the query fails.
     *
     * @param interval the eviction interval, in seconds
     */
    public void setEvictionInterval(long interval) {
        _evictionInterval = interval;
    }

    /**
     * Returns the interval between checking idle connections for eviction.
     *
     * @return the eviction interval, in seconds
     */
    public long getEvictionInterval() {
        return _evictionInterval;
    }

    /**
     * Specifies an SQL query to validate connections. This query
     * should return at least one row, and be fast to execute.
     *
     * @param query the test query
     */
    public void setTestQuery(String query) {
        _testQuery = query;
    }

    /**
     * Returns the SQL query to validate connections.
     *
     * @return the test query
     */
    public String getTestQuery() {
        return _testQuery;
    }

    /**
     * Determines if connections should be tested before use.
     * If true, each connection is tested before being returned.
     * If a connection fails, it is discarded, and another connection
     * allocated. This ensures a higher reliability, at the cost of
     * performance.
     *
     * @param test if <code>true</code>, each connection is tested use.
     */
    public void setTestBeforeUse(boolean test) {
        _testBeforeUse = test;
    }

    /**
     * Returns if connections should be tested before use.
     *
     * @return <code>true</code> if each connection should be tested before 
     * being used.
     */
    public boolean getTestBeforeUse() {
        return _testBeforeUse;
    }

} //-- AbstractConnectionManager

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲男人的天堂一区二区| 国产精品午夜春色av| 91丨国产丨九色丨pron| 国产成人免费在线观看不卡| 蜜桃视频在线观看一区| 樱花影视一区二区| 伊人色综合久久天天| 亚洲精品一二三四区| 亚洲色图清纯唯美| 亚洲综合视频在线观看| 亚洲永久精品国产| 一区二区三区精品视频在线| 亚洲成人777| 天使萌一区二区三区免费观看| 日韩精品亚洲一区| 美女视频网站久久| 紧缚奴在线一区二区三区| 国产精品影视天天线| av电影在线观看完整版一区二区| 91丨九色丨尤物| 欧美精品久久久久久久多人混战 | 国产91精品露脸国语对白| 国产伦精品一区二区三区视频青涩| 国产一区欧美日韩| av不卡在线观看| 欧美性极品少妇| 日韩精品专区在线影院观看| 国产午夜精品一区二区三区四区 | 在线免费观看日韩欧美| 91精品国产综合久久久久| 日韩写真欧美这视频| 中文字幕国产精品一区二区| 亚洲精品久久久蜜桃| 爽好久久久欧美精品| 国产成人a级片| 91福利精品第一导航| 久久一区二区三区国产精品| 亚洲欧美怡红院| 麻豆精品国产传媒mv男同 | 91色.com| 日韩一区二区三区免费看| 国产精品三级在线观看| 亚洲成av人片在线观看无码| 国产成人精品午夜视频免费| 在线不卡一区二区| 中文字幕在线一区二区三区| 久久www免费人成看片高清| 91啪亚洲精品| 国产人久久人人人人爽| 天天综合天天综合色| 成人app软件下载大全免费| 日韩欧美在线一区二区三区| 亚洲精品国产精品乱码不99| 国产一区91精品张津瑜| 69堂精品视频| 一区二区三区四区高清精品免费观看| 国产一区二区三区| 91精品国产综合久久蜜臀| 亚洲靠逼com| 国产99精品在线观看| 精品少妇一区二区三区 | 日韩一级在线观看| 亚洲免费观看高清完整版在线观看 | 51精品久久久久久久蜜臀| 久久精品一区二区三区不卡| 免费三级欧美电影| 欧美在线免费播放| 亚洲欧美偷拍另类a∨色屁股| 国产成人免费av在线| 久久久欧美精品sm网站| 久久99精品久久久| 精品久久国产老人久久综合| 日韩电影在线免费| 7777精品伊人久久久大香线蕉超级流畅| 亚洲欧美激情在线| 色哟哟日韩精品| 国产精品久久久久久久久动漫| 国产乱一区二区| 国产欧美一区二区三区在线老狼| 国产一区二区在线观看视频| 久久色在线视频| 国产大片一区二区| 中文字幕成人网| 99精品欧美一区| 一卡二卡欧美日韩| 欧美日韩国产另类一区| 免费在线观看一区| 久久久精品天堂| 成人免费视频国产在线观看| 中文字幕 久热精品 视频在线| 成人午夜短视频| 亚洲男女一区二区三区| 91久久精品一区二区三| 五月综合激情婷婷六月色窝| 欧美日韩成人在线一区| 精品一区二区日韩| 久久久国际精品| 99久久免费国产| 亚洲高清不卡在线| 精品国产1区二区| av成人免费在线观看| 亚洲一区二区美女| 精品久久久久久最新网址| av电影在线观看不卡| 午夜精品一区二区三区三上悠亚 | 中文字幕av一区二区三区高| 91蜜桃网址入口| 免费日韩伦理电影| 国产精品伦理在线| 欧美一区二区三区系列电影| 国内精品在线播放| 亚洲免费av高清| 久久亚洲春色中文字幕久久久| 成人教育av在线| 日本三级亚洲精品| ●精品国产综合乱码久久久久| 欧美久久一二区| 成人网在线免费视频| 肉肉av福利一精品导航| 国产精品久线在线观看| 日韩一区二区精品葵司在线| 波多野结衣一区二区三区| 免费在线视频一区| 一区二区三区在线视频观看58| 精品国产1区二区| 欧美嫩在线观看| 一本色道久久综合亚洲91| 国产在线精品一区二区不卡了| 亚洲一二三专区| 国产精品私房写真福利视频| 日韩免费高清av| 在线不卡免费欧美| 色综合久久久久网| 丰满亚洲少妇av| 久久精品国产99| 亚洲a一区二区| 亚洲天堂免费在线观看视频| 久久尤物电影视频在线观看| 欧美日韩美女一区二区| 99久久精品免费看国产| 国产不卡在线播放| 国产最新精品免费| 国产98色在线|日韩| 奇米色一区二区三区四区| 一区二区三区免费网站| 亚洲私人影院在线观看| 国产日产欧美一区| 久久久精品天堂| 国产亚洲精品久| 久久久久高清精品| 国产人伦精品一区二区| 国产拍揄自揄精品视频麻豆| 国产日本一区二区| 国产精品毛片a∨一区二区三区| 精品粉嫩超白一线天av| 精品国产乱码久久| 久久综合九色综合欧美98| 日韩一级高清毛片| 精品国产一区二区三区四区四| 欧美成人一级视频| 精品va天堂亚洲国产| 久久久久亚洲综合| 中文字幕制服丝袜成人av| 亚洲欧美日韩综合aⅴ视频| 亚洲女与黑人做爰| 亚洲国产乱码最新视频| 亚洲国产精品欧美一二99| 视频一区中文字幕国产| 蜜臀久久99精品久久久久久9| 久久99国产乱子伦精品免费| 国产一区二区精品久久99| 粉嫩欧美一区二区三区高清影视| 国产精品1024| 97久久精品人人爽人人爽蜜臀| 91豆麻精品91久久久久久| 欧美日韩国产一区| 精品国产乱码91久久久久久网站| 国产欧美一区二区精品久导航| 国产精品久久久久婷婷二区次| 亚洲人成精品久久久久| 日韩综合在线视频| 国产麻豆午夜三级精品| 99精品视频中文字幕| 欧美午夜影院一区| 久久婷婷色综合| 亚洲私人黄色宅男| 青青草97国产精品免费观看 | 国产欧美日韩精品a在线观看| 日韩美女精品在线| 日韩电影免费一区| 成人在线综合网| 欧美人狂配大交3d怪物一区| 久久九九久久九九| 日日摸夜夜添夜夜添国产精品 | 欧美伊人久久久久久久久影院| 91精品国产乱| 国产精品理论片在线观看| 亚洲aⅴ怡春院| 99国产精品国产精品毛片| 日韩一区二区三区观看|