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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? connectionwrapper.java

?? 用于JAVA數(shù)據(jù)庫連接.解壓就可用,方便得很
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* Copyright (C) 2002-2007 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as  published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL  as it is applied to this software. View the full text of the  exception in file EXCEPTIONS-CONNECTOR-J in the directory of this  software distribution. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package com.mysql.jdbc.jdbc2.optional;import java.lang.reflect.Constructor;import java.sql.Connection;import java.sql.SQLException;import java.sql.Savepoint;import java.sql.Statement;import java.util.TimeZone;import com.mysql.jdbc.ConnectionImpl;import com.mysql.jdbc.MysqlErrorNumbers;import com.mysql.jdbc.PreparedStatement;import com.mysql.jdbc.SQLError;import com.mysql.jdbc.ServerPreparedStatement;import com.mysql.jdbc.Util;import com.mysql.jdbc.log.Log;/** * This class serves as a wrapper for the org.gjt.mm.mysql.jdbc2.Connection * class. It is returned to the application server which may wrap it again and * then return it to the application client in response to * dataSource.getConnection(). *  * <p> * All method invocations are forwarded to org.gjt.mm.mysql.jdbc2.Connection * unless the close method was previously called, in which case a sqlException * is thrown. The close method performs a 'logical close' on the connection. * </p> *  * <p> * All sqlExceptions thrown by the physical connection are intercepted and sent * to connectionEvent listeners before being thrown to client. * </p> *  * @author Todd Wolff todd.wolff_at_prodigy.net *  * @see org.gjt.mm.mysql.jdbc2.Connection * @see org.gjt.mm.mysql.jdbc2.optional.MysqlPooledConnection */public class ConnectionWrapper extends WrapperBase implements Connection,		com.mysql.jdbc.Connection {	protected com.mysql.jdbc.ConnectionImpl mc = null;	private MysqlPooledConnection mpc = null;	private String invalidHandleStr = "Logical handle no longer valid";	private boolean closed;	private boolean isForXa;	private static final Constructor JDBC_4_CONNECTION_WRAPPER_CTOR;	static {		if (Util.isJdbc4()) {			try {				JDBC_4_CONNECTION_WRAPPER_CTOR = Class.forName(						"com.mysql.jdbc.jdbc2.optional.JDBC4ConnectionWrapper")						.getConstructor(								new Class[] { MysqlPooledConnection.class,										ConnectionImpl.class, Boolean.TYPE });			} catch (SecurityException e) {				throw new RuntimeException(e);			} catch (NoSuchMethodException e) {				throw new RuntimeException(e);			} catch (ClassNotFoundException e) {				throw new RuntimeException(e);			}		} else {			JDBC_4_CONNECTION_WRAPPER_CTOR = null;		}	}	protected static ConnectionWrapper getInstance(			MysqlPooledConnection mysqlPooledConnection,			ConnectionImpl mysqlConnection, boolean forXa) throws SQLException {		if (!Util.isJdbc4()) {			return new ConnectionWrapper(mysqlPooledConnection,					mysqlConnection, forXa);		}		return (ConnectionWrapper) Util.handleNewInstance(				JDBC_4_CONNECTION_WRAPPER_CTOR, new Object[] {						mysqlPooledConnection, mysqlConnection,						Boolean.valueOf(forXa) });	}	/**	 * Construct a new LogicalHandle and set instance variables	 * 	 * @param mysqlPooledConnection	 *            reference to object that instantiated this object	 * @param mysqlConnection	 *            physical connection to db	 * 	 * @throws SQLException	 *             if an error occurs.	 */	public ConnectionWrapper(MysqlPooledConnection mysqlPooledConnection,			ConnectionImpl mysqlConnection, boolean forXa) throws SQLException {		this.mpc = mysqlPooledConnection;		this.mc = mysqlConnection;		this.closed = false;		this.pooledConnection = this.mpc;		this.isForXa = forXa;		if (this.isForXa) {			setInGlobalTx(false);		}	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#setAutoCommit	 */	public void setAutoCommit(boolean autoCommit) throws SQLException {		checkClosed();		if (autoCommit && isInGlobalTx()) {			throw SQLError.createSQLException(					"Can't set autocommit to 'true' on an XAConnection",					SQLError.SQL_STATE_INVALID_TRANSACTION_TERMINATION,					MysqlErrorNumbers.ER_XA_RMERR);		}		try {			this.mc.setAutoCommit(autoCommit);		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#getAutoCommit()	 */	public boolean getAutoCommit() throws SQLException {		checkClosed();		try {			return this.mc.getAutoCommit();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return false; // we don't reach this code, compiler can't tell	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#setCatalog()	 */	public void setCatalog(String catalog) throws SQLException {		checkClosed();		try {			this.mc.setCatalog(catalog);		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @return the current catalog	 * 	 * @throws SQLException	 *             if an error occurs	 */	public String getCatalog() throws SQLException {		checkClosed();		try {			return this.mc.getCatalog();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return null; // we don't reach this code, compiler can't tell	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#isClosed()	 */	public boolean isClosed() throws SQLException {		return (this.closed || this.mc.isClosed());	}	public boolean isMasterConnection() {		return this.mc.isMasterConnection();	}	/**	 * @see Connection#setHoldability(int)	 */	public void setHoldability(int arg0) throws SQLException {		checkClosed();		try {			this.mc.setHoldability(arg0);		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}	}	/**	 * @see Connection#getHoldability()	 */	public int getHoldability() throws SQLException {		checkClosed();		try {			return this.mc.getHoldability();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return Statement.CLOSE_CURRENT_RESULT; // we don't reach this code,		// compiler can't tell	}	/**	 * Allows clients to determine how long this connection has been idle.	 * 	 * @return how long the connection has been idle.	 */	public long getIdleFor() {		return this.mc.getIdleFor();	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @return a metadata instance	 * 	 * @throws SQLException	 *             if an error occurs	 */	public java.sql.DatabaseMetaData getMetaData() throws SQLException {		checkClosed();		try {			return this.mc.getMetaData();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return null; // we don't reach this code, compiler can't tell	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#setReadOnly()	 */	public void setReadOnly(boolean readOnly) throws SQLException {		checkClosed();		try {			this.mc.setReadOnly(readOnly);		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#isReadOnly()	 */	public boolean isReadOnly() throws SQLException {		checkClosed();		try {			return this.mc.isReadOnly();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return false; // we don't reach this code, compiler can't tell	}	/**	 * @see Connection#setSavepoint()	 */	public java.sql.Savepoint setSavepoint() throws SQLException {		checkClosed();		if (isInGlobalTx()) {			throw SQLError.createSQLException(					"Can't set autocommit to 'true' on an XAConnection",					SQLError.SQL_STATE_INVALID_TRANSACTION_TERMINATION,					MysqlErrorNumbers.ER_XA_RMERR);		}		try {			return this.mc.setSavepoint();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return null; // we don't reach this code, compiler can't tell	}	/**	 * @see Connection#setSavepoint(String)	 */	public java.sql.Savepoint setSavepoint(String arg0) throws SQLException {		checkClosed();		if (isInGlobalTx()) {			throw SQLError.createSQLException(					"Can't set autocommit to 'true' on an XAConnection",					SQLError.SQL_STATE_INVALID_TRANSACTION_TERMINATION,					MysqlErrorNumbers.ER_XA_RMERR);		}		try {			return this.mc.setSavepoint(arg0);		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return null; // we don't reach this code, compiler can't tell	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#setTransactionIsolation()	 */	public void setTransactionIsolation(int level) throws SQLException {		checkClosed();		try {			this.mc.setTransactionIsolation(level);		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#getTransactionIsolation()	 */	public int getTransactionIsolation() throws SQLException {		checkClosed();		try {			return this.mc.getTransactionIsolation();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return TRANSACTION_REPEATABLE_READ; // we don't reach this code,		// compiler can't tell	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#setTypeMap()	 */	public void setTypeMap(java.util.Map map) throws SQLException {		checkClosed();		try {			this.mc.setTypeMap(map);		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#getTypeMap()	 */	public java.util.Map getTypeMap() throws SQLException {		checkClosed();		try {			return this.mc.getTypeMap();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return null; // we don't reach this code, compiler can't tell	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @see java.sql.Connection#getWarnings	 */	public java.sql.SQLWarning getWarnings() throws SQLException {		checkClosed();		try {			return this.mc.getWarnings();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}		return null; // we don't reach this code, compiler can't tell	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @throws SQLException	 *             if an error occurs	 */	public void clearWarnings() throws SQLException {		checkClosed();		try {			this.mc.clearWarnings();		} catch (SQLException sqlException) {			checkAndFireConnectionError(sqlException);		}	}	/**	 * The physical connection is not actually closed. the physical connection	 * is closed when the application server calls	 * mysqlPooledConnection.close(). this object is de-referenced by the pooled	 * connection each time mysqlPooledConnection.getConnection() is called by	 * app server.	 * 	 * @throws SQLException	 *             if an error occurs	 */	public void close() throws SQLException {		close(true);	}	/**	 * Passes call to method on physical connection instance. Notifies listeners	 * of any caught exceptions before re-throwing to client.	 * 	 * @throws SQLException	 *             if an error occurs	 */	public void commit() throws SQLException {		checkClosed();		if (isInGlobalTx()) {			throw SQLError					.createSQLException(							"Can't call commit() on an XAConnection associated with a global transaction",							SQLError.SQL_STATE_INVALID_TRANSACTION_TERMINATION,							MysqlErrorNumbers.ER_XA_RMERR);		}		try {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区免费在线电影 | 69久久99精品久久久久婷婷| 欧美美女bb生活片| 国产欧美一区二区三区在线老狼| 最新热久久免费视频| 麻豆精品视频在线观看免费| 91搞黄在线观看| 久久九九影视网| 蜜臀av性久久久久蜜臀aⅴ流畅 | 亚洲精品国产成人久久av盗摄 | 秋霞电影一区二区| 一本一道综合狠狠老| 久久久99精品免费观看不卡| 三级亚洲高清视频| 91看片淫黄大片一级在线观看| 亚洲精品一区在线观看| 亚洲高清不卡在线观看| 91麻豆国产福利精品| 国产精品卡一卡二| 国产成人综合在线观看| 日韩一区二区三区视频在线| 亚洲综合偷拍欧美一区色| 99精品欧美一区二区三区小说 | 欧美电影免费提供在线观看| 夜夜揉揉日日人人青青一国产精品| 丁香桃色午夜亚洲一区二区三区| 欧美一区二区精品| 天堂在线一区二区| 欧美色精品天天在线观看视频| 亚洲免费在线看| 91蝌蚪porny九色| 亚洲精品美国一| 在线精品视频免费播放| 一区二区高清在线| 欧美三级蜜桃2在线观看| 亚洲激情六月丁香| 欧美亚洲动漫精品| 亚州成人在线电影| 91精品免费在线观看| 免费人成精品欧美精品| 日韩欧美中文字幕一区| 精品一区二区在线观看| 国产日韩欧美综合一区| 成人高清视频在线观看| 亚洲欧美另类小说视频| 欧美日韩一区二区三区免费看 | 久久这里只有精品6| 欧美自拍丝袜亚洲| 日韩一区精品字幕| 麻豆精品一区二区综合av| 欧美综合视频在线观看| 1000部国产精品成人观看| av电影在线观看不卡| 国产精品国产三级国产a| 波多野结衣中文一区| 国产欧美日韩久久| 日本视频一区二区三区| 欧美一区二区在线看| 三级在线观看一区二区| 51精品国自产在线| 美女视频黄久久| 精品国产乱码久久久久久老虎| 精品系列免费在线观看| 久久精子c满五个校花| 国产99久久久国产精品免费看| 中文字幕免费在线观看视频一区| 波多野结衣欧美| 亚洲午夜一区二区| 精品久久久久久久一区二区蜜臀| 日本不卡视频在线| 久久久亚洲精华液精华液精华液| 狠狠色丁香婷综合久久| 亚洲免费在线电影| 欧美人xxxx| 国产精品一二三区在线| 亚洲欧美日韩在线不卡| 91麻豆精品久久久久蜜臀 | 日韩一本二本av| 国产在线麻豆精品观看| 日韩伦理电影网| 欧美久久高跟鞋激| 丰满白嫩尤物一区二区| 性久久久久久久久| 国产精品视频线看| 欧美怡红院视频| 国产麻豆成人传媒免费观看| 椎名由奈av一区二区三区| 3d成人h动漫网站入口| 国产成人综合精品三级| 亚洲成av人片在www色猫咪| 国产日韩视频一区二区三区| 久久66热偷产精品| 日韩国产精品91| 国产精品护士白丝一区av| 8x8x8国产精品| 成人动漫中文字幕| 三级不卡在线观看| 亚洲欧美日韩国产一区二区三区| 欧美成人一区二区三区| 一本色道久久综合亚洲aⅴ蜜桃| 久久国产日韩欧美精品| 亚洲激情男女视频| 欧美xxxxx裸体时装秀| 波多野结衣精品在线| 久久 天天综合| 亚洲va在线va天堂| 亚洲欧洲日产国产综合网| 精品久久久久久无| 欧美日韩国产精选| 色94色欧美sute亚洲线路二 | 欧美美女一区二区在线观看| 成人免费毛片高清视频| 麻豆91精品视频| 天天色综合天天| 一区二区不卡在线视频 午夜欧美不卡在 | 欧美天堂亚洲电影院在线播放| 国v精品久久久网| 老司机一区二区| 爽爽淫人综合网网站| 一区二区三区国产精华| 国产精品国产三级国产aⅴ原创| 亚洲精品在线观看网站| 日韩一区二区三| 欧美一区2区视频在线观看| av网站一区二区三区| 国产一区二区精品在线观看| 日韩国产欧美视频| 天天影视色香欲综合网老头| 亚洲与欧洲av电影| 亚洲精品成a人| 亚洲人快播电影网| 亚洲精品视频一区二区| 亚洲精品久久久久久国产精华液| 成人欧美一区二区三区黑人麻豆| 欧美精品第1页| 在线精品亚洲一区二区不卡| 91麻豆123| 欧美日韩精品二区第二页| 欧美精品777| 一本久久综合亚洲鲁鲁五月天 | 美女视频一区在线观看| 青青国产91久久久久久| 免费视频一区二区| 美女视频黄频大全不卡视频在线播放| 亚洲午夜久久久| 亚洲国产高清不卡| 久久奇米777| 国产精品久久一卡二卡| 亚洲综合色婷婷| 日韩成人一区二区| 激情综合色播激情啊| 国产美女精品人人做人人爽| 成人av中文字幕| 成人妖精视频yjsp地址| 91在线视频在线| 精品视频免费在线| 精品少妇一区二区三区日产乱码| 久久综合精品国产一区二区三区| 国产女人18毛片水真多成人如厕| 18成人在线视频| 日本不卡一二三区黄网| 国产盗摄女厕一区二区三区| 成人丝袜视频网| 宅男噜噜噜66一区二区66| 久久精品人人做| 一区二区日韩电影| 久久不见久久见免费视频7| 成人免费视频app| 欧美福利电影网| 国产日韩精品一区二区浪潮av| 欧美国产精品一区| 日韩电影在线观看电影| 国产成人精品免费视频网站| 在线观看成人小视频| 国产欧美一区在线| 亚洲va在线va天堂| 成人综合在线视频| 欧美一区二区三区白人| 国产精品三级电影| 久久精品国产一区二区| 91豆麻精品91久久久久久| 精品久久久网站| 亚洲人成网站影音先锋播放| 蜜臀a∨国产成人精品| 97久久精品人人做人人爽50路| 欧美大度的电影原声| 亚洲综合一区在线| 91麻豆国产在线观看| 国产日韩欧美亚洲| 美女网站在线免费欧美精品| 色婷婷狠狠综合| 精品999在线播放| 国产精品丝袜一区| 国产69精品久久777的优势| 精品少妇一区二区三区视频免付费| 亚洲成人免费看| 91蜜桃视频在线| 国产精品国产自产拍高清av| 韩国欧美国产一区| 91豆麻精品91久久久久久|