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

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

?? cursorrowprovider.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 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 CursorRowProvider 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 ResultSet 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[] fields;	/**	 * 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;	/**	 * 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 CursorRowProvider(MysqlIO ioChannel,			ServerPreparedStatement creatingStatement, Field[] metadata) {		this.currentPositionInEntireResult = BEFORE_START_OF_ROWS;		this.fields = metadata;		this.mysql = ioChannel;		this.statementIdOnServer = creatingStatement.getServerStatementId();		this.prepStmt = creatingStatement;	}	/**	 * 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 Object[] 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(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 {		this.fields = 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 Object[] next() throws SQLException {		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;		}		Object[] row = (Object[]) this.fetchedRows				.get(this.currentPositionInFetchedRows);		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.fields, numRowsToFetch);			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(ResultSet rs) {		this.owner = rs;	}	/*	 * (non-Javadoc)	 * 	 * @see com.mysql.jdbc.RowProvider#getOwner()	 */	public ResultSet getOwner() {		return this.owner;	}	public boolean wasEmpty() {		return this.wasEmpty;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久er精品视频| 成人免费在线播放视频| 视频精品一区二区| 欧美日本一区二区三区四区| 亚洲va在线va天堂| 欧美电影免费观看高清完整版在| 青青草97国产精品免费观看无弹窗版| 欧美一区二区在线不卡| 裸体在线国模精品偷拍| 久久久久久久电影| 91色.com| 蜜臀av一区二区在线免费观看| 日韩女优电影在线观看| 国产91综合一区在线观看| 国产精品灌醉下药二区| 欧美日韩免费一区二区三区| 久久国产精品72免费观看| 中文字幕欧美国产| 欧美日韩一区在线| 国内外成人在线视频| 日韩理论片一区二区| 欧美久久久影院| 国产不卡一区视频| 亚洲v精品v日韩v欧美v专区 | 亚洲 欧美综合在线网络| 欧美日韩精品免费| 国产伦精品一区二区三区免费 | 亚洲男人电影天堂| 日韩欧美美女一区二区三区| 成av人片一区二区| 日韩精品91亚洲二区在线观看| 亚洲国产精品传媒在线观看| 欧美三片在线视频观看 | 免费三级欧美电影| 国产精品午夜在线观看| 欧美一区二区大片| 91亚洲资源网| 国产精品18久久久久久久久久久久| 亚洲乱码国产乱码精品精可以看| 欧美v亚洲v综合ⅴ国产v| 91在线观看下载| 紧缚捆绑精品一区二区| 亚洲成人激情综合网| 国产日产欧美一区二区三区| 欧美一区二区网站| 91网站黄www| 国产成人av在线影院| 青青草国产精品亚洲专区无| 自拍偷在线精品自拍偷无码专区| 欧美成人vps| 欧美欧美欧美欧美| 色狠狠av一区二区三区| 成人免费的视频| 精品一区精品二区高清| 午夜欧美2019年伦理| 亚洲日本免费电影| 国产精品入口麻豆九色| 2020日本不卡一区二区视频| 56国语精品自产拍在线观看| 91成人在线免费观看| 99麻豆久久久国产精品免费 | 91视频xxxx| 成人精品在线视频观看| 国产精品综合一区二区| 国模少妇一区二区三区| 久久精品国产久精国产| 五月天视频一区| 亚洲成a天堂v人片| 亚洲va国产va欧美va观看| 视频一区二区国产| 午夜激情一区二区三区| 亚洲地区一二三色| 天天操天天色综合| 天天色天天操综合| 日本欧美肥老太交大片| 五月综合激情婷婷六月色窝| 天堂一区二区在线免费观看| 日韩在线播放一区二区| 日本伊人精品一区二区三区观看方式 | 国产一区二区在线影院| 久久电影网电视剧免费观看| 麻豆91精品91久久久的内涵| 美女一区二区视频| 国产在线精品免费av| 国产一区二区美女| 国产91丝袜在线播放0| 国产一区二区三区黄视频| 国产一区二区三区视频在线播放| 国产综合久久久久久鬼色| 国产永久精品大片wwwapp| 国产一区二区看久久| 国产成人亚洲综合a∨婷婷图片| 国产精品一区二区在线播放| 成人av在线影院| 色久优优欧美色久优优| 欧美精品第一页| 欧美mv日韩mv亚洲| 欧美国产日本韩| 亚洲午夜视频在线| 久久机这里只有精品| 国产激情精品久久久第一区二区| 成人免费观看av| 欧美日韩精品免费| 久久午夜羞羞影院免费观看| 国产精品久久久久久久第一福利| 亚洲精品第一国产综合野| 五月天久久比比资源色| 国产乱子伦视频一区二区三区| 成人午夜激情片| 777午夜精品免费视频| 亚洲精品一区二区三区四区高清| 国产精品免费视频一区| 一区二区三区国产精华| 美国欧美日韩国产在线播放| 成人黄色在线看| 欧美精品久久99| 中文字幕欧美激情一区| 日韩高清在线观看| 国产成人鲁色资源国产91色综| 色综合久久中文综合久久97| 精品日韩欧美在线| 一区二区三区国产精品| 国产精品123| 欧美日韩一区二区欧美激情| 国产欧美日韩三级| 日韩av一级片| av成人免费在线观看| 欧美肥妇bbw| 亚洲日韩欧美一区二区在线| 国内成人自拍视频| 精品视频一区三区九区| 中文字幕欧美三区| 蓝色福利精品导航| 欧美性高清videossexo| 中文字幕va一区二区三区| 秋霞成人午夜伦在线观看| 91免费看片在线观看| 久久久久久久久97黄色工厂| 三级欧美在线一区| 在线亚洲人成电影网站色www| 日本一区二区三区四区在线视频 | 亚洲区小说区图片区qvod| 国产一区二区调教| 538在线一区二区精品国产| 亚洲女与黑人做爰| 国产精品888| 精品久久人人做人人爱| 蜜臀av性久久久久蜜臀aⅴ流畅 | 亚洲成人tv网| 99在线精品一区二区三区| 久久精品亚洲乱码伦伦中文| 奇米精品一区二区三区在线观看| 日本韩国一区二区| 亚洲欧美另类久久久精品2019| 国产99精品视频| 久久久综合激的五月天| 久久国产精品色| 日韩午夜在线观看视频| 日韩精品亚洲一区二区三区免费| 欧美性淫爽ww久久久久无| 亚洲精品综合在线| 91老师片黄在线观看| 国产精品久久久久婷婷二区次| 国产成人午夜视频| 国产色91在线| 成人午夜免费av| 亚洲欧洲一区二区在线播放| av不卡在线播放| 一区二区中文视频| 91黄色激情网站| 亚洲自拍偷拍av| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 成人欧美一区二区三区1314| 99在线精品观看| 亚洲精品ww久久久久久p站 | 欧美丰满嫩嫩电影| 亚洲成国产人片在线观看| 欧美老女人在线| 蜜臂av日日欢夜夜爽一区| 久久综合久久99| 国产精品18久久久久久久网站| 国产精品视频一二三区| 99久久99久久免费精品蜜臀| 亚洲综合色丁香婷婷六月图片| 在线观看av一区| 99热精品一区二区| 夜夜亚洲天天久久| 这里只有精品免费| 国产一区二区三区不卡在线观看| 久久久不卡网国产精品二区| 国产mv日韩mv欧美| 玉米视频成人免费看| 91精品国产综合久久久久久久久久| 久久se精品一区二区| 中文字幕日本不卡| 欧美日韩国产另类不卡| 国产另类ts人妖一区二区| 亚洲欧洲性图库| 91精品国产高清一区二区三区蜜臀| 国内国产精品久久|