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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? rowdatadynamic.java

?? jsp數(shù)據(jù)庫系統(tǒng)
?? JAVA
字號:
/*
   Copyright (C) 2002 MySQL AB

      This program is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
      the Free Software Foundation; either version 2 of the License, or
      (at your option) any later version.

      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.io.IOException;

import java.sql.SQLException;


/**
 * Allows streaming of MySQL data.
 *
 * @author dgan
 * @version $Id: RowDataDynamic.java,v 1.8.2.6 2003/12/24 05:16:24 mmatthew Exp $
 */
public class RowDataDynamic implements RowData {
    private MysqlIO io;
    private byte[][] nextRow;
    private boolean isAfterEnd = false;
    private boolean isAtEnd = false;
    private boolean streamerClosed = false;
    private int columnCount;
    private int index = -1;
    private long lastSuccessfulReadTimeMs = 0;
    private long netWriteTimeoutMs = 0;
    private ResultSet owner;

    /**
     * Creates a new RowDataDynamic object.
     *
     * @param io DOCUMENT ME!
     * @param colCount DOCUMENT ME!
     *
     * @throws SQLException DOCUMENT ME!
     */
    public RowDataDynamic(MysqlIO io, int colCount) throws SQLException {
        this.io = io;
        this.columnCount = colCount;
        nextRecord();
    }

    /**
     * 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 isAfterEnd;
    }

    /**
     * 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 byte[][] getAt(int index) 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 index < 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();
    }
    
	/**
	 * @see com.mysql.jdbc.RowData#setOwner(com.mysql.jdbc.ResultSet)
	 */
	public void setOwner(ResultSet rs) {
		this.owner = rs;
	}
	
	/**
	 * @see com.mysql.jdbc.RowData#getOwner()
	 */
	public ResultSet getOwner() {
		return this.owner;
	}

