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

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

?? statementwrapper.java

?? 用于JAVA數據庫連接.解壓就可用,方便得很
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* 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 com.mysql.jdbc.ConnectionImpl;import com.mysql.jdbc.SQLError;import com.mysql.jdbc.Util;import java.lang.reflect.Constructor;import java.sql.Connection;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.SQLWarning;import java.sql.Statement;/** * Wraps statements so that errors can be reported correctly to * ConnectionEventListeners. *  * @author Mark Matthews *  * @version $Id: StatementWrapper.java,v 1.1.2.1 2005/05/13 18:58:38 mmatthews *          Exp $ */public class StatementWrapper extends WrapperBase implements Statement {	private static final Constructor JDBC_4_STATEMENT_WRAPPER_CTOR;		static {		if (Util.isJdbc4()) {			try {				JDBC_4_STATEMENT_WRAPPER_CTOR = Class.forName(						"com.mysql.jdbc.jdbc2.optional.JDBC4StatementWrapper").getConstructor(						new Class[] { ConnectionWrapper.class, 								MysqlPooledConnection.class, 								Statement.class });			} catch (SecurityException e) {				throw new RuntimeException(e);			} catch (NoSuchMethodException e) {				throw new RuntimeException(e);			} catch (ClassNotFoundException e) {				throw new RuntimeException(e);			}		} else {			JDBC_4_STATEMENT_WRAPPER_CTOR = null;		}	}		protected static StatementWrapper getInstance(ConnectionWrapper c, 			MysqlPooledConnection conn,			Statement toWrap) throws SQLException {		if (!Util.isJdbc4()) {			return new StatementWrapper(c, 					conn, toWrap);		}		return (StatementWrapper) Util.handleNewInstance(				JDBC_4_STATEMENT_WRAPPER_CTOR,				new Object[] {c, 						conn, toWrap });	}		protected Statement wrappedStmt;	protected ConnectionWrapper wrappedConn;	public StatementWrapper(ConnectionWrapper c, MysqlPooledConnection conn,			Statement toWrap) {		this.pooledConnection = conn;		this.wrappedStmt = toWrap;		this.wrappedConn = c;	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getConnection()	 */	public Connection getConnection() throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedConn;			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return null; // we actually never get here, but the compiler can't						// figure		// that out	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#setCursorName(java.lang.String)	 */	public void setCursorName(String name) throws SQLException {		try {			if (this.wrappedStmt != null) {				this.wrappedStmt.setCursorName(name);			} else {				throw SQLError.createSQLException("Statement already closed",						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#setEscapeProcessing(boolean)	 */	public void setEscapeProcessing(boolean enable) throws SQLException {		try {			if (this.wrappedStmt != null) {				this.wrappedStmt.setEscapeProcessing(enable);			} else {				throw SQLError.createSQLException("Statement already closed",						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#setFetchDirection(int)	 */	public void setFetchDirection(int direction) throws SQLException {		try {			if (this.wrappedStmt != null) {				this.wrappedStmt.setFetchDirection(direction);			} else {				throw SQLError.createSQLException("Statement already closed",						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getFetchDirection()	 */	public int getFetchDirection() throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedStmt.getFetchDirection();			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return ResultSet.FETCH_FORWARD; // we actually never get here, but the										// compiler can't figure		// that out	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#setFetchSize(int)	 */	public void setFetchSize(int rows) throws SQLException {		try {			if (this.wrappedStmt != null) {				this.wrappedStmt.setFetchSize(rows);			} else {				throw SQLError.createSQLException("Statement already closed",						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getFetchSize()	 */	public int getFetchSize() throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedStmt.getFetchSize();			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return 0; // we actually never get here, but the compiler can't figure		// that out	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getGeneratedKeys()	 */	public ResultSet getGeneratedKeys() throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedStmt.getGeneratedKeys();			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return null; // we actually never get here, but the compiler can't						// figure		// that out	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#setMaxFieldSize(int)	 */	public void setMaxFieldSize(int max) throws SQLException {		try {			if (this.wrappedStmt != null) {				this.wrappedStmt.setMaxFieldSize(max);			} else {				throw SQLError.createSQLException("Statement already closed",						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getMaxFieldSize()	 */	public int getMaxFieldSize() throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedStmt.getMaxFieldSize();			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return 0; // we actually never get here, but the compiler can't figure		// that out	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#setMaxRows(int)	 */	public void setMaxRows(int max) throws SQLException {		try {			if (this.wrappedStmt != null) {				this.wrappedStmt.setMaxRows(max);			} else {				throw SQLError.createSQLException("Statement already closed",						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getMaxRows()	 */	public int getMaxRows() throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedStmt.getMaxRows();			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return 0; // we actually never get here, but the compiler can't figure		// that out	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getMoreResults()	 */	public boolean getMoreResults() throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedStmt.getMoreResults();			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return false;	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getMoreResults(int)	 */	public boolean getMoreResults(int current) throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedStmt.getMoreResults(current);			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return false;	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#setQueryTimeout(int)	 */	public void setQueryTimeout(int seconds) throws SQLException {		try {			if (this.wrappedStmt != null) {				this.wrappedStmt.setQueryTimeout(seconds);			} else {				throw SQLError.createSQLException("Statement already closed",						SQLError.SQL_STATE_ILLEGAL_ARGUMENT);			}		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getQueryTimeout()	 */	public int getQueryTimeout() throws SQLException {		try {			if (this.wrappedStmt != null) {				return this.wrappedStmt.getQueryTimeout();			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}		return 0;	}	/*	 * (non-Javadoc)	 * 	 * @see java.sql.Statement#getResultSet()	 */	public ResultSet getResultSet() throws SQLException {		try {			if (this.wrappedStmt != null) {				ResultSet rs = this.wrappedStmt.getResultSet();				((com.mysql.jdbc.ResultSetInternalMethods) rs).setWrapperStatement(this);				return rs;			}			throw SQLError.createSQLException("Statement already closed",					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		} catch (SQLException sqlEx) {			checkAndFireConnectionError(sqlEx);		}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91高清在线观看| 国产高清久久久久| 777欧美精品| 男女性色大片免费观看一区二区| 欧美日韩小视频| 日韩和欧美的一区| 日韩欧美亚洲国产精品字幕久久久 | 777a∨成人精品桃花网| 日韩高清在线一区| 日韩欧美国产综合一区| 国产精品亚洲第一| 国产精品盗摄一区二区三区| 色视频欧美一区二区三区| 亚洲国产综合视频在线观看| 欧美伦理视频网站| 国产一区三区三区| 1区2区3区精品视频| 在线观看日韩电影| 久久99精品久久久久久动态图| 久久精品亚洲精品国产欧美kt∨ | 亚洲国产日韩精品| 欧美一区二区三区电影| 国产成人免费在线视频| 亚洲狠狠丁香婷婷综合久久久| 91精品欧美久久久久久动漫 | 欧美国产一区视频在线观看| 色天天综合色天天久久| 麻豆国产精品一区二区三区| 国产亚洲欧美中文| 欧美午夜影院一区| 老司机一区二区| 亚洲精品视频在线看| 日韩视频永久免费| 色综合天天综合网天天狠天天| 免费成人av在线播放| 亚洲欧洲精品成人久久奇米网| 欧美精品在线一区二区| 成人一级片在线观看| 日韩国产精品久久久| 中文字幕欧美区| 日韩欧美一区在线| 在线视频一区二区免费| 国内精品在线播放| 偷拍一区二区三区| 中文字幕欧美一区| 欧美精品一区视频| 欧美色手机在线观看| 懂色av一区二区三区免费看| 麻豆freexxxx性91精品| 一区二区激情视频| 国产精品视频在线看| 日韩精品一区国产麻豆| 欧美无砖专区一中文字| a在线播放不卡| 国产91对白在线观看九色| 蜜臀久久99精品久久久久宅男 | 欧美精彩视频一区二区三区| 欧美精品自拍偷拍| 在线观看欧美黄色| www.av精品| 福利一区在线观看| 美腿丝袜在线亚洲一区| 性做久久久久久| 一区二区三区加勒比av| 亚洲欧美怡红院| 中文字幕日韩欧美一区二区三区| 国产偷国产偷精品高清尤物| 精品区一区二区| 欧美一级日韩一级| 日韩亚洲国产中文字幕欧美| 欧美日韩精品一区二区三区四区 | 成人久久久精品乱码一区二区三区 | 日韩免费观看高清完整版| 欧美日韩中文字幕一区| 欧美在线免费视屏| 欧美午夜一区二区| 欧美视频在线播放| 欧美视频三区在线播放| 在线亚洲人成电影网站色www| 91亚洲永久精品| 99re成人精品视频| 一本到不卡免费一区二区| 9色porny自拍视频一区二区| 成人不卡免费av| 99视频在线观看一区三区| 99视频精品免费视频| av爱爱亚洲一区| 在线观看国产日韩| 91麻豆精品国产自产在线观看一区 | 成人h动漫精品| 91污在线观看| 欧美精品亚洲一区二区在线播放| 欧美日韩aaaaaa| 日韩一区二区在线看片| 久久久一区二区三区| 亚洲国产精品精华液ab| 亚洲人妖av一区二区| 一区二区三区中文在线| 午夜免费久久看| 美女脱光内衣内裤视频久久网站| 精品写真视频在线观看| 丁香五精品蜜臀久久久久99网站| av亚洲精华国产精华精华| 欧美日韩美少妇| 欧美成人aa大片| 国产精品国产三级国产专播品爱网| 国产精品理论片在线观看| 亚洲欧美在线另类| 日韩国产欧美在线观看| 国产高清亚洲一区| 91久久免费观看| 日韩视频一区二区三区 | 色先锋久久av资源部| 欧美日韩免费观看一区二区三区| 日韩一级黄色片| 中文字幕亚洲一区二区av在线 | 亚洲欧洲av色图| 日韩电影免费在线| 成人综合婷婷国产精品久久| 91高清视频在线| 久久久一区二区三区| 亚洲一二三区在线观看| 狠狠色丁香婷婷综合久久片| 91天堂素人约啪| 亚洲精品在线电影| 亚洲成a人片综合在线| 高潮精品一区videoshd| 91精品国产一区二区人妖| 国产精品白丝在线| 美女一区二区在线观看| 欧洲精品在线观看| 久久精品夜色噜噜亚洲a∨| 午夜精品久久久久久久| www.色精品| 久久久99免费| 亚洲v中文字幕| 成人a区在线观看| 久久综合网色—综合色88| 亚洲一区在线视频| 99久久久国产精品免费蜜臀| wwwwww.欧美系列| 日本美女一区二区三区视频| 色婷婷综合视频在线观看| 久久久高清一区二区三区| 免费在线成人网| 欧美午夜视频网站| 怡红院av一区二区三区| 大白屁股一区二区视频| 精品国产99国产精品| 亚洲成人免费视| 91黄色免费版| 亚洲黄色小说网站| 99久久99久久精品免费看蜜桃| 国产亚洲女人久久久久毛片| 久久99精品国产麻豆婷婷洗澡| 91.xcao| 亚洲mv大片欧洲mv大片精品| 91久久一区二区| 一区二区三区日韩在线观看| 91在线视频免费91| 国产精品国产成人国产三级 | 亚洲乱码日产精品bd| bt欧美亚洲午夜电影天堂| 国产精品美女www爽爽爽| 国产老肥熟一区二区三区| 欧美成人bangbros| 精品一区二区日韩| 欧美精品一区二区蜜臀亚洲| 久草在线在线精品观看| 精品国产一区二区国模嫣然| 久久精品国产一区二区三| 4hu四虎永久在线影院成人| 亚州成人在线电影| 欧美一区二区私人影院日本| 日本欧美加勒比视频| 精品国偷自产国产一区| 国产一区 二区| 欧美激情资源网| 97se亚洲国产综合自在线观| 中文字幕亚洲成人| 欧美最猛性xxxxx直播| 亚洲成人av在线电影| 精品嫩草影院久久| 国产精品主播直播| 最新日韩在线视频| 欧美视频在线一区| 日韩电影在线看| 久久在线观看免费| 99re这里都是精品| 亚洲18女电影在线观看| 欧美成人激情免费网| 丁香六月久久综合狠狠色| 亚洲色图视频网| 56国语精品自产拍在线观看| 免费av网站大全久久| 欧美国产在线观看| 欧美色爱综合网| 国产乱人伦偷精品视频不卡| 亚洲欧美韩国综合色| 69av一区二区三区|