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

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

?? c3p0pooleddatasource.java

?? c3p0數據庫連接池實現源碼
?? JAVA
字號:
/* * 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.mbean;import com.mchange.v2.c3p0.*;import com.mchange.v2.log.*;import java.beans.PropertyVetoException;import java.sql.Connection;import java.sql.SQLException;import java.io.PrintWriter;import java.util.Properties;import javax.sql.DataSource;import javax.naming.InitialContext;import javax.naming.Name;import javax.naming.Context;import javax.naming.NameAlreadyBoundException;import javax.naming.NamingException;public class C3P0PooledDataSource implements C3P0PooledDataSourceMBean{    private final static MLogger logger = MLog.getLogger( C3P0PooledDataSource.class );    String jndiName;    ComboPooledDataSource combods = new ComboPooledDataSource();    private void rebind() throws NamingException    { rebind(null); }    private void rebind(String unbindName) throws NamingException    {	InitialContext ictx = new InitialContext();	if (unbindName != null)	    ictx.unbind( unbindName );		if (jndiName != null)	{	    // Thanks to David D. Kilzer for this code to auto-create	    // subcontext paths!	    Name name = ictx.getNameParser( jndiName ).parse( jndiName );	    Context ctx = ictx;	    for (int i = 0, max = name.size() - 1; i < max; i++)	    {		try		{ ctx = ctx.createSubcontext( name.get( i ) ); }		catch (NameAlreadyBoundException ignore)		{ ctx = (Context) ctx.lookup( name.get( i ) ); }	    } 	    ictx.rebind( jndiName, combods );	}    }    // Jndi Setup Names    public void setJndiName(String jndiName) throws NamingException    {	String unbindName = this.jndiName;	this.jndiName = jndiName; 	rebind( unbindName );    }    public String getJndiName()    { return jndiName; }    // DriverManagerDataSourceProperties  (count: 4)    public String getDescription()    { return combods.getDescription(); }	    public void setDescription( String description ) throws NamingException    { 	combods.setDescription( description ); 	rebind();    }	    public String getDriverClass()    { return combods.getDriverClass(); }	    public void setDriverClass( String driverClass ) throws PropertyVetoException, NamingException    { 	combods.setDriverClass( driverClass ); 	rebind();    }	    public String getJdbcUrl()    { return combods.getJdbcUrl(); }	    public void setJdbcUrl( String jdbcUrl ) throws NamingException    { 	combods.setJdbcUrl( jdbcUrl ); 	rebind();    }	    // DriverManagerDataSource "virtual properties" based on properties    public String getUser()    { return combods.getUser(); }	    public void setUser( String user ) throws NamingException    { 	combods.setUser( user ); 	rebind();    }	    public String getPassword()    { return combods.getPassword(); }	    public void setPassword( String password ) throws NamingException    { 	combods.setPassword( password ); 	rebind();    }    // WrapperConnectionPoolDataSource properties (count: 21)    public int getCheckoutTimeout()    { return combods.getCheckoutTimeout(); }	    public void setCheckoutTimeout( int checkoutTimeout ) throws NamingException    { 	combods.setCheckoutTimeout( checkoutTimeout ); 	rebind();    }    public int getAcquireIncrement()    { return combods.getAcquireIncrement(); }	    public void setAcquireIncrement( int acquireIncrement ) throws NamingException    { 	combods.setAcquireIncrement( acquireIncrement ); 	rebind();    }	    public int getAcquireRetryAttempts()    { return combods.getAcquireRetryAttempts(); }	    public void setAcquireRetryAttempts( int acquireRetryAttempts ) throws NamingException    { 	combods.setAcquireRetryAttempts( acquireRetryAttempts ); 	rebind();    }	    public int getAcquireRetryDelay()    { return combods.getAcquireRetryDelay(); }	    public void setAcquireRetryDelay( int acquireRetryDelay ) throws NamingException    { 	combods.setAcquireRetryDelay( acquireRetryDelay ); 	rebind();    }	    public boolean isAutoCommitOnClose()    { return combods.isAutoCommitOnClose(); }    public void setAutoCommitOnClose( boolean autoCommitOnClose ) throws NamingException    { 	combods.setAutoCommitOnClose( autoCommitOnClose ); 	rebind();    }	    public String getConnectionTesterClassName()    { return combods.getConnectionTesterClassName(); }	    public void setConnectionTesterClassName( String connectionTesterClassName ) throws PropertyVetoException, NamingException    { 	combods.setConnectionTesterClassName( connectionTesterClassName ); 	rebind();    }	    public String getAutomaticTestTable()    { return combods.getAutomaticTestTable(); }	    public void setAutomaticTestTable( String automaticTestTable ) throws NamingException    { 	combods.setAutomaticTestTable( automaticTestTable ); 	rebind();    }	    public boolean isForceIgnoreUnresolvedTransactions()    { return combods.isForceIgnoreUnresolvedTransactions(); }	    public void setForceIgnoreUnresolvedTransactions( boolean forceIgnoreUnresolvedTransactions ) throws NamingException    { 	combods.setForceIgnoreUnresolvedTransactions( forceIgnoreUnresolvedTransactions ); 	rebind();    }	    public int getIdleConnectionTestPeriod()    { return combods.getIdleConnectionTestPeriod(); }	    public void setIdleConnectionTestPeriod( int idleConnectionTestPeriod ) throws NamingException    { 	combods.setIdleConnectionTestPeriod( idleConnectionTestPeriod ); 	rebind();    }        public int getInitialPoolSize()    { return combods.getInitialPoolSize(); }	    public void setInitialPoolSize( int initialPoolSize ) throws NamingException    { 	combods.setInitialPoolSize( initialPoolSize ); 	rebind();    }    public int getMaxIdleTime()    { return combods.getMaxIdleTime(); }	    public void setMaxIdleTime( int maxIdleTime ) throws NamingException    { 	combods.setMaxIdleTime( maxIdleTime ); 	rebind();    }	    public int getMaxPoolSize()    { return combods.getMaxPoolSize(); }	    public void setMaxPoolSize( int maxPoolSize ) throws NamingException    { 	combods.setMaxPoolSize( maxPoolSize ); 	rebind();    }	    public int getMaxStatements()    { return combods.getMaxStatements(); }	    public void setMaxStatements( int maxStatements ) throws NamingException    { 	combods.setMaxStatements( maxStatements ); 	rebind();    }	    public int getMaxStatementsPerConnection()    { return combods.getMaxStatementsPerConnection(); }	    public void setMaxStatementsPerConnection( int maxStatementsPerConnection ) throws NamingException    { 	combods.setMaxStatementsPerConnection( maxStatementsPerConnection ); 	rebind();    }	    public int getMinPoolSize()    { return combods.getMinPoolSize(); }	    public void setMinPoolSize( int minPoolSize ) throws NamingException    { 	combods.setMinPoolSize( minPoolSize ); 	rebind();    }	    public int getPropertyCycle()    { return combods.getPropertyCycle(); }	    public void setPropertyCycle( int propertyCycle ) throws NamingException    { 	combods.setPropertyCycle( propertyCycle ); 	rebind();    }        public boolean isBreakAfterAcquireFailure()    { return combods.isBreakAfterAcquireFailure(); }        public void setBreakAfterAcquireFailure( boolean breakAfterAcquireFailure ) throws NamingException    { 	combods.setBreakAfterAcquireFailure( breakAfterAcquireFailure ); 	rebind();    }        public boolean isTestConnectionOnCheckout()    { return combods.isTestConnectionOnCheckout(); }	    public void setTestConnectionOnCheckout( boolean testConnectionOnCheckout ) throws NamingException    { 	combods.setTestConnectionOnCheckout( testConnectionOnCheckout ); 	rebind();    }	    public boolean isTestConnectionOnCheckin()    { return combods.isTestConnectionOnCheckin(); }	    public void setTestConnectionOnCheckin( boolean testConnectionOnCheckin ) throws NamingException    { 	combods.setTestConnectionOnCheckin( testConnectionOnCheckin ); 	rebind();    }	    public boolean isUsesTraditionalReflectiveProxies()    { return combods.isUsesTraditionalReflectiveProxies(); }	    public void setUsesTraditionalReflectiveProxies( boolean usesTraditionalReflectiveProxies ) throws NamingException    { 	combods.setUsesTraditionalReflectiveProxies( usesTraditionalReflectiveProxies ); 	rebind();    }    public String getPreferredTestQuery()    { return combods.getPreferredTestQuery(); }	    public void setPreferredTestQuery( String preferredTestQuery ) throws NamingException    { 	combods.setPreferredTestQuery( preferredTestQuery ); 	rebind();    }    // PoolBackedDataSource properties (count: 2)    public String getDataSourceName()    { return combods.getDataSourceName(); }	    public void setDataSourceName( String name ) throws NamingException    { 	combods.setDataSourceName( name ); 	rebind();    }    public int getNumHelperThreads()    { return combods.getNumHelperThreads(); }	    public void setNumHelperThreads( int numHelperThreads ) throws NamingException    { 	combods.setNumHelperThreads( numHelperThreads ); 	rebind();    }    // shared properties (count: 1)    public String getFactoryClassLocation()    { return combods.getFactoryClassLocation(); }        public void setFactoryClassLocation( String factoryClassLocation ) throws NamingException    { 	combods.setFactoryClassLocation( factoryClassLocation ); 	rebind();    }    // PooledDataSource statistics    public int getNumUserPools() throws SQLException    { return combods.getNumUserPools(); }    public int getNumConnectionsDefaultUser() throws SQLException    { return combods.getNumConnectionsDefaultUser(); }    public int getNumIdleConnectionsDefaultUser() throws SQLException    { return combods.getNumIdleConnectionsDefaultUser(); }    public int getNumBusyConnectionsDefaultUser() throws SQLException    { return combods.getNumBusyConnectionsDefaultUser(); }    public int getNumUnclosedOrphanedConnectionsDefaultUser() throws SQLException    { return combods.getNumUnclosedOrphanedConnectionsDefaultUser(); }    public int getNumConnections(String username, String password) throws SQLException    { return combods.getNumConnections(username, password); }    public int getNumIdleConnections(String username, String password) throws SQLException    { return combods.getNumIdleConnections(username, password); }    public int getNumBusyConnections(String username, String password) throws SQLException    { return combods.getNumBusyConnections(username, password); }    public int getNumUnclosedOrphanedConnections(String username, String password) throws SQLException    { return combods.getNumUnclosedOrphanedConnections(username, password); }    public int getNumConnectionsAllUsers() throws SQLException    { return combods.getNumConnectionsAllUsers(); }    public int getNumIdleConnectionsAllUsers() throws SQLException    { return combods.getNumIdleConnectionsAllUsers(); }    public int getNumBusyConnectionsAllUsers() throws SQLException    { return combods.getNumBusyConnectionsAllUsers(); }    public int getNumUnclosedOrphanedConnectionsAllUsers() throws SQLException    { return combods.getNumUnclosedOrphanedConnectionsAllUsers(); }    // PooledDataSource operations    public void softResetDefaultUser() throws SQLException    { combods.softResetDefaultUser(); }    public void softReset(String username, String password) throws SQLException    { combods.softReset(username, password); }    public void softResetAllUsers() throws SQLException    { combods.softResetAllUsers(); }    public void hardReset() throws SQLException    { combods.hardReset(); }    public void close() throws SQLException    { combods.close(); }    //JBoss only... (but these methods need not be called for the mbean to work)    public void create() throws Exception    { }    // the mbean works without this, but if called we start populating the pool early    public void start() throws Exception    { 	//System.err.println("Bound C3P0 PooledDataSource to name '" + jndiName + "'. Starting..."); 	logger.log(MLevel.INFO, "Bound C3P0 PooledDataSource to name ''{0}''. Starting...", jndiName); 	combods.getNumBusyConnectionsDefaultUser(); //just touch the datasource to start it up.    }    public void stop()    { }    public void destroy()    { }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色视频一区二区| 日日嗨av一区二区三区四区| gogo大胆日本视频一区| 中文字幕中文字幕中文字幕亚洲无线| 在线日韩av片| 狠狠色狠狠色合久久伊人| 国产精品久久毛片| 精品日韩av一区二区| 99re热这里只有精品视频| 视频在线观看一区二区三区| 久久精品亚洲精品国产欧美kt∨| 成人av在线看| 美女www一区二区| 亚洲欧洲日产国码二区| 日韩欧美在线网站| 91丝袜高跟美女视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品久久久久久久久免费丝袜 | 免费高清在线视频一区·| 欧美国产日韩一二三区| 欧美日韩成人一区| 波多野结衣的一区二区三区| 青青草视频一区| 亚洲视频小说图片| 国产亚洲欧美色| 欧美一区二区私人影院日本| 国产精品99久久久久久有的能看| 亚洲午夜电影网| 亚洲欧洲美洲综合色网| 日韩写真欧美这视频| 在线一区二区三区四区| 国产成人精品免费网站| 麻豆国产精品官网| 五月综合激情网| 亚洲免费观看高清完整版在线观看熊 | 精品少妇一区二区三区免费观看 | 麻豆一区二区三| 亚洲综合视频在线观看| 中文字幕不卡在线播放| 日韩美女视频在线| 欧美三级欧美一级| 色8久久人人97超碰香蕉987| 国产a精品视频| 国产精品自拍在线| 麻豆国产91在线播放| 免费的国产精品| 午夜电影一区二区三区| 亚洲一区二区视频在线| 亚洲最大的成人av| 一区二区三区四区国产精品| 国产精品久久久久久久午夜片 | 精品视频一区二区三区免费| 91视频com| 99这里只有精品| 99这里都是精品| 99久久免费精品| 91免费视频网| 色偷偷久久一区二区三区| 91丝袜美腿高跟国产极品老师 | 精品久久久久久最新网址| 欧美精品一级二级| 欧美精品1区2区3区| 欧美日韩不卡视频| 欧美日韩在线观看一区二区 | 欧美三级一区二区| 欧美日韩中文字幕一区二区| 欧美视频一区二| 欧美裸体bbwbbwbbw| 欧美一区三区四区| 日韩精品一区二区三区视频在线观看 | 欧美主播一区二区三区美女| 日本韩国精品在线| 欧美日韩一级视频| 日韩欧美一区电影| 中文字幕欧美日韩一区| 中文av字幕一区| 亚洲视频香蕉人妖| 亚洲国产精品久久久男人的天堂| 日韩精品电影一区亚洲| 另类调教123区 | 欧洲精品一区二区| 欧美浪妇xxxx高跟鞋交| 欧美电影免费观看高清完整版在 | 欧美日韩日日骚| 日韩亚洲电影在线| 国产亚洲成av人在线观看导航| 国产亚洲精久久久久久| 国产女人aaa级久久久级 | 久久黄色级2电影| 成人一区二区视频| 在线观看91视频| 91精品蜜臀在线一区尤物| 久久免费午夜影院| 亚洲精品少妇30p| 蜜桃av一区二区| 91一区一区三区| 7777精品伊人久久久大香线蕉完整版 | 亚洲视频一区在线| 中文字幕一区二区在线播放| 午夜视频久久久久久| 九九**精品视频免费播放| www.欧美日韩| 欧美一级片在线| 国产精品不卡视频| 麻豆精品国产传媒mv男同| www.色精品| 欧美一区二区三区公司| 国产精品免费av| 免费成人你懂的| 91麻豆视频网站| 久久久久亚洲蜜桃| 亚洲色图都市小说| 亚洲一区二区偷拍精品| 国产夫妻精品视频| 欧美丝袜丝nylons| 欧美激情综合五月色丁香小说| 亚洲成av人综合在线观看| 成人激情小说乱人伦| 5858s免费视频成人| 亚洲少妇最新在线视频| 精品在线视频一区| 欧美久久免费观看| 国产精品福利一区二区三区| 韩国午夜理伦三级不卡影院| 欧美系列一区二区| 欧美激情中文不卡| 精品影视av免费| 色素色在线综合| 国产精品国产精品国产专区不片| 黄页视频在线91| 欧美一区二区三区爱爱| 一区二区三区在线不卡| 国产激情一区二区三区| 欧美综合色免费| 最新高清无码专区| 国产不卡视频在线观看| 欧美电视剧在线观看完整版| 亚洲高清中文字幕| 在线观看日韩毛片| 亚洲日本va在线观看| 成人黄色电影在线 | 久久97超碰色| 日韩欧美国产电影| 亚洲永久免费av| 一本色道综合亚洲| 综合久久一区二区三区| 成人黄色av电影| 国产精品免费久久久久| 国产成人在线免费观看| 欧美年轻男男videosbes| 亚洲国产精品影院| 99re这里只有精品视频首页| 欧美精彩视频一区二区三区| 国产成人免费视频网站高清观看视频 | 欧美电影在线免费观看| 欧美一区二视频| 亚洲同性gay激情无套| 色香蕉久久蜜桃| 日韩电影在线一区二区三区| 欧美videos中文字幕| 国产一区二区三区四区五区入口| 国产亲近乱来精品视频| 91丨九色丨尤物| 日韩不卡手机在线v区| 久久伊人中文字幕| 不卡欧美aaaaa| 视频一区二区三区中文字幕| 欧美大片一区二区| 成人一级黄色片| 亚洲一区二区成人在线观看| 日韩视频中午一区| 国产 欧美在线| 亚洲一线二线三线视频| 欧美v日韩v国产v| 99久久国产综合精品色伊| 午夜日韩在线观看| 国产日韩v精品一区二区| 欧美在线播放高清精品| 国产美女精品在线| 亚洲最大成人网4388xx| 2020日本不卡一区二区视频| 91一区一区三区| 久久se精品一区二区| 亚洲色图在线播放| 精品女同一区二区| 色婷婷激情久久| 国产精华液一区二区三区| 亚洲国产sm捆绑调教视频| 久久久久国产成人精品亚洲午夜| 91国产成人在线| 国产成人在线免费观看| 日韩精品一卡二卡三卡四卡无卡| 中文一区在线播放| 日韩精品一区二区三区中文不卡 | 日韩一区在线看| 日韩午夜电影在线观看| 一本大道久久a久久精二百| 激情综合网最新| 亚洲第一福利一区| 国产精品麻豆视频|