    /**
     * 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;
    }

    /**
     * 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;
    }

    /**
     * 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 {
        //drain the rest of the records.
        int count = 0;
        
        while (this.hasNext()) {
            this.next();
            
            count++;
            
            if (count == 100) {
            	Thread.yield();
            	count = 0;
            }
        }
    }

    /**
     * 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 = (nextRow != null);

        if (!hasNext && !streamerClosed) {
            io.closeStreamer(this);
            streamerClosed = true;
        }

        return hasNext;
    }

    /**
     * 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 byte[][] next() throws SQLException {
        index++;

        byte[][] ret = nextRow;
        nextRecord();

        return ret;
    }

    /**
     * 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 index) 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 {
        try {
            if (!isAtEnd) {
                nextRow = io.nextRow((int) columnCount);

                if (nextRow == null) {
                    isAtEnd = true;
                }
                
                this.lastSuccessfulReadTimeMs = System.currentTimeMillis();
            } else {
                isAfterEnd = true;
            }
        } catch (SQLException sqlEx) {
            // don't wrap SQLExceptions
            throw sqlEx;
        } catch (IOException ioEx) {
        	long timeSinceLastReadMs = System.currentTimeMillis() - this.lastSuccessfulReadTimeMs;
        	
            String exceptionType = ioEx.getClass().getName();
            String exceptionMessage = ioEx.getMessage();

            exceptionMessage += "\n\nNested Stack Trace:\n";
            exceptionMessage += Util.stackTraceToString(ioEx);

            throw new java.sql.SQLException(
                "IOException while retrieving next record in streaming result set."
                + "(Check for deadlock "
                + " or retrieval exceeding 'net_write_timeout' seconds. Last "
                + "successful record read was " + timeSinceLastReadMs + " ms ago, and"
                + "'net_write_timeout' is configured in the server as " + this.netWriteTimeoutMs 
                + " ms.) : "
                + exceptionType + " message given: " + exceptionMessage, SQLError.SQL_STATE_GENERAL_ERROR);
        } catch (Exception ex) {
            String exceptionType = ex.getClass().getName();
            String exceptionMessage = ex.getMessage();

            exceptionMessage += "\n\nNested Stack Trace:\n";
            exceptionMessage += Util.stackTraceToString(ex);

            throw new java.sql.SQLException(
                "Error retrieving record: Unexpected Exception: "
                + exceptionType + " message given: " + exceptionMessage, SQLError.SQL_STATE_GENERAL_ERROR);
        }
    }

    private void notSupported() throws SQLException {
        throw new OperationNotSupportedException();
    }

    class OperationNotSupportedException extends SQLException {
        OperationNotSupportedException() {
            super("Operation not supported for streaming result sets", SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
        }
    }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩综合在线免费观看| 亚洲国产精品t66y| 在线视频一区二区三| 91伊人久久大香线蕉| 风间由美性色一区二区三区| 国产在线国偷精品产拍免费yy| 视频一区二区三区在线| 午夜视频一区二区三区| 亚洲一区二区三区中文字幕在线 | 精品久久久久久综合日本欧美| 欧美精品1区2区| 亚洲啪啪综合av一区二区三区| 中文字幕制服丝袜一区二区三区| 国产精品水嫩水嫩| ㊣最新国产の精品bt伙计久久| 国产精品久久久久久久久免费丝袜 | 2020国产精品久久精品美国| 日韩欧美一区二区视频| www一区二区| 国产精品伦理在线| 亚洲欧美国产三级| 亚洲国产日韩一区二区| 同产精品九九九| 蜜臀91精品一区二区三区| 狠狠色丁香久久婷婷综| 成人动漫一区二区三区| 在线观看国产91| 欧美日韩激情一区二区三区| 欧美一区二区三区视频免费| 26uuu亚洲| 国产精品久久久久影视| 亚洲国产另类精品专区| 精品一区二区久久久| 国产成人精品www牛牛影视| 色婷婷综合视频在线观看| 欧美三级一区二区| 精品久久人人做人人爱| 国产精品国产三级国产aⅴ中文| 亚洲午夜三级在线| 久久99热这里只有精品| 波多野结衣在线aⅴ中文字幕不卡| 欧美伊人久久久久久午夜久久久久| 欧美精品久久一区二区三区| 久久久777精品电影网影网| 亚洲男女毛片无遮挡| 日韩二区在线观看| 国产91丝袜在线播放九色| 在线观看视频一区二区 | 国产日产欧美一区二区视频| 亚洲免费在线播放| 久久精品国产一区二区三区免费看| 国产69精品久久久久777| 欧美熟乱第一页| 国产亚洲欧美日韩日本| 亚洲二区在线视频| 国产 欧美在线| 精品1区2区3区| 欧美国产精品专区| 日韩经典中文字幕一区| 成人av小说网| 日韩欧美一级二级| 一个色在线综合| 国产精品中文字幕日韩精品| 欧美午夜不卡视频| 国产情人综合久久777777| 午夜婷婷国产麻豆精品| jvid福利写真一区二区三区| 日韩欧美一区二区视频| 亚洲小说欧美激情另类| 成人综合日日夜夜| 精品噜噜噜噜久久久久久久久试看| 一区二区三区精品在线观看| 粉嫩av一区二区三区在线播放| 7777精品伊人久久久大香线蕉| 国产精品久久久久桃色tv| 久久99国产精品成人| 欧美日韩中文字幕一区二区| 亚洲国产高清aⅴ视频| 九色综合国产一区二区三区| 欧美日韩国产小视频在线观看| 国产乱码精品一区二区三区五月婷| 91在线免费视频观看| 久久综合成人精品亚洲另类欧美 | 色综合久久天天综合网| 久久久久久久久久看片| 午夜电影网亚洲视频| 在线中文字幕一区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 精品中文av资源站在线观看| 欧美疯狂性受xxxxx喷水图片| 一区二区理论电影在线观看| av不卡免费在线观看| 国产日韩欧美精品一区| 国产精品自在欧美一区| 欧美精品一区二区三| 蜜臀99久久精品久久久久久软件| 欧美精品一二三| 亚洲成va人在线观看| 欧美在线一二三四区| 亚洲美女淫视频| 一本到不卡免费一区二区| 亚洲欧洲国产专区| jizz一区二区| 亚洲三级在线免费| 91在线播放网址| 亚洲人成在线播放网站岛国| 99精品在线观看视频| 国产精品国产三级国产普通话99| 成人av小说网| 亚洲丝袜美腿综合| 色综合 综合色| 一区二区三区四区乱视频| 色婷婷综合久久久中文一区二区| 亚洲精品中文字幕在线观看| 日本乱人伦aⅴ精品| 亚洲电影激情视频网站| 在线不卡欧美精品一区二区三区| 首页国产丝袜综合| 日韩精品资源二区在线| 国产一区二区视频在线| 国产午夜精品一区二区三区四区 | 久久久久国产精品免费免费搜索| 国产精品69久久久久水密桃| 中文字幕中文字幕在线一区| 欧洲亚洲精品在线| 偷拍一区二区三区四区| 精品久久久久久久久久久院品网| 国产一区二区三区四| 国产精品高潮久久久久无| 色婷婷精品大视频在线蜜桃视频| 五月婷婷欧美视频| 精品蜜桃在线看| va亚洲va日韩不卡在线观看| 亚洲国产日韩a在线播放性色| 538在线一区二区精品国产| 久久国产精品99精品国产| 国产欧美日韩卡一| 欧美在线免费观看亚洲| 麻豆精品一区二区综合av| 欧美国产日韩亚洲一区| 欧美日韩综合不卡| 国产一区二区精品久久91| 综合久久一区二区三区| 在线播放中文字幕一区| 丁香婷婷综合激情五月色| 亚洲精品久久久久久国产精华液 | 亚洲国产视频直播| 日韩美女在线视频| 成人高清视频在线观看| 首页亚洲欧美制服丝腿| 中文字幕av一区二区三区免费看 | 欧美成人精品福利| 成人性生交大片免费| 亚洲二区视频在线| 国产欧美精品一区二区色综合| 精品视频在线免费观看| 国产精品 欧美精品| 亚洲图片自拍偷拍| 国产日韩影视精品| 91精品国产一区二区三区香蕉| 国产高清在线观看免费不卡| 亚洲国产一二三| 国产精品色婷婷| 欧美一区二区美女| www.视频一区| 久久精品噜噜噜成人88aⅴ| 一区二区三区日本| 久久久99精品免费观看不卡| 欧美私模裸体表演在线观看| 成人av资源在线观看| 极品少妇xxxx偷拍精品少妇| 一区二区高清在线| 中文字幕不卡的av| 精品欧美久久久| 欧美少妇xxx| av在线播放不卡| 国产中文字幕一区| 蜜臀av一区二区三区| 亚洲综合小说图片| 欧美激情一区二区三区在线| 精品欧美一区二区在线观看 | 久久久777精品电影网影网| 欧美久久久久免费| 色综合久久综合网欧美综合网| 国内偷窥港台综合视频在线播放| 日韩黄色小视频| 亚洲一区二区av电影| 中文字幕一区二区三区蜜月| 久久免费看少妇高潮| 精品蜜桃在线看| 日韩三区在线观看| 欧美另类变人与禽xxxxx| 日本韩国精品一区二区在线观看| 国产91精品精华液一区二区三区 | 精品视频123区在线观看| 91丨porny丨国产| 91视视频在线直接观看在线看网页在线看 | 人人爽香蕉精品| 日韩精品一区第一页| 亚洲成av人片一区二区梦乃|