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

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

?? rowdatacursor.java

?? 用于JAVA數據庫連接.解壓就可用,方便得很
?? 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 java.util.ArrayList;import java.util.List;/** * Model for result set data backed by a cursor. Only works for forward-only * result sets (but still works with updatable concurrency). *  * @version $Id: CursorRowProvider.java,v 1.1.2.1 2005/05/19 18:31:49 mmatthews *          Exp $ */public class RowDataCursor implements RowData {	private final static int BEFORE_START_OF_ROWS = -1;	/**	 * The cache of rows we have retrieved from the server.	 */	private List fetchedRows;	/**	 * Where we are positionaly in the entire result set, used mostly to	 * facilitate easy 'isBeforeFirst()' and 'isFirst()' methods.	 */	private int currentPositionInEntireResult = BEFORE_START_OF_ROWS;	/**	 * Position in cache of rows, used to determine if we need to fetch more	 * rows from the server to satisfy a request for the next row.	 */	private int currentPositionInFetchedRows = BEFORE_START_OF_ROWS;	/**	 * The result set that we 'belong' to.	 */	private ResultSetImpl owner;	/**	 * Have we been told from the server that we have seen the last row?	 */	private boolean lastRowFetched = false;	/**	 * Field-level metadata from the server. We need this, because it is not	 * sent for each batch of rows, but we need the metadata to unpack the	 * results for each field.	 */	private Field[] metadata;	/**	 * Communications channel to the server	 */	private MysqlIO mysql;	/**	 * Identifier for the statement that created this cursor.	 */	private long statementIdOnServer;	/**	 * The prepared statement that created this cursor.	 */	private ServerPreparedStatement prepStmt;	/**	 * The server status for 'last-row-sent'...This might belong in mysqldefs,	 * but it it only ever referenced from here.	 */	private static final int SERVER_STATUS_LAST_ROW_SENT = 128;	/**	 * Have we attempted to fetch any rows yet?	 */	private boolean firstFetchCompleted = false;	private boolean wasEmpty = false;	private boolean useBufferRowExplicit = false;		/**	 * Creates a new cursor-backed row provider.	 * 	 * @param ioChannel	 *            connection to the server.	 * @param creatingStatement	 *            statement that opened the cursor.	 * @param metadata	 *            field-level metadata for the results that this cursor covers.	 */	public RowDataCursor(MysqlIO ioChannel,			ServerPreparedStatement creatingStatement, Field[] metadata) {		this.currentPositionInEntireResult = BEFORE_START_OF_ROWS;		this.metadata = metadata;		this.mysql = ioChannel;		this.statementIdOnServer = creatingStatement.getServerStatementId();		this.prepStmt = creatingStatement;		this.useBufferRowExplicit = MysqlIO.useBufferRowExplicit(this.metadata);			}	/**	 * Returns true if we got the last element.	 * 	 * @return DOCUMENT ME!	 */	public boolean isAfterLast() {		return lastRowFetched				&& this.currentPositionInFetchedRows > this.fetchedRows.size();	}	/**	 * 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 ResultSetRow getAt(int ind) throws SQLException {		notSupported();		return null;	}	/**	 * 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.currentPositionInEntireResult < 0;	}	/**	 * 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();	}	/**	 * 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 {		return this.currentPositionInEntireResult + 1;	}	/**	 * 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 {		return this.isBeforeFirst() && this.isAfterLast();	}	/**	 * 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 {		return this.currentPositionInEntireResult == 0;	}	/**	 * 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 {		return this.lastRowFetched				&& this.currentPositionInFetchedRows == (this.fetchedRows						.size() - 1);	}	/**	 * Adds a row to this row data.	 * 	 * @param row	 *            the row to add	 * @throws SQLException	 *             if a database error occurs	 */	public void addRow(ResultSetRow 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 {		this.metadata = null;		this.owner = null;	}	/**	 * Returns true if another row exists.	 * 	 * @return true if more rows	 * @throws SQLException	 *             if a database error occurs	 */	public boolean hasNext() throws SQLException {		if (this.fetchedRows != null && this.fetchedRows.size() == 0) {			return false;		}		if (this.owner != null && this.owner.owningStatement != null) {			int maxRows = this.owner.owningStatement.maxRows;						if (maxRows != -1 && this.currentPositionInEntireResult + 1 > maxRows) {				return false;			}			}				if (this.currentPositionInEntireResult != BEFORE_START_OF_ROWS) {			// Case, we've fetched some rows, but are not at end of fetched			// block			if (this.currentPositionInFetchedRows < (this.fetchedRows.size() - 1)) {				return true;			} else if (this.currentPositionInFetchedRows == this.fetchedRows					.size()					&& this.lastRowFetched) {				return false;			} else {				// need to fetch to determine				fetchMoreRows();				return (this.fetchedRows.size() > 0);			}		}		// Okay, no rows _yet_, so fetch 'em		fetchMoreRows();		return this.fetchedRows.size() > 0;	}	/**	 * 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 ResultSetRow next() throws SQLException {		if (this.fetchedRows == null && this.currentPositionInEntireResult != BEFORE_START_OF_ROWS) {			throw SQLError.createSQLException(					Messages							.getString("ResultSet.Operation_not_allowed_after_ResultSet_closed_144"), //$NON-NLS-1$					SQLError.SQL_STATE_GENERAL_ERROR);		}				if (!hasNext()) {			return null;		}				this.currentPositionInEntireResult++;		this.currentPositionInFetchedRows++;		// Catch the forced scroll-passed-end		if (this.fetchedRows != null && this.fetchedRows.size() == 0) {			return null;		}		if (this.currentPositionInFetchedRows > (this.fetchedRows.size() - 1)) {			fetchMoreRows();			this.currentPositionInFetchedRows = 0;		}		ResultSetRow row = (ResultSetRow) this.fetchedRows				.get(this.currentPositionInFetchedRows);		row.setMetadata(this.metadata);				return row;	}	/**	 * 	 */	private void fetchMoreRows() throws SQLException {		if (this.lastRowFetched) {			this.fetchedRows = new ArrayList(0);			return;		}		synchronized (this.owner.connection.getMutex()) {			boolean oldFirstFetchCompleted = this.firstFetchCompleted;						if (!this.firstFetchCompleted) {				this.firstFetchCompleted = true;			}			int numRowsToFetch = this.owner.getFetchSize();			if (numRowsToFetch == 0) {				numRowsToFetch = this.prepStmt.getFetchSize();			}						if (numRowsToFetch == Integer.MIN_VALUE) {				// Handle the case where the user used 'old'				// streaming result sets				numRowsToFetch = 1;			}			this.fetchedRows = this.mysql.fetchRowsViaCursor(this.fetchedRows,					this.statementIdOnServer, this.metadata, numRowsToFetch, 					this.useBufferRowExplicit);			this.currentPositionInFetchedRows = BEFORE_START_OF_ROWS;			if ((this.mysql.getServerStatus() & SERVER_STATUS_LAST_ROW_SENT) != 0) {				this.lastRowFetched = true;								if (!oldFirstFetchCompleted && this.fetchedRows.size() == 0) {					this.wasEmpty  = true;				}			}		}	}	/**	 * 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();	}	/**	 * Only works on non dynamic result sets.	 * 	 * @return the size of this row data	 */	public int size() {		return RESULT_SET_SIZE_UNKNOWN;	}	private void nextRecord() throws SQLException {	}	private void notSupported() throws SQLException {		throw new OperationNotSupportedException();	}	/*	 * (non-Javadoc)	 * 	 * @see com.mysql.jdbc.RowProvider#setOwner(com.mysql.jdbc.ResultSet)	 */	public void setOwner(ResultSetImpl rs) {		this.owner = rs;	}	/*	 * (non-Javadoc)	 * 	 * @see com.mysql.jdbc.RowProvider#getOwner()	 */	public ResultSetInternalMethods getOwner() {		return this.owner;	}	public boolean wasEmpty() {		return this.wasEmpty;	}		public void setMetadata(Field[] metadata) {		this.metadata = metadata;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产aⅴ成人精品无吗| 亚洲免费观看高清完整| www.欧美.com| 免费人成网站在线观看欧美高清| 国产欧美一区二区精品性色超碰| 在线欧美日韩精品| 国内精品国产三级国产a久久| 成人免费小视频| 欧美电视剧在线看免费| 色噜噜狠狠一区二区三区果冻| 国产精品一区二区视频| 丝袜亚洲另类欧美综合| 国产精品久久久久精k8| 欧美成人免费网站| 欧美精品黑人性xxxx| 91小宝寻花一区二区三区| 韩日欧美一区二区三区| 亚瑟在线精品视频| 亚洲码国产岛国毛片在线| 国产天堂亚洲国产碰碰| 欧美一区二区三区在线观看视频| 色天天综合色天天久久| 成人激情黄色小说| 国产又粗又猛又爽又黄91精品| 亚洲电影视频在线| 亚洲另类在线一区| 国产精品久久久久久久久动漫| 久久综合五月天婷婷伊人| 欧美精品高清视频| 欧美另类z0zxhd电影| 欧美二区在线观看| 在线视频一区二区三| 91色porny| 色综合天天综合在线视频| 国产一区美女在线| 黑人精品欧美一区二区蜜桃| 免费av成人在线| 免费黄网站欧美| 美国精品在线观看| 美女性感视频久久| 美女免费视频一区| 麻豆精品久久久| 精品一区二区在线看| 九九视频精品免费| 国产精一品亚洲二区在线视频| 久久国产成人午夜av影院| 视频在线观看91| 亚洲第一福利一区| 日韩高清不卡一区| 日韩av中文字幕一区二区 | 26uuu亚洲| 亚洲精品一区二区三区影院 | 欧美三级电影网站| 欧美日韩一区二区三区高清| 欧美人狂配大交3d怪物一区| 欧美日韩黄视频| 日韩欧美一区中文| 久久伊人蜜桃av一区二区| 国产日韩亚洲欧美综合| 日韩久久一区二区| 福利电影一区二区| heyzo一本久久综合| 色综合久久中文字幕| 在线观看欧美精品| 91精品国产91综合久久蜜臀| 欧美成人一区二区| 久久香蕉国产线看观看99| 欧美激情一区在线| 亚洲精品国产精华液| 亚洲午夜激情网页| 日韩和欧美的一区| 国产在线麻豆精品观看| 从欧美一区二区三区| 色屁屁一区二区| 日韩欧美色电影| 中文字幕精品一区二区三区精品| 亚洲人精品一区| 日本成人在线网站| 国产成人综合自拍| 色94色欧美sute亚洲线路二| 欧美二区乱c少妇| 国产农村妇女精品| 欧美日韩一区三区| 国产亚洲欧美在线| 亚洲综合久久久| 国产在线播放一区三区四| 91在线国产观看| 欧美一区二区免费观在线| 欧美激情综合五月色丁香小说| 一区二区在线观看视频 | 成人理论电影网| 欧美网站大全在线观看| 精品国产亚洲在线| 亚洲一区二区三区自拍| 黄网站免费久久| 色88888久久久久久影院野外| 欧美tk—视频vk| 一区二区三区91| 激情小说亚洲一区| 欧美日韩精品欧美日韩精品一| 亚洲欧美偷拍另类a∨色屁股| 亚洲123区在线观看| 99国产精品久久久久久久久久久| 日韩视频永久免费| 一区二区三区精品在线| 国产福利精品导航| 日韩一区二区三区在线视频| 一区二区在线看| 成人app网站| 精品久久一二三区| 亚洲成a人在线观看| av资源网一区| 久久亚洲影视婷婷| 三级成人在线视频| 91蜜桃网址入口| 欧美激情一区二区在线| 久久成人羞羞网站| 欧美日韩国产一级| 亚洲欧美国产三级| 国产suv精品一区二区6| 欧美精品一区二区久久久| 亚洲国产精品欧美一二99| 成人在线视频首页| 欧美一级片在线看| 亚洲美女区一区| 91网站视频在线观看| 国产精品看片你懂得| 国产成人精品免费网站| 欧美精品一区二区三区蜜臀| 秋霞国产午夜精品免费视频| 欧美日韩成人在线一区| 亚洲午夜精品一区二区三区他趣| 日本高清不卡视频| 亚洲女爱视频在线| 91丝袜呻吟高潮美腿白嫩在线观看| 国产精品久久久久久久久快鸭| 成人网页在线观看| 国产精品美女久久久久久久久 | 精品成人私密视频| 久久99国产精品久久99果冻传媒 | 国产精品久久二区二区| av一区二区三区四区| 国产精品久久久久婷婷| 床上的激情91.| 亚洲天堂中文字幕| 色综合久久久久网| 亚洲乱码国产乱码精品精小说 | 久久综合色鬼综合色| 久久99精品久久久久久| 26uuu亚洲综合色| 国产精品一卡二卡| 国产婷婷精品av在线| 高清不卡一二三区| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 精品亚洲porn| 久久久蜜臀国产一区二区| 国产酒店精品激情| 中文字幕在线观看不卡| 色综合久久66| 亚洲第一精品在线| 91精品国产品国语在线不卡| 久久99日本精品| 国产日产亚洲精品系列| 成人av在线资源网| 一区二区成人在线视频 | 欧美色电影在线| 免费人成黄页网站在线一区二区| 精品国产一区久久| 国产成人综合亚洲网站| 日韩毛片一二三区| 欧美精品第一页| 国产精品一二三在| 一区二区理论电影在线观看| 欧美人狂配大交3d怪物一区| 国产一区二区三区蝌蚪| 亚洲免费高清视频在线| 欧美电影免费观看完整版| 成人一级视频在线观看| 亚洲一区二区视频在线观看| 精品国产乱码久久久久久久久| 粗大黑人巨茎大战欧美成人| 亚洲国产日韩在线一区模特| 精品少妇一区二区三区视频免付费| 国产成人在线视频网址| 一个色综合网站| 亚洲精品一区二区三区在线观看| 91在线精品秘密一区二区| 久久精品噜噜噜成人av农村| 中文一区在线播放| 欧美一级高清片| 99re视频这里只有精品| 日韩 欧美一区二区三区| 国产欧美日韩久久| 欧美日韩不卡在线| 国产成人在线网站| 日韩精品五月天| 一区二区在线观看免费| 久久日一线二线三线suv| 在线亚洲精品福利网址导航| 国产毛片一区二区|