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

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

?? poolbackeddatasourcefactory.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.sql.SQLException;import javax.sql.DataSource;/** *  A class offering Factory methods for creating DataSources backed *  by Connection and Statement Pools. * *  @deprecated Use the new factories in {@link com.mchange.v2.c3p0.DataSources}. See examples. * */public final class PoolBackedDataSourceFactory{    /**     *  Creates a pool-backed DataSource that implements Referenceable     *  for binding to JNDI name services. For this to work,     *  <TT>unpooledDataSource</TT> must also implement Referenceable.     *     *  @param unpooledDataSource an unpooledDataSource to use as the     *         primary source for connections.     *  @param minPoolSize the minimum (and starting) number of Connections     *         that should be held in the pool.     *  @param maxPoolSize the maximum number of Connections     *         that should be held in the pool.     *  @param acquireIncrement the number of Connections that should be     *         acquired at a time when the pool runs out of Connections     *  @param maxIdleTime the maximum number of seconds a Connection should be     *         allowed to remain idle before it is expired from the pool.     *         A value of 0 means Connections never expire.     *  @param maxStatements the maximum number of PreparedStatements that should      *         be cached by this pool. A value of 0 means that Statement caching     *         should be disabled.     *  @param factoryLocation a codebase url where JNDI clients can find the       *         c3p0 libraries. Use null if clients will be expected to have the     *         libraries available locally.     *     *  @deprecated all implementations are now both Referenceable and Serializable.     *              use create()     */    public static DataSource createReferenceable( DataSource unpooledDataSource,						  int minPoolSize,						  int maxPoolSize,						  int acquireIncrement,						  int maxIdleTime,						  int maxStatements,						  String factoryLocation ) throws SQLException    {	WrapperConnectionPoolDataSource cpds = new WrapperConnectionPoolDataSource();	cpds.setNestedDataSource(unpooledDataSource);	cpds.setMinPoolSize( minPoolSize );	cpds.setMaxPoolSize( maxPoolSize );	cpds.setAcquireIncrement( acquireIncrement );	cpds.setMaxIdleTime( maxIdleTime );	cpds.setMaxStatements( maxStatements );	cpds.setFactoryClassLocation( factoryLocation );	PoolBackedDataSource out = new PoolBackedDataSource();	out.setConnectionPoolDataSource( cpds );	return out;    }    /**     *  Creates a pool-backed DataSource that uses default pool parameters and     *  implements Referenceable     *  for binding to JNDI name services. For this to work,     *  <TT>unpooledDataSource</TT> must also implement Referenceable.     *     *  @param unpooledDataSource an unpooledDataSource to use as the     *         primary source for connections.     *  @param factoryLocation a codebase url where JNDI clients can find the       *         c3p0 libraries. Use null if clients will be expected to have the     *         libraries available locally.     *     *  @deprecated all implementations are now both Referenceable and Serializable.     *              use create()     */    public static DataSource createReferenceable( DataSource unpooledDataSource,						  String factoryLocation ) 	throws SQLException    {	WrapperConnectionPoolDataSource cpds = new WrapperConnectionPoolDataSource();	cpds.setNestedDataSource(unpooledDataSource);	cpds.setFactoryClassLocation( factoryLocation );	PoolBackedDataSource out = new PoolBackedDataSource();	out.setConnectionPoolDataSource( cpds );	return out;    }    /**     *  Creates a pool-backed DataSource that implements Referenceable.     *     *  @param jdbcDriverClass a jdbc driver class that can resolve <TT>jdbcUrl</TT>.     *  @param jdbcUrl the jdbcUrl of the RDBMS that Connections should be made to.     *  @param user a username (may be null) for authentication to the RDBMS     *  @param password a password (may be null) for authentication to the RDBMS     *  @param minPoolSize the minimum (and starting) number of Connections     *         that should be held in the pool.     *  @param maxPoolSize the maximum number of Connections     *         that should be held in the pool.     *  @param acquireIncrement the number of Connections that should be     *         acquired at a time when the pool runs out of Connections     *  @param maxIdleTime the maximum number of seconds a Connection should be     *         allowed to remain idle before it is expired from the pool.     *         A value of 0 means Connections never expire.     *  @param maxStatements the maximum number of PreparedStatements that should      *         be cached by this pool. A value of 0 means that Statement caching     *         should be disabled.     *  @param factoryLocation a codebase url where JNDI clients can find the       *         c3p0 libraries. Use null if clients will be expected to have the     *         libraries available locally.     *     *  @deprecated all implementations are now both Referenceable and Serializable.     *              use create()     */    public static DataSource createReferenceable(String jdbcDriverClass, 						 String jdbcUrl,						 String user,						 String password,						 int minPoolSize,						 int maxPoolSize,						 int acquireIncrement,						 int maxIdleTime,						 int maxStatements,						 String factoryLocation ) throws SQLException    {	DataSource nested = DriverManagerDataSourceFactory.create( jdbcDriverClass, 								   jdbcUrl, 								   user, 								   password );	return createReferenceable( nested, 				    minPoolSize,				    maxPoolSize,				    acquireIncrement,				    maxIdleTime,				    maxStatements,				    factoryLocation );    }    /**     *  Creates a pool-backed DataSource that implements Referenceable and uses     *  default pooling parameters.     *     *  @param jdbcDriverClass a jdbc driver class that can resolve <TT>jdbcUrl</TT>.     *  @param jdbcUrl the jdbcUrl of the RDBMS that Connections should be made to.     *  @param user a username (may be null) for authentication to the RDBMS     *  @param password a password (may be null) for authentication to the RDBMS     *  @param factoryLocation a codebase url where JNDI clients can find the       *         c3p0 libraries. Use null if clients will be expected to have the     *         libraries available locally.     *     *  @deprecated all implementations are now both Referenceable and Serializable.     *              use create()     */    public static DataSource createReferenceable(String jdbcDriverClass, 						 String jdbcUrl,						 String user,						 String password,						 String factoryLocation ) 	throws SQLException    {	DataSource nested = DriverManagerDataSourceFactory.create( jdbcDriverClass, 								   jdbcUrl, 								   user, 								   password );	return createReferenceable( nested, 				    factoryLocation );    }    /**     *  Creates a pool-backed DataSource that implements Serializable     *  for binding to JNDI name services. For this to work,     *  <TT>unpooledDataSource</TT> must also implement Serializable.     *     *  @param unpooledDataSource an unpooledDataSource to use as the     *         primary source for connections.     *  @param minPoolSize the minimum (and starting) number of Connections     *         that should be held in the pool.     *  @param maxPoolSize the maximum number of Connections     *         that should be held in the pool.     *  @param acquireIncrement the number of Connections that should be     *         acquired at a time when the pool runs out of Connections     *  @param maxIdleTime the maximum number of seconds a Connection should be     *         allowed to remain idle before it is expired from the pool.     *         A value of 0 means Connections never expire.     *  @param maxStatements the maximum number of PreparedStatements that should      *         be cached by this pool. A value of 0 means that Statement caching     *         should be disabled.     *     *  @deprecated all implementations are now both Referenceable and Serializable.     *              use create()     */    public static DataSource createSerializable( DataSource unpooledDataSource,						 int minPoolSize,						 int maxPoolSize,						 int acquireIncrement,						 int maxIdleTime,						 int maxStatements) 	throws SQLException    {	WrapperConnectionPoolDataSource cpds = new WrapperConnectionPoolDataSource();	cpds.setNestedDataSource(unpooledDataSource);	cpds.setMinPoolSize( minPoolSize );	cpds.setMaxPoolSize( maxPoolSize );	cpds.setAcquireIncrement( acquireIncrement );	cpds.setMaxIdleTime( maxIdleTime );	cpds.setMaxStatements( maxStatements );	PoolBackedDataSource out = new PoolBackedDataSource();	out.setConnectionPoolDataSource( cpds );	return out;    }    /**     *  Creates a pool-backed DataSource that uses default pool parameters and     *  implements Serializable     *  for binding to JNDI name services. For this to work,     *  <TT>unpooledDataSource</TT> must also implement Serializable.     *     *  @param unpooledDataSource an unpooledDataSource to use as the     *         primary source for connections.     *     *  @deprecated all implementations are now both Referenceable and Serializable.     *              use create()     */    public static DataSource createSerializable( DataSource unpooledDataSource ) throws SQLException    {	WrapperConnectionPoolDataSource cpds = new WrapperConnectionPoolDataSource();	cpds.setNestedDataSource(unpooledDataSource);	PoolBackedDataSource out = new PoolBackedDataSource();	out.setConnectionPoolDataSource( cpds );	return out;    }    /**     *  Creates a pool-backed DataSource that implements Serializable.     *     *  @param jdbcDriverClass a jdbc driver class that can resolve <TT>jdbcUrl</TT>.     *  @param jdbcUrl the jdbcUrl of the RDBMS that Connections should be made to.     *  @param user a username (may be null) for authentication to the RDBMS     *  @param password a password (may be null) for authentication to the RDBMS     *  @param minPoolSize the minimum (and starting) number of Connections     *         that should be held in the pool.     *  @param maxPoolSize the maximum number of Connections     *         that should be held in the pool.     *  @param acquireIncrement the number of Connections that should be     *         acquired at a time when the pool runs out of Connections     *  @param maxIdleTime the maximum number of seconds a Connection should be     *         allowed to remain idle before it is expired from the pool.     *         A value of 0 means Connections never expire.     *  @param maxStatements the maximum number of PreparedStatements that should      *         be cached by this pool. A value of 0 means that Statement caching     *         should be disabled.     *     *  @deprecated all implementations are now both Referenceable and Serializable.     *              use create()     */    public static DataSource createSerializable( String jdbcDriverClass,						 String jdbcUrl,						 String user,						 String password,						 int minPoolSize,						 int maxPoolSize,						 int acquireIncrement,						 int maxIdleTime,						 int maxStatements) 	throws SQLException    {	DataSource nested = DriverManagerDataSourceFactory.create( jdbcDriverClass, 								   jdbcUrl, 								   user, 								   password );	return createSerializable( nested, 				   minPoolSize,				   maxPoolSize,				   acquireIncrement,				   maxIdleTime,				   maxStatements);    }    /**     *  Creates a pool-backed DataSource that implements Serializable and uses     *  default pooling parameters.     *     *  @param jdbcDriverClass a jdbc driver class that can resolve <TT>jdbcUrl</TT>.     *  @param jdbcUrl the jdbcUrl of the RDBMS that Connections should be made to.     *  @param user a username (may be null) for authentication to the RDBMS     *  @param password a password (may be null) for authentication to the RDBMS     *     *  @deprecated all implementations are now both Referenceable and Serializable.     *              use create()     */    public static DataSource createSerializable( String jdbcDriverClass,						 String jdbcUrl,						 String user,						 String password) 	throws SQLException    {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日产欧产美韩系列久久99| 欧美mv日韩mv国产网站| 亚洲美女视频在线观看| 色av综合在线| 偷拍与自拍一区| 精品福利一区二区三区| 国产一区二区免费在线| 国产精品久久久久一区二区三区 | 国产午夜精品美女毛片视频| 国产成人精品免费网站| 亚洲天堂精品视频| 欧美日韩电影一区| 国产乱码精品一区二区三区忘忧草| 国产亚洲综合在线| 一本色道久久综合亚洲精品按摩 | 国产精品久久久99| 欧美亚洲动漫精品| 精品一区二区三区欧美| 中文字幕在线不卡| 91精品国产高清一区二区三区| 狠狠狠色丁香婷婷综合激情| 亚洲免费在线播放| 精品久久国产字幕高潮| 91极品美女在线| 九九国产精品视频| 亚洲男人的天堂在线观看| 日韩一区二区三| 91网上在线视频| 精品一区二区三区在线视频| 中文字幕综合网| 精品久久久久久久久久久久包黑料| 91美女视频网站| 国产精品自拍毛片| 亚洲成人在线观看视频| 国产欧美日韩不卡免费| 欧美猛男gaygay网站| 成人高清在线视频| 卡一卡二国产精品| 亚洲国产精品嫩草影院| 国产精品丝袜久久久久久app| 欧美剧情片在线观看| www.欧美日韩国产在线| 精油按摩中文字幕久久| 亚洲午夜羞羞片| 亚洲欧洲另类国产综合| 久久综合九色综合97婷婷女人| 欧美麻豆精品久久久久久| 91看片淫黄大片一级| 国产精品夜夜爽| 韩国av一区二区| 日本视频一区二区三区| 午夜视频在线观看一区| 亚洲欧美成人一区二区三区| 中文字幕电影一区| 久久亚洲影视婷婷| 欧美一区二区视频在线观看| 欧美色电影在线| 在线一区二区视频| 99久久免费国产| www.欧美日韩国产在线| 成人h动漫精品一区二区| 国产传媒日韩欧美成人| 精品亚洲成a人| 麻豆国产精品777777在线| 婷婷亚洲久悠悠色悠在线播放 | 欧美精品1区2区3区| 欧美手机在线视频| 欧美少妇xxx| 欧美视频一区二区在线观看| 在线中文字幕一区| 欧美主播一区二区三区美女| 色婷婷一区二区三区四区| 91网上在线视频| 色综合久久88色综合天天6| 97久久精品人人爽人人爽蜜臀| 91在线视频免费91| 色噜噜久久综合| 在线欧美日韩国产| 欧美日韩亚洲丝袜制服| 911国产精品| 欧美大胆人体bbbb| 久久久久久久久99精品| 欧美国产成人精品| 亚洲欧美日韩久久| 亚洲国产另类av| 日韩av在线播放中文字幕| 麻豆国产一区二区| 国产成人激情av| 一本大道久久a久久综合| 欧美三级电影一区| 日韩欧美国产成人一区二区| 精品国产1区2区3区| 国产精品不卡一区二区三区| 一区二区三区四区在线| 亚洲成人久久影院| 精久久久久久久久久久| 99久久久精品免费观看国产蜜| 日本黄色一区二区| 日韩一区和二区| 欧美激情在线一区二区三区| 一区二区三区四区中文字幕| 蜜臀va亚洲va欧美va天堂| 国产精品香蕉一区二区三区| 99国产欧美另类久久久精品| 欧美人妇做爰xxxⅹ性高电影| 久久中文娱乐网| 亚洲乱码国产乱码精品精小说 | 色婷婷综合视频在线观看| 在线播放91灌醉迷j高跟美女| 精品sm在线观看| 亚洲人亚洲人成电影网站色| 日日夜夜免费精品视频| 国产激情一区二区三区| 欧美日韩一二三区| 亚洲国产高清不卡| 日本不卡一二三| 91在线观看美女| 日韩丝袜美女视频| 亚洲女同一区二区| 国产一区二区三区在线看麻豆| 91美女在线视频| 久久女同性恋中文字幕| 一区二区高清在线| 国产精品99精品久久免费| 欧美日韩午夜影院| 中文字幕一区二区不卡| 韩国精品久久久| 91精品国产手机| 亚洲欧美日韩中文播放| 国产成人免费xxxxxxxx| 这里是久久伊人| 一区二区三区四区国产精品| 国产黄色精品视频| 日韩精品一区二区三区视频| 亚洲一区视频在线观看视频| 成人黄色软件下载| 久久色中文字幕| 免费在线观看视频一区| 欧美伊人精品成人久久综合97 | 国模少妇一区二区三区| 欧美日韩国产一级二级| 亚洲欧美一区二区三区国产精品 | 亚洲人妖av一区二区| 国产乱子轮精品视频| 日韩精品中文字幕一区二区三区 | 欧美激情中文不卡| 韩国av一区二区三区四区| 欧美一区二区三区在线观看视频| 亚洲欧美日韩综合aⅴ视频| 成人av电影观看| 国产午夜亚洲精品不卡| 久久国产人妖系列| 欧美一二区视频| 蜜臀av性久久久久av蜜臀妖精| 欧美三级电影一区| 午夜激情一区二区三区| 欧美日韩亚洲综合在线| 亚洲国产cao| 欧美精品xxxxbbbb| 日韩电影在线观看网站| 在线观看91精品国产麻豆| 视频一区二区欧美| 欧美乱妇15p| 美腿丝袜亚洲色图| 精品久久久久久久久久久久久久久久久| 欧美区一区二区三区| 一区二区三区 在线观看视频| 色综合天天综合狠狠| 亚洲理论在线观看| 欧美日韩在线播放| 日韩成人dvd| 欧美成人三级在线| 福利电影一区二区| 国产精品久久久久久久岛一牛影视| 成人免费视频视频在线观看免费| 国产人伦精品一区二区| 99热在这里有精品免费| 亚洲欧洲美洲综合色网| 欧美性xxxxxx少妇| 日产国产欧美视频一区精品 | 国产河南妇女毛片精品久久久| 久久一区二区三区国产精品| 国产成人av影院| 亚洲欧美成aⅴ人在线观看| 欧美亚洲另类激情小说| 热久久一区二区| 国产亚洲一二三区| 色综合婷婷久久| 视频一区视频二区在线观看| 精品国产a毛片| 91亚洲男人天堂| 天堂久久久久va久久久久| 欧美精品一区二| 99精品1区2区| 免费久久99精品国产| 国产三级精品在线| 欧美三级日韩在线| 国内成人精品2018免费看| 亚洲日穴在线视频| 日韩欧美国产一区二区三区 |