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

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

?? connectionwrapper.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* Copyright (C) 2002-2006 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.sql.Connection;import java.sql.SQLException;import java.sql.Savepoint;import java.sql.Statement;import com.mysql.jdbc.MysqlErrorNumbers;import com.mysql.jdbc.SQLError;/** * 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 {	private com.mysql.jdbc.Connection mc = null;	private MysqlPooledConnection mpc = null;	private String invalidHandleStr = "Logical handle no longer valid";	private boolean closed;	private boolean isForXa;		/**	 * 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,			com.mysql.jdbc.Connection 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() throws SQLException {		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);		}	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区三级电影在线观看| 亚洲裸体在线观看| 欧美本精品男人aⅴ天堂| 欧美日韩国产小视频| 欧美午夜免费电影| 欧美日韩在线播放三区| 欧美日韩精品高清| 欧美日韩国产片| 欧美一区二区三区免费在线看| 欧美日韩国产小视频在线观看| 在线播放一区二区三区| 欧美一级免费观看| 欧美va天堂va视频va在线| 精品久久久久香蕉网| 久久久久久影视| 国产精品电影一区二区| 一区二区三区在线观看国产| 亚洲国产sm捆绑调教视频| 日韩精品一区第一页| 老司机午夜精品| 国产成人精品综合在线观看 | 免费观看在线综合色| 久久www免费人成看片高清| 国产乱码精品一品二品| 91在线免费视频观看| 欧美日韩国产美| 日韩欧美一级二级| 日本一区二区不卡视频| 一区二区三区不卡在线观看| 日日摸夜夜添夜夜添精品视频| 韩国av一区二区三区在线观看| 国产成人在线视频网站| 日本大香伊一区二区三区| 正在播放一区二区| 国产喂奶挤奶一区二区三区| 国产精品麻豆视频| 天天综合网 天天综合色| 国产乱色国产精品免费视频| 色哟哟一区二区在线观看| 91精品国产色综合久久ai换脸 | 视频一区视频二区中文| 激情国产一区二区| 一本久道中文字幕精品亚洲嫩| 91精品蜜臀在线一区尤物| 国产精品人妖ts系列视频| 亚洲一区免费视频| 国产一区二区三区四区五区入口| 91麻豆国产精品久久| 日韩久久久久久| 亚洲精品一二三| 激情五月婷婷综合| 在线免费观看日本一区| 久久蜜桃av一区二区天堂| 亚洲一区二区综合| 国产盗摄视频一区二区三区| 欧美日韩一区三区| 国产欧美日韩另类视频免费观看| 午夜精品在线视频一区| 成人黄页在线观看| 日韩欧美色综合| 亚洲一区在线观看免费观看电影高清| 精品一区免费av| 欧美日韩一区二区欧美激情| 国产目拍亚洲精品99久久精品| 亚洲婷婷综合色高清在线| 不卡一区二区三区四区| 666欧美在线视频| 国产精品视频线看| 欧美aaaaaa午夜精品| 色激情天天射综合网| 久久久蜜桃精品| 日本91福利区| 91久久奴性调教| 国产精品高潮久久久久无| 久久99精品久久久久久动态图| 欧美在线观看一区二区| 国产精品五月天| 激情五月婷婷综合| 91精品综合久久久久久| 亚洲在线观看免费| 99视频热这里只有精品免费| www久久精品| 另类小说视频一区二区| 欧美精品视频www在线观看| 一区二区三区在线免费观看| 成人免费观看男女羞羞视频| 精品久久久久一区二区国产| 日韩av网站在线观看| 精品视频全国免费看| 亚洲精品乱码久久久久久久久 | 国产自产2019最新不卡| 久久在线观看免费| 三级久久三级久久| 日本精品一区二区三区四区的功能| 亚洲国产电影在线观看| 国产麻豆精品theporn| 26uuu久久天堂性欧美| 日本一不卡视频| 91精品啪在线观看国产60岁| 香蕉加勒比综合久久| 欧美日韩一级黄| 亚洲高清免费在线| 欧美性一二三区| 午夜在线成人av| 欧美人动与zoxxxx乱| 亚洲不卡一区二区三区| 欧美日韩国产大片| 日韩精品成人一区二区三区 | 精品女同一区二区| 蜜桃精品在线观看| 精品蜜桃在线看| 国产乱码精品一区二区三区五月婷| 精品精品欲导航| 国产成人精品一区二区三区网站观看| 久久九九影视网| 99久久精品久久久久久清纯| 亚洲欧洲日产国产综合网| 色综合久久综合网| 成人a免费在线看| 中文字幕亚洲在| 色狠狠av一区二区三区| 亚洲国产精品久久人人爱| 欧美人与性动xxxx| 黄页网站大全一区二区| 国产蜜臀av在线一区二区三区| 91麻豆高清视频| 午夜视频一区在线观看| 欧美v日韩v国产v| 成人18精品视频| 亚洲国产精品久久久久婷婷884| 4438成人网| 国产成人免费视频网站| 亚洲综合无码一区二区| 日韩一区二区三区av| 岛国精品一区二区| 亚洲国产精品一区二区久久恐怖片| 日韩一区二区三区视频| 成人综合日日夜夜| 亚洲午夜久久久久久久久电影院 | 亚洲欧美日本在线| 欧美一区二区在线免费播放| 国产精品一品二品| 亚洲综合成人网| 精品国产亚洲一区二区三区在线观看| 懂色av中文一区二区三区| 亚洲午夜成aⅴ人片| 精品美女一区二区| 91丨porny丨蝌蚪视频| 欧美96一区二区免费视频| 国产精品三级在线观看| 欧美精品一级二级三级| 成人高清视频免费观看| 轻轻草成人在线| 中文字幕人成不卡一区| 日韩一级成人av| 91天堂素人约啪| 精品一区中文字幕| 亚洲午夜国产一区99re久久| 久久精品在线免费观看| 欧美日韩精品免费观看视频 | 久久男人中文字幕资源站| 日本高清免费不卡视频| 国产精品1区2区3区在线观看| 亚洲尤物在线视频观看| 国产无人区一区二区三区| 欧美美女bb生活片| 92精品国产成人观看免费| 狠狠色综合日日| 日韩黄色片在线观看| 亚洲乱码中文字幕综合| 久久精品一区四区| 日韩一区二区三区视频| 欧美影片第一页| 成人app网站| 国产乱国产乱300精品| 日韩精品亚洲专区| 亚洲高清三级视频| 亚洲欧美乱综合| 国产精品久久久久一区| 亚洲精品一区二区三区福利| 欧美精品久久久久久久久老牛影院 | 日本免费新一区视频| 亚洲黄色尤物视频| 国产精品伦一区| 欧美激情资源网| 日韩精品一区二区在线观看| 欧美国产一区二区在线观看| 7777精品伊人久久久大香线蕉完整版| 9人人澡人人爽人人精品| 国产经典欧美精品| 韩日av一区二区| 乱一区二区av| 麻豆国产欧美一区二区三区| 亚洲第一久久影院| 亚洲一区在线电影| 亚洲国产精品嫩草影院| 亚洲制服丝袜在线| 亚洲一区二区黄色| 亚洲一区在线视频| 亚洲午夜影视影院在线观看|