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

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

?? rowdatadynamic.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
字號:
/* 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;import java.sql.SQLException;import com.mysql.jdbc.profiler.ProfileEventSink;import com.mysql.jdbc.profiler.ProfilerEvent;/** * Allows streaming of MySQL data. *  * @author dgan * @version $Id: RowDataDynamic.java 6433 2007-05-18 18:38:56Z mmatthews $ */public class RowDataDynamic implements RowData {	// ~ Instance fields	// --------------------------------------------------------	class OperationNotSupportedException extends SQLException {		OperationNotSupportedException() {			super(					Messages.getString("RowDataDynamic.10"), SQLError.SQL_STATE_ILLEGAL_ARGUMENT); //$NON-NLS-1$		}	}	private int columnCount;	private Field[] fields;	private int index = -1;	private MysqlIO io;	private boolean isAfterEnd = false;	private boolean isAtEnd = false;	private boolean isBinaryEncoded = false;	private Object[] nextRow;	private ResultSet owner;	private boolean streamerClosed = false;		private boolean wasEmpty = false; // we don't know until we attempt to traverse	// ~ Methods	// ----------------------------------------------------------------	/**	 * Creates a new RowDataDynamic object.	 * 	 * @param io	 *            the connection to MySQL that this data is coming from	 * @param fields	 *            the fields that describe this data	 * @param isBinaryEncoded	 *            is this data in native format?	 * @param colCount	 *            the number of columns	 * @throws SQLException	 *             if the next record can not be found	 */	public RowDataDynamic(MysqlIO io, int colCount, Field[] fields,			boolean isBinaryEncoded) throws SQLException {		this.io = io;		this.columnCount = colCount;		this.isBinaryEncoded = isBinaryEncoded;		this.fields = fields;		nextRecord();	}	/**	 * Adds a row to this row data.	 * 	 * @param row	 *            the row to add	 * @throws SQLException	 *             if a database error occurs	 */	public void addRow(byte[][] row) throws SQLException {		notSupported();	}	/**	 * Moves to after last.	 * 	 * @throws SQLException	 *             if a database error occurs	 */	public void afterLast() throws SQLException {		notSupported();	}	/**	 * Moves to before first.	 * 	 * @throws SQLException	 *             if a database error occurs	 */	public void beforeFirst() throws SQLException {		notSupported();	}	/**	 * Moves to before last so next el is the last el.	 * 	 * @throws SQLException	 *             if a database error occurs	 */	public void beforeLast() throws SQLException {		notSupported();	}	/**	 * We're done.	 * 	 * @throws SQLException	 *             if a database error occurs	 */	public void close() throws SQLException {		boolean hadMore = false;		int howMuchMore = 0;		// drain the rest of the records.		while (this.hasNext()) {			this.next();			hadMore = true;			howMuchMore++;			if (howMuchMore % 100 == 0) {				Thread.yield();			}		}		if (this.owner != null) {			Connection conn = this.owner.connection;			if (conn != null && conn.getUseUsageAdvisor()) {				if (hadMore) {					ProfileEventSink eventSink = ProfileEventSink							.getInstance(conn);					eventSink							.consumeEvent(new ProfilerEvent(									ProfilerEvent.TYPE_WARN,									"", //$NON-NLS-1$									this.owner.owningStatement == null ? "N/A" : this.owner.owningStatement.currentCatalog, //$NON-NLS-1$									this.owner.connectionId,									this.owner.owningStatement == null ? -1											: this.owner.owningStatement													.getId(),									-1,									System.currentTimeMillis(),									0,									Constants.MILLIS_I18N,									null,									null,									Messages.getString("RowDataDynamic.2") //$NON-NLS-1$											+ howMuchMore											+ Messages													.getString("RowDataDynamic.3") //$NON-NLS-1$											+ Messages													.getString("RowDataDynamic.4") //$NON-NLS-1$											+ Messages													.getString("RowDataDynamic.5") //$NON-NLS-1$											+ Messages													.getString("RowDataDynamic.6") //$NON-NLS-1$											+ this.owner.pointOfOrigin));				}			}		}		this.fields = null;		this.owner = null;	}	/**	 * Only works on non dynamic result sets.	 * 	 * @param index	 *            row number to get at	 * @return row data at index	 * @throws SQLException	 *             if a database error occurs	 */	public Object[] getAt(int ind) throws SQLException {		notSupported();		return null;	}	/**	 * Returns the current position in the result set as a row number.	 * 	 * @return the current row number	 * @throws SQLException	 *             if a database error occurs	 */	public int getCurrentRowNumber() throws SQLException {		notSupported();		return -1;	}	/**	 * @see com.mysql.jdbc.RowData#getOwner()	 */	public ResultSet getOwner() {		return this.owner;	}	/**	 * Returns true if another row exsists.	 * 	 * @return true if more rows	 * @throws SQLException	 *             if a database error occurs	 */	public boolean hasNext() throws SQLException {		boolean hasNext = (this.nextRow != null);		if (!hasNext && !this.streamerClosed) {			this.io.closeStreamer(this);			this.streamerClosed = true;		}		return hasNext;	}	/**	 * Returns true if we got the last element.	 * 	 * @return true if after last row	 * @throws SQLException	 *             if a database error occurs	 */	public boolean isAfterLast() throws SQLException {		return this.isAfterEnd;	}	/**	 * Returns if iteration has not occured yet.	 * 	 * @return true if before first row	 * @throws SQLException	 *             if a database error occurs	 */	public boolean isBeforeFirst() throws SQLException {		return this.index < 0;	}	/**	 * Returns true if the result set is dynamic.	 * 	 * This means that move back and move forward won't work because we do not	 * hold on to the records.	 * 	 * @return true if this result set is streaming from the server	 */	public boolean isDynamic() {		return true;	}	/**	 * Has no records.	 * 	 * @return true if no records	 * @throws SQLException	 *             if a database error occurs	 */	public boolean isEmpty() throws SQLException {		notSupported();		return false;	}	/**	 * Are we on the first row of the result set?	 * 	 * @return true if on first row	 * @throws SQLException	 *             if a database error occurs	 */	public boolean isFirst() throws SQLException {		notSupported();		return false;	}	/**	 * Are we on the last row of the result set?	 * 	 * @return true if on last row	 * @throws SQLException	 *             if a database error occurs	 */	public boolean isLast() throws SQLException {		notSupported();		return false;	}	/**	 * Moves the current position relative 'rows' from the current position.	 * 	 * @param rows	 *            the relative number of rows to move	 * @throws SQLException	 *             if a database error occurs	 */	public void moveRowRelative(int rows) throws SQLException {		notSupported();	}	/**	 * Returns the next row.	 * 	 * @return the next row value	 * @throws SQLException	 *             if a database error occurs	 */	public Object[] next() throws SQLException {		if (this.index != Integer.MAX_VALUE) {			this.index++;		}		Object[] ret = this.nextRow;		nextRecord();		return ret;	}	private void nextRecord() throws SQLException {		try {			if (!this.isAtEnd) {				this.nextRow = this.io.nextRow(this.fields, this.columnCount,						this.isBinaryEncoded,						java.sql.ResultSet.CONCUR_READ_ONLY);				if (this.nextRow == null) {					this.isAtEnd = true;										if (this.index == -1) {						this.wasEmpty = true;					}				}			} else {				this.isAfterEnd = true;			}		} catch (CommunicationsException comEx) {			// Give a better error message			comEx.setWasStreamingResults();						throw comEx;		} catch (SQLException sqlEx) {			// don't wrap SQLExceptions			throw sqlEx;		} catch (Exception ex) {			String exceptionType = ex.getClass().getName();			String exceptionMessage = ex.getMessage();			exceptionMessage += Messages.getString("RowDataDynamic.7"); //$NON-NLS-1$			exceptionMessage += Util.stackTraceToString(ex);			throw new java.sql.SQLException(					Messages.getString("RowDataDynamic.8") //$NON-NLS-1$							+ exceptionType							+ Messages.getString("RowDataDynamic.9") + exceptionMessage, SQLError.SQL_STATE_GENERAL_ERROR); //$NON-NLS-1$		}	}	private void notSupported() throws SQLException {		throw new OperationNotSupportedException();	}	/**	 * Removes the row at the given index.	 * 	 * @param index	 *            the row to move to	 * @throws SQLException	 *             if a database error occurs	 */	public void removeRow(int ind) throws SQLException {		notSupported();	}	// ~ Inner Classes	// ----------------------------------------------------------	/**	 * Moves the current position in the result set to the given row number.	 * 	 * @param rowNumber	 *            row to move to	 * @throws SQLException	 *             if a database error occurs	 */	public void setCurrentRow(int rowNumber) throws SQLException {		notSupported();	}	/**	 * @see com.mysql.jdbc.RowData#setOwner(com.mysql.jdbc.ResultSet)	 */	public void setOwner(ResultSet rs) {		this.owner = rs;	}	/**	 * Only works on non dynamic result sets.	 * 	 * @return the size of this row data	 */	public int size() {		return RESULT_SET_SIZE_UNKNOWN;	}	public boolean wasEmpty() {		return this.wasEmpty;	}		}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久只精品国产| 国产高清不卡一区二区| 欧美日韩激情一区| 亚洲午夜激情网页| 欧美一区日韩一区| 国产一区二区三区精品视频| 欧美videossexotv100| 国内精品国产成人| 国产精品欧美久久久久一区二区 | 欧美亚洲自拍偷拍| 性久久久久久久久| 欧美不卡视频一区| 不卡电影免费在线播放一区| 一区二区三区国产| 欧美乱妇一区二区三区不卡视频| 日韩成人午夜精品| 精品日韩一区二区| 成人国产亚洲欧美成人综合网 | 91精品国产色综合久久ai换脸| 久久精品国产99久久6| 国产精品情趣视频| 欧美日本乱大交xxxxx| 紧缚捆绑精品一区二区| 17c精品麻豆一区二区免费| 欧美日韩免费视频| 国产久卡久卡久卡久卡视频精品| 国产精品国产三级国产三级人妇| 欧美日韩视频在线观看一区二区三区| 国产一区激情在线| 一区二区三区四区中文字幕| 欧美电影免费观看高清完整版在线| 不卡视频在线看| 免费看日韩a级影片| 亚洲三级小视频| 久久影音资源网| 日本久久一区二区| 国产成人免费网站| 美洲天堂一区二卡三卡四卡视频| 国产精品情趣视频| 精品国产乱码久久久久久蜜臀| 91亚洲精品久久久蜜桃| 久久99深爱久久99精品| 亚洲一区在线观看网站| 久久免费偷拍视频| 亚洲婷婷在线视频| 欧美xxx久久| 91麻豆精品国产自产在线观看一区| 国产成+人+日韩+欧美+亚洲| 图片区小说区区亚洲影院| 亚洲色图欧美激情| 国产欧美一区二区精品秋霞影院| 91精品久久久久久久99蜜桃 | 国产日产精品1区| 日韩视频国产视频| 欧美性猛交一区二区三区精品| 国产·精品毛片| 老司机免费视频一区二区三区| 亚洲国产一区二区视频| 中文字幕一区二区三区不卡| 国产亚洲精品福利| 精品99一区二区| 欧美一级电影网站| 宅男噜噜噜66一区二区66| 91黄色小视频| 色综合久久久网| 成人ar影院免费观看视频| 国产精品正在播放| 国产一区二区导航在线播放| 国内成人精品2018免费看| 免费在线观看成人| 久久国产精品无码网站| 日韩不卡一区二区三区| 丝袜美腿高跟呻吟高潮一区| 午夜视频在线观看一区二区| 亚洲高清不卡在线| 视频一区中文字幕| 天天操天天色综合| 欧美aaa在线| 麻豆一区二区在线| 麻豆国产欧美日韩综合精品二区 | 国产91丝袜在线播放0| 国产成人综合自拍| 成人性生交大片免费看中文| 成人国产精品免费观看动漫| 99久久99久久精品国产片果冻| 懂色一区二区三区免费观看 | 日韩制服丝袜av| 日本系列欧美系列| 久久国产尿小便嘘嘘尿| 国产麻豆视频一区| 成人深夜在线观看| 91成人免费在线视频| 在线免费不卡视频| 欧美三级视频在线| 日韩美女视频在线| 国产日产精品1区| 亚洲免费在线播放| 日韩精品久久理论片| 久久成人免费日本黄色| 福利一区二区在线| 91在线观看成人| 欧美肥大bbwbbw高潮| 精品电影一区二区三区| 亚洲国产高清aⅴ视频| 尤物av一区二区| 日韩国产欧美视频| 国产99久久久国产精品潘金| 国产亚洲一二三区| 亚洲三级在线看| 久久机这里只有精品| 成人动漫视频在线| 欧美日韩国产综合一区二区三区| 精品国产乱码久久久久久夜甘婷婷 | 亚洲品质自拍视频| 免费成人在线网站| 99精品国产91久久久久久| 欧美精三区欧美精三区| 国产欧美精品一区二区色综合朱莉 | 天堂精品中文字幕在线| 国产成人亚洲综合色影视| 欧美亚洲免费在线一区| 久久久久久久久免费| 亚洲一区免费视频| 国产激情91久久精品导航 | 在线不卡的av| 国产精品传媒入口麻豆| 日韩va欧美va亚洲va久久| 91偷拍与自偷拍精品| 久久午夜电影网| 日本麻豆一区二区三区视频| 99久久精品国产导航| 日韩精品一区二区三区视频在线观看 | 国产三级一区二区三区| 亚洲成av人在线观看| 成人一级片在线观看| 欧美一级淫片007| 一区二区三区在线播放| 成熟亚洲日本毛茸茸凸凹| 欧美大黄免费观看| 午夜视频久久久久久| 91小视频免费看| 欧美高清在线视频| 麻豆精品在线看| 欧美三级日韩三级国产三级| 中文字幕一区二区5566日韩| 精品系列免费在线观看| 91精品久久久久久久91蜜桃| 亚洲国产精品一区二区尤物区| 成人久久18免费网站麻豆| 久久久久久久久久久久电影| 日韩国产在线一| 欧美日韩国产综合久久| 亚洲h动漫在线| 欧美视频日韩视频在线观看| 亚洲伦理在线精品| 91蜜桃网址入口| 亚洲色图一区二区三区| 91丨porny丨在线| 中文字幕中文字幕一区| caoporn国产精品| 国产精品人成在线观看免费| 成人午夜精品在线| 中文字幕高清不卡| 高清国产一区二区三区| 国产精品国产精品国产专区不蜜| 高清日韩电视剧大全免费| 国产日韩精品视频一区| 懂色av噜噜一区二区三区av| 国产精品午夜电影| 99国产精品久久| 一区二区三区中文字幕电影| 91福利视频久久久久| 99久久er热在这里只有精品66| 国产清纯在线一区二区www| 成人免费av网站| 亚洲精品免费在线| 欧美日韩精品综合在线| 视频在线在亚洲| 久久综合国产精品| 福利电影一区二区| 亚洲美女在线国产| 欧美精选一区二区| 国内久久精品视频| 国产精品天美传媒沈樵| 色香色香欲天天天影视综合网| 亚洲一二三区视频在线观看| 91精品啪在线观看国产60岁| 精品一区二区三区久久| 中文字幕日韩av资源站| 欧美日免费三级在线| 麻豆久久久久久久| 中文字幕国产一区| 欧美日韩一区高清| 久久99精品久久久久久国产越南| 国产拍揄自揄精品视频麻豆| 日本韩国视频一区二区| 蜜桃一区二区三区四区| 成人免费一区二区三区在线观看| 欧美三区免费完整视频在线观看| 国产美女在线观看一区|