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

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

?? basebugreport.java

?? 用于JAVA數據庫連接.解壓就可用,方便得很
?? JAVA
字號:
/* Copyright (C) 2002-2004 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.util;import java.sql.Connection;import java.sql.SQLException;import java.util.Properties;import com.mysql.jdbc.Driver;/** * Base class to help file bug reports for Connector/J. *  * <p> * MySQL AB * <ul> * really * </ul> * appreciates repeatable testcases when reporting bugs, so we're giving you * this class to make that job a bit easier (and standarized). *  * <p> * To create a testcase, create a class that inherits from this class * (com.mysql.jdbc.util.BaseBugReport), and override the methods 'setUp', * 'tearDown' and 'runTest'. *  * <p> * In the 'setUp' method, create code that creates your tables, and populates * them with any data needed to demonstrate the bug. *  * <p> * In the 'runTest' method, create code that demonstrates the bug using the * tables and data you created in the 'setUp' method. *  * <p> * In the 'tearDown' method, drop any tables you created in the 'setUp' method. *  * <p> * In any of the above three methods, you should use one of the variants of the * 'getConnection' method to create a JDBC connection to MySQL, which will use * the default JDBC URL of 'jdbc:mysql:///test'. *  * <p> * If you need to use a JDBC URL that is different than 'jdbc:mysql:///test', * then override the method 'getUrl' as well. *  * <p> * Use the 'assertTrue' methods to create conditions that must be met in your * testcase demonstrating the behavior you are expecting (vs. the behavior you * are observing, which is why you are most likely filing a bug report). *  * <p> * Finally, create a 'main' method that creates a new instance of your testcase, * and calls the 'run' method: *  * <p> *  * <pre> * public static void main(String[] args) throws Exception { * 	new MyBugReport().run(); * } * </pre> *  * <p> * When filing a potential bug with MySQL Connector/J at http://bugs.mysql.com/ * or on the bugs mailing list, please include the code that you have just * written using this class. *  * @author Mark Matthews * @version $Id: BaseBugReport.java 3726 2005-05-19 15:52:24Z mmatthews $ */public abstract class BaseBugReport {	private Connection conn;	private Driver driver;	/**	 * Constructor for this BugReport, sets up JDBC driver used to create	 * connections.	 */	public BaseBugReport() {		try {			this.driver = new Driver();		} catch (SQLException ex) {			throw new RuntimeException(ex.toString());		}	}	/**	 * Override this method with code that sets up the testcase for	 * demonstrating your bug (creating tables, populating data, etc).	 * 	 * @throws Exception	 *             if an error occurs during the 'setUp' phase.	 */	public abstract void setUp() throws Exception;	/**	 * Override this method with code that cleans up anything created in the	 * setUp() method.	 * 	 * @throws Exception	 *             if an error occurs during the 'tearDown' phase.	 */	public abstract void tearDown() throws Exception;	/**	 * Override this method with code that demonstrates the bug. This method	 * will be called after setUp(), and before tearDown().	 * 	 * @throws Exception	 *             if an error occurs during your test run.	 */	public abstract void runTest() throws Exception;	/**	 * Runs the testcase by calling the setUp(), runTest() and tearDown()	 * methods. The tearDown() method is run regardless of any errors occuring	 * in the other methods.	 * 	 * @throws Exception	 *             if an error occurs in any of the aforementioned methods.	 */	public final void run() throws Exception {		try {			setUp();			runTest();		} finally {			tearDown();		}	}	/**	 * Throws an exception with the given message if condition evalutates to	 * 'false'.	 * 	 * @param message	 *            the message to use in the exception	 * @param condition	 *            the condition to test for	 * @throws Exception	 *             if !condition	 */	protected final void assertTrue(String message, boolean condition)			throws Exception {		if (!condition) {			throw new Exception("Assertion failed: " + message);		}	}	/**	 * Throws an exception if condition evalutates to 'false'.	 * 	 * @param condition	 *            the condition to test for	 * @throws Exception	 *             if !condition	 */	protected final void assertTrue(boolean condition) throws Exception {		assertTrue("(no message given)", condition);	}	/**	 * Provides the JDBC URL to use to demonstrate the bug. The	 * java.sql.Connection that you use to demonstrate this bug will be provided	 * by the getConnection() method using this URL.	 * 	 * The default value is 'jdbc:mysql:///test'	 */	public String getUrl() {		return "jdbc:mysql:///test";	}	/**	 * Provides a connection to the JDBC URL specified in getUrl().	 * 	 * If a connection already exists, that connection is returned. Otherwise a	 * new connection is created.	 * 	 * @return a connection to the JDBC URL specified in getUrl().	 * 	 * @throws SQLException	 *             if an error is caused while creating the connection.	 */	public final synchronized Connection getConnection() throws SQLException {		if (this.conn == null || this.conn.isClosed()) {			this.conn = getNewConnection();		}		return this.conn;	}	/**	 * Use this if you need to get a new connection for your bug report (i.e.	 * there's more than one connection involved).	 * 	 * @return a new connection to the JDBC URL specified in getUrl().	 * 	 * @throws SQLException	 *             if an error is caused while creating the connection.	 */	public final synchronized Connection getNewConnection() throws SQLException {		return getConnection(getUrl());	}	/**	 * Returns a connection using the given URL.	 * 	 * @param url	 *            the JDBC URL to use	 * @return a new java.sql.Connection to the JDBC URL.	 * @throws SQLException	 *             if an error occurs getting the connection.	 */	public final synchronized Connection getConnection(String url)			throws SQLException {		return getConnection(url, null);	}	/**	 * Returns a connection using the given URL and properties.	 * 	 * @param url	 *            the JDBC URL to use	 * @param props	 *            the JDBC properties to use	 * @return a new java.sql.Connection to the JDBC URL.	 * @throws SQLException	 *             if an error occurs getting the connection.	 */	public final synchronized Connection getConnection(String url,			Properties props) throws SQLException {		// Don't follow this example in your own code		// This is to bypass the java.sql.DriverManager		return this.driver.connect(url, props);	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲黄色小说网站| 26uuu色噜噜精品一区| 综合久久一区二区三区| 99久久精品国产麻豆演员表| 久久久久99精品国产片| 成人开心网精品视频| 亚洲丝袜另类动漫二区| 在线一区二区三区| 日本中文字幕一区二区有限公司| 67194成人在线观看| 久久精品国产在热久久| 国产人伦精品一区二区| 91精彩视频在线| 久久激情五月激情| 国产视频在线观看一区二区三区| 不卡的av网站| 全国精品久久少妇| 国产女人18水真多18精品一级做| 91视视频在线观看入口直接观看www | 亚洲欧美一区二区三区国产精品| www.亚洲人| 亚洲一线二线三线视频| 日韩一区二区三区免费看| 国产毛片一区二区| 亚洲自拍都市欧美小说| 欧美r级电影在线观看| 一本大道综合伊人精品热热| 视频一区二区中文字幕| 国产欧美日韩视频在线观看| 日本高清成人免费播放| 精品写真视频在线观看| 一区二区三区在线观看国产| 精品久久久久一区二区国产| av男人天堂一区| 裸体一区二区三区| 中文字幕亚洲一区二区av在线| 美女网站视频久久| 制服丝袜中文字幕一区| 日韩高清不卡一区| 亚洲欧美激情视频在线观看一区二区三区 | 国产欧美日韩中文久久| 欧美日韩国产综合久久| 国产成人精品免费| 秋霞电影网一区二区| 亚洲欧美日韩在线播放| 久久色.com| 9191精品国产综合久久久久久 | 国产欧美日韩三级| 欧美浪妇xxxx高跟鞋交| 色婷婷综合久久久中文一区二区| 韩国精品一区二区| 午夜av一区二区| 亚洲精品免费播放| 中文字幕不卡在线| 26uuu国产在线精品一区二区| 欧美日韩精品欧美日韩精品一综合 | 《视频一区视频二区| 日韩精品专区在线| 欧美一区永久视频免费观看| 91免费小视频| 99国产精品久久久| av电影在线观看一区| 丰满少妇久久久久久久| 国产精品伊人色| 狠狠色狠狠色合久久伊人| 免费人成在线不卡| 国产成a人亚洲精品| 五月激情综合网| 天天操天天干天天综合网| 夜夜爽夜夜爽精品视频| 亚洲一区二区三区视频在线| 亚洲美女免费在线| 欧美精品久久久久久久多人混战| 美女免费视频一区二区| 欧美亚洲综合在线| 国产精品一色哟哟哟| 日本三级亚洲精品| 美女视频网站久久| 久久精工是国产品牌吗| 久久精品99国产精品日本| 久久国产生活片100| 免费观看成人av| 激情另类小说区图片区视频区| 精品一区二区日韩| 国产精品一区二区在线观看网站| 国产成人免费av在线| 成人h动漫精品一区二| av一区二区三区黑人| 91浏览器入口在线观看| 在线精品视频一区二区三四| 欧美狂野另类xxxxoooo| 日韩免费看的电影| 国产偷国产偷精品高清尤物| 国产精品久久久久久久久动漫 | 精品理论电影在线观看| 岛国av在线一区| 丁香婷婷综合激情五月色| 色综合天天综合给合国产| 欧美曰成人黄网| 日韩欧美精品在线| 国产精品国产三级国产普通话三级| 亚洲视频一区二区免费在线观看| 一区二区三区自拍| 久久精品国产网站| 不卡区在线中文字幕| 欧美在线不卡视频| 精品欧美久久久| 亚洲美女少妇撒尿| 日本成人超碰在线观看| 国产精品一二三在| 在线看日本不卡| 久久久久高清精品| 亚洲一区视频在线| 极品销魂美女一区二区三区| 成人在线视频一区二区| 欧美日韩精品高清| 欧美国产精品一区| 肉色丝袜一区二区| 91在线高清观看| 5月丁香婷婷综合| 国产精品美女久久福利网站| 午夜av一区二区| av午夜一区麻豆| 欧美成va人片在线观看| 亚洲最色的网站| 国产乱国产乱300精品| 欧美三级在线播放| 国产精品女主播av| 麻豆国产欧美一区二区三区| 色综合天天做天天爱| 国产午夜精品一区二区| 男人的天堂亚洲一区| 91亚洲午夜精品久久久久久| 精品日韩欧美在线| 欧美一区二区三区色| 国产91对白在线观看九色| av爱爱亚洲一区| 国产精品拍天天在线| 欧美日韩免费高清一区色橹橹| 久久99热狠狠色一区二区| 色综合 综合色| 国产日韩欧美综合一区| 理论片日本一区| 欧美日韩三级一区二区| 亚洲欧洲另类国产综合| 国产在线播精品第三| 日韩一区二区三区三四区视频在线观看| 亚洲欧美日韩在线播放| 成人激情视频网站| 精品成人免费观看| 青草国产精品久久久久久| 欧美精品电影在线播放| 亚洲第一电影网| 欧美日韩亚洲高清一区二区| 亚洲免费观看高清完整版在线观看 | 亚洲欧美日韩国产一区二区三区| 盗摄精品av一区二区三区| 久久久久青草大香线综合精品| 另类小说综合欧美亚洲| 欧美一级日韩不卡播放免费| 日韩精品一区二区三区在线播放 | 久久久久久久久久电影| 久久99这里只有精品| 在线播放/欧美激情| 天涯成人国产亚洲精品一区av| 在线观看日韩高清av| 亚洲综合999| 欧美日韩美少妇| 日韩成人精品视频| 6080国产精品一区二区| 另类小说欧美激情| 久久久久久久久久久久久久久99 | 国产一区在线看| 久久久久久亚洲综合| 国产精品69久久久久水密桃| 久久精品这里都是精品| 成人性生交大片免费看中文 | 久久人人97超碰com| 国产激情91久久精品导航 | 精品美女在线播放| 国产一区二区三区四| 国产精品丝袜一区| 色香色香欲天天天影视综合网| 综合久久给合久久狠狠狠97色| 91啪九色porn原创视频在线观看| 亚洲综合区在线| 欧美一区二区三区喷汁尤物| 亚洲女同女同女同女同女同69| 亚洲国产高清在线| 亚洲第一电影网| 天堂在线一区二区| 成人激情图片网| 欧美丰满少妇xxxxx高潮对白| 久久久精品国产免大香伊| 亚洲一区二区三区四区在线观看| 裸体歌舞表演一区二区| av网站一区二区三区| 久久久久国产精品厨房| 午夜不卡av免费| 欧美性色aⅴ视频一区日韩精品|