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

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

?? poolconfig.java

?? c3p0數據庫連接池實現源碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * Distributed as part of c3p0 v.0.9.1-pre6 * * Copyright (C) 2005 Machinery For Change, Inc. * * Author: Steve Waldman <swaldman@mchange.com> * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, as  * published by the Free Software Foundation. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software; see the file LICENSE.  If not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA. */package com.mchange.v2.c3p0;import java.util.Properties;import java.io.InputStream;import java.io.IOException;import com.mchange.v1.io.InputStreamUtils;import com.mchange.v2.c3p0.impl.C3P0Defaults;import com.mchange.v2.cfg.MultiPropertiesConfig;import com.mchange.v2.log.MLevel;import com.mchange.v2.log.MLog;import com.mchange.v2.log.MLogger;/** *  <p>Encapsulates all the configuration information required by a c3p0 pooled DataSource.</p> * *  <p>Newly constructed PoolConfig objects are preset with default values, *  which you can define yourself (see below), *  or you can rely on c3p0's built-in defaults. Just create a PoolConfig object, and change only the *  properties you care about. Then pass it to the {@link com.mchange.v2.c3p0.DataSources#pooledDataSource(javax.sql.DataSource, com.mchange.v2.c3p0.PoolConfig)} *  method, and you're off!</p> * *  <p>For those interested in the details, configuration properties can be specified in several ways:</p> *  <ol> *    <li>Any property can be set explicitly by calling the corresponding method on a PoolConfig object.</li> *    <li>Any property will default to a value defined by a System Property, using the property name shown the table below.</li> *    <li>Any property not set in either of the above ways will default to a value found in a user-supplied Java properties file, *        which may be placed in the resource path of *        the ClassLoader that loaded the c3p0 libraries under the name <tt>/c3p0.properties</tt>.</li> *    <li>Any property not set in any of the above ways will be defined according c3p0's built-in defaults.</li> *  </ol> * *  <p><i>Please see c3p0's main documentation for a description of all available parameters.</i></p> * *  @deprecated as of c3p0-0.9.1. To manipulate config programmaticall, please use ComboPooledDataSource * */public final class PoolConfig{    final static MLogger logger;    public final static String INITIAL_POOL_SIZE                    = "c3p0.initialPoolSize";     public final static String MIN_POOL_SIZE                        = "c3p0.minPoolSize";    public final static String MAX_POOL_SIZE                        = "c3p0.maxPoolSize";    public final static String IDLE_CONNECTION_TEST_PERIOD          = "c3p0.idleConnectionTestPeriod";    public final static String MAX_IDLE_TIME                        = "c3p0.maxIdleTime";    public final static String PROPERTY_CYCLE                       = "c3p0.propertyCycle";    public final static String MAX_STATEMENTS                       = "c3p0.maxStatements";    public final static String MAX_STATEMENTS_PER_CONNECTION        = "c3p0.maxStatementsPerConnection";    public final static String CHECKOUT_TIMEOUT                     = "c3p0.checkoutTimeout";    public final static String ACQUIRE_INCREMENT                    = "c3p0.acquireIncrement";    public final static String ACQUIRE_RETRY_ATTEMPTS               = "c3p0.acquireRetryAttempts";    public final static String ACQUIRE_RETRY_DELAY                  = "c3p0.acquireRetryDelay";    public final static String BREAK_AFTER_ACQUIRE_FAILURE          = "c3p0.breakAfterAcquireFailure";    public final static String USES_TRADITIONAL_REFLECTIVE_PROXIES  = "c3p0.usesTraditionalReflectiveProxies";    public final static String TEST_CONNECTION_ON_CHECKOUT          = "c3p0.testConnectionOnCheckout";    public final static String TEST_CONNECTION_ON_CHECKIN           = "c3p0.testConnectionOnCheckin";    public final static String CONNECTION_TESTER_CLASS_NAME         = "c3p0.connectionTesterClassName";    public final static String AUTOMATIC_TEST_TABLE                 = "c3p0.automaticTestTable";    public final static String AUTO_COMMIT_ON_CLOSE                 = "c3p0.autoCommitOnClose";    public final static String FORCE_IGNORE_UNRESOLVED_TRANSACTIONS = "c3p0.forceIgnoreUnresolvedTransactions";    public final static String NUM_HELPER_THREADS                   = "c3p0.numHelperThreads";    public final static String PREFERRED_TEST_QUERY                 = "c3p0.preferredTestQuery";    public final static String FACTORY_CLASS_LOCATION               = "c3p0.factoryClassLocation";        public final static String DEFAULT_CONFIG_RSRC_PATH = "/c3p0.properties";        final static PoolConfig DEFAULTS;    static    {	logger = MLog.getLogger( PoolConfig.class );	Properties rsrcProps = findResourceProperties();	PoolConfig rsrcDefaults = extractConfig( rsrcProps, null );	Properties sysProps;	try	    { sysProps = System.getProperties(); }	catch ( SecurityException e )	    {		if (logger.isLoggable(MLevel.WARNING))		    logger.log(MLevel.WARNING, 			       "Read of system Properties blocked -- ignoring any c3p0 configuration via System properties! " +			       "(But any configuration via a c3p0.properties file is still okay!)", 			       e);		sysProps = new Properties(); //TODO -- an alternative approach to getting c3p0-specific sysprops if allowed	    }	DEFAULTS = extractConfig( sysProps, rsrcDefaults );    }    public static int defaultNumHelperThreads()    { return DEFAULTS.getNumHelperThreads(); }    public static String defaultPreferredTestQuery()    { return DEFAULTS.getPreferredTestQuery(); }    public static String defaultFactoryClassLocation()    { return DEFAULTS.getFactoryClassLocation(); }    public static int defaultMaxStatements()    { return DEFAULTS.getMaxStatements(); }    public static int defaultMaxStatementsPerConnection()    { return DEFAULTS.getMaxStatementsPerConnection(); }    public static int defaultInitialPoolSize()    { return DEFAULTS.getInitialPoolSize(); }    public static int defaultMinPoolSize()    { return DEFAULTS.getMinPoolSize(); }    public static int defaultMaxPoolSize()    { return DEFAULTS.getMaxPoolSize(); }    public static int defaultIdleConnectionTestPeriod()    { return DEFAULTS.getIdleConnectionTestPeriod(); }    public static int defaultMaxIdleTime()    { return DEFAULTS.getMaxIdleTime(); }    public static int defaultPropertyCycle()    { return DEFAULTS.getPropertyCycle(); }    public static int defaultCheckoutTimeout()    { return DEFAULTS.getCheckoutTimeout(); }    public static int defaultAcquireIncrement()    { return DEFAULTS.getAcquireIncrement(); }    public static int defaultAcquireRetryAttempts()    { return DEFAULTS.getAcquireRetryAttempts(); }    public static int defaultAcquireRetryDelay()    { return DEFAULTS.getAcquireRetryDelay(); }    public static boolean defaultBreakAfterAcquireFailure()    { return DEFAULTS.isBreakAfterAcquireFailure(); }    public static String defaultConnectionTesterClassName()    { return DEFAULTS.getConnectionTesterClassName(); }    public static String defaultAutomaticTestTable()    { return DEFAULTS.getAutomaticTestTable(); }    public static boolean defaultTestConnectionOnCheckout()    { return DEFAULTS.isTestConnectionOnCheckout(); }    public static boolean defaultTestConnectionOnCheckin()    { return DEFAULTS.isTestConnectionOnCheckin(); }    public static boolean defaultAutoCommitOnClose()    { return DEFAULTS.isAutoCommitOnClose(); }    public static boolean defaultForceIgnoreUnresolvedTransactions()    { return DEFAULTS.isAutoCommitOnClose(); }    public static boolean defaultUsesTraditionalReflectiveProxies()    { return DEFAULTS.isUsesTraditionalReflectiveProxies(); }    int     maxStatements;    int     maxStatementsPerConnection;    int     initialPoolSize;    int     minPoolSize;    int     maxPoolSize;    int     idleConnectionTestPeriod;    int     maxIdleTime;    int     propertyCycle;    int     checkoutTimeout;    int     acquireIncrement;    int     acquireRetryAttempts;    int     acquireRetryDelay;    boolean breakAfterAcquireFailure;    boolean testConnectionOnCheckout;    boolean testConnectionOnCheckin;    boolean autoCommitOnClose;    boolean forceIgnoreUnresolvedTransactions;    boolean usesTraditionalReflectiveProxies;    String  connectionTesterClassName;    String  automaticTestTable;    int     numHelperThreads;    String  preferredTestQuery;    String  factoryClassLocation;    private PoolConfig( Properties props, boolean init ) throws NumberFormatException    {	if (init)	    extractConfig( this, props, DEFAULTS );    }    public PoolConfig( Properties props ) throws NumberFormatException    { this( props, true ); }    public PoolConfig() throws NumberFormatException    { this( null, true ); }    public int getNumHelperThreads()    { return numHelperThreads; }    public String getPreferredTestQuery()    { return preferredTestQuery; }    public String getFactoryClassLocation()    { return factoryClassLocation; }    public int getMaxStatements()    { return maxStatements; }        public int getMaxStatementsPerConnection()    { return maxStatementsPerConnection; }        public int getInitialPoolSize()    { return initialPoolSize; }        public int getMinPoolSize()    { return minPoolSize; }        public int getMaxPoolSize()    { return maxPoolSize; }        public int getIdleConnectionTestPeriod()    { return idleConnectionTestPeriod; }        public int getMaxIdleTime()    { return maxIdleTime; }        public int getPropertyCycle()    { return propertyCycle; }        public int getAcquireIncrement()    { return acquireIncrement; }        public int getCheckoutTimeout()    { return checkoutTimeout; }        public int getAcquireRetryAttempts()    { return acquireRetryAttempts; }        public int getAcquireRetryDelay()    { return acquireRetryDelay; }        public boolean isBreakAfterAcquireFailure()    { return this.breakAfterAcquireFailure;	}    public boolean isUsesTraditionalReflectiveProxies()    { return this.usesTraditionalReflectiveProxies; }    public String getConnectionTesterClassName()    { return connectionTesterClassName; }        public String getAutomaticTestTable()    { return automaticTestTable; }        /**     * @deprecated use isTestConnectionOnCheckout     */    public boolean getTestConnectionOnCheckout()    { return testConnectionOnCheckout; }    public boolean isTestConnectionOnCheckout()    { return this.getTestConnectionOnCheckout(); }    public boolean isTestConnectionOnCheckin()    { return testConnectionOnCheckin; }    public boolean isAutoCommitOnClose()    { return this.autoCommitOnClose;	}    public boolean isForceIgnoreUnresolvedTransactions()    { return this.forceIgnoreUnresolvedTransactions; }        public void setNumHelperThreads( int numHelperThreads )    { this.numHelperThreads = numHelperThreads;	}    public void setPreferredTestQuery( String preferredTestQuery )    { this.preferredTestQuery = preferredTestQuery; }    public void setFactoryClassLocation( String factoryClassLocation )    { this.factoryClassLocation = factoryClassLocation;	}    public void setMaxStatements( int maxStatements )    { this.maxStatements = maxStatements; }        public void setMaxStatementsPerConnection( int maxStatementsPerConnection )    { this.maxStatementsPerConnection = maxStatementsPerConnection; }        public void setInitialPoolSize( int initialPoolSize )    { this.initialPoolSize = initialPoolSize; }        public void setMinPoolSize( int minPoolSize )    { this.minPoolSize = minPoolSize; }        public void setMaxPoolSize( int maxPoolSize )    { this.maxPoolSize = maxPoolSize; }    

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美va亚洲va香蕉在线| 2021久久国产精品不只是精品| 日韩二区三区四区| 日韩福利电影在线观看| 成人看片黄a免费看在线| 欧美一区二区三区男人的天堂| 国产精品超碰97尤物18| 久久成人免费网| 欧美日韩国产一级| 亚洲视频一二区| 国产白丝精品91爽爽久久| 欧美一二区视频| 香蕉av福利精品导航| 99精品偷自拍| 国产精品欧美一级免费| 精品夜夜嗨av一区二区三区| 欧美精品日韩精品| 一区二区三区精品视频在线| av一区二区三区在线| 国产亚洲欧洲一区高清在线观看| 蜜桃精品视频在线观看| 91麻豆精品国产91久久久使用方法| 一区二区三区欧美日韩| 91啦中文在线观看| 亚洲色图在线视频| 色94色欧美sute亚洲线路二| 亚洲欧美日韩国产另类专区| 北岛玲一区二区三区四区| 国产精品日韩精品欧美在线| 粉嫩av一区二区三区| 久久综合色8888| 国产成人精品影院| 国产精品短视频| 色婷婷综合久久久久中文一区二区| 国产精品久久久久久久久久久免费看| 国产精品一线二线三线精华| 国产免费成人在线视频| 成人黄色av电影| 亚洲另类中文字| 欧美色图第一页| 美女视频网站黄色亚洲| 久久女同精品一区二区| 国产91高潮流白浆在线麻豆| 国产精品入口麻豆原神| 欧美视频在线一区| 老司机精品视频在线| 欧美经典三级视频一区二区三区| 白白色亚洲国产精品| 亚洲国产成人av网| 日韩欧美的一区二区| 成人小视频在线| 亚洲欧美日韩国产成人精品影院| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 亚洲一区二区三区自拍| 91精品在线观看入口| 国产九色精品成人porny| 国产精品护士白丝一区av| 欧美在线免费播放| 另类人妖一区二区av| 国产精品理论片在线观看| 91视频www| 免费黄网站欧美| 亚洲色图色小说| 日韩视频在线你懂得| 成人激情免费网站| 日韩av成人高清| 国产欧美日韩在线观看| 欧美视频在线一区| 国产精品一二二区| 亚洲国产精品视频| 日本一区二区不卡视频| 欧美日韩视频专区在线播放| 国产一区二区不卡在线| 亚洲小少妇裸体bbw| 国产日本欧美一区二区| 欧美自拍偷拍午夜视频| 国产精品一级二级三级| 无码av免费一区二区三区试看 | 日本一二三四高清不卡| 欧美片网站yy| 99精品热视频| 韩国三级在线一区| 午夜在线成人av| 中文字幕日韩一区| 久久久亚洲精品石原莉奈| 欧美视频一区在线观看| 成人动漫视频在线| 国产精品影音先锋| 蜜桃视频免费观看一区| 亚洲一区视频在线| 椎名由奈av一区二区三区| 久久久久97国产精华液好用吗| 欧美三级蜜桃2在线观看| 国产91丝袜在线播放九色| 麻豆91在线看| 天堂精品中文字幕在线| 伊人色综合久久天天人手人婷| 国产视频不卡一区| 久久综合色之久久综合| 欧美大度的电影原声| 91精品午夜视频| 欧美裸体bbwbbwbbw| 色哟哟国产精品| 国产福利一区二区| 国产91精品一区二区麻豆网站| 久草中文综合在线| 久久av资源站| 激情图片小说一区| 麻豆久久一区二区| 国产中文一区二区三区| 激情深爱一区二区| 国产一区二区在线影院| 国产成人免费视频一区| 国产激情视频一区二区在线观看 | 蜜桃av噜噜一区二区三区小说| 亚洲成人手机在线| 亚洲成人动漫在线观看| 日韩av在线发布| 老司机午夜精品| 国产成人免费视频精品含羞草妖精| 国产精品一级片在线观看| 国内成人自拍视频| 国产91在线观看丝袜| 不卡一二三区首页| 色婷婷激情综合| 欧美日韩一卡二卡三卡| 日韩午夜精品电影| 国产午夜三级一区二区三| 国产精品色噜噜| 亚洲小少妇裸体bbw| 蜜桃一区二区三区四区| 国产成人午夜电影网| 99久久综合国产精品| 色噜噜狠狠一区二区三区果冻| 欧美日韩三级一区二区| 精品久久久影院| 国产精品福利一区二区三区| 亚洲无人区一区| 国产综合久久久久久鬼色| 成人中文字幕在线| 色狠狠av一区二区三区| 欧美一级视频精品观看| 国产日韩欧美在线一区| 亚洲免费av高清| 精品一区二区国语对白| 成人av在线网站| 51精品久久久久久久蜜臀| 欧美国产激情二区三区| 亚洲自拍偷拍网站| 国产河南妇女毛片精品久久久| proumb性欧美在线观看| 欧美老年两性高潮| 国产欧美精品区一区二区三区 | 日韩国产精品久久| 国产精品一区二区三区网站| 欧美中文字幕亚洲一区二区va在线 | 风间由美一区二区av101| 91福利社在线观看| 久久久久久亚洲综合影院红桃 | √…a在线天堂一区| 香蕉成人啪国产精品视频综合网| 国产成人av一区二区| 欧美一区二区日韩| 亚洲男人电影天堂| 成人免费视频视频| 日韩午夜电影av| 亚洲中国最大av网站| 粉嫩av一区二区三区在线播放| 欧美一区二区三区在| 一区二区三区日韩| 99综合电影在线视频| 久久五月婷婷丁香社区| 日韩精品电影在线观看| 一本到不卡精品视频在线观看| 国产午夜亚洲精品理论片色戒| 麻豆精品在线看| 欧美精品自拍偷拍| 亚洲电影第三页| 色欧美片视频在线观看| 国产精品国产三级国产普通话99| 国产一区二区三区在线观看免费视频| 欧美老人xxxx18| 一区二区三区在线视频观看| 不卡一区二区中文字幕| 久久久精品人体av艺术| 精一区二区三区| 日韩三级.com| 男男视频亚洲欧美| 8x福利精品第一导航| 婷婷一区二区三区| 欧美精选一区二区| 日本亚洲免费观看| 欧美一三区三区四区免费在线看 | 国产精品国产三级国产专播品爱网| 国产在线一区观看| 久久色在线观看| 国产精品综合久久| 国产精品毛片无遮挡高清| 国产成人精品免费在线| 国产精品污www在线观看|