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

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

?? statementwrapper.java

?? jsp數(shù)據(jù)庫系統(tǒng)
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
   Copyright (C) 2004 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.jdbc2.optional;

import com.mysql.jdbc.SQLError;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;


/**
 * Wraps statements so that errors can be reported correctly to 
 * ConnectionEventListeners.
 *
 * @author Mark Matthews
 * 
 * @version $Id: StatementWrapper.java,v 1.1.2.1 2004/02/13 17:55:30 mmatthew Exp $
 */
class StatementWrapper extends WrapperBase implements Statement {
    protected Statement wrappedStmt;

    protected StatementWrapper(MysqlPooledConnection conn, Statement toWrap) {
        this.pooledConnection = conn;
        this.wrappedStmt = toWrap;
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getConnection()
     */
    public Connection getConnection() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getConnection();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return null; // we actually never get here, but the compiler can't figure 

        // that out
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#setCursorName(java.lang.String)
     */
    public void setCursorName(String name) throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                this.wrappedStmt.setCursorName(name);
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#setEscapeProcessing(boolean)
     */
    public void setEscapeProcessing(boolean enable) throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                this.wrappedStmt.setEscapeProcessing(enable);
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#setFetchDirection(int)
     */
    public void setFetchDirection(int direction) throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                this.wrappedStmt.setFetchDirection(direction);
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getFetchDirection()
     */
    public int getFetchDirection() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getFetchDirection();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return ResultSet.FETCH_FORWARD; // we actually never get here, but the compiler can't figure 

        // that out
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#setFetchSize(int)
     */
    public void setFetchSize(int rows) throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                this.wrappedStmt.setFetchSize(rows);
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getFetchSize()
     */
    public int getFetchSize() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getFetchSize();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return 0; // we actually never get here, but the compiler can't figure 

        // that out
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getGeneratedKeys()
     */
    public ResultSet getGeneratedKeys() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getGeneratedKeys();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return null; // we actually never get here, but the compiler can't figure 

        // that out
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#setMaxFieldSize(int)
     */
    public void setMaxFieldSize(int max) throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                this.wrappedStmt.setMaxFieldSize(max);
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getMaxFieldSize()
     */
    public int getMaxFieldSize() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getMaxFieldSize();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return 0; // we actually never get here, but the compiler can't figure 

        // that out
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#setMaxRows(int)
     */
    public void setMaxRows(int max) throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                this.wrappedStmt.setMaxRows(max);
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getMaxRows()
     */
    public int getMaxRows() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getMaxRows();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return 0; // we actually never get here, but the compiler can't figure 

        // that out
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getMoreResults()
     */
    public boolean getMoreResults() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getMoreResults();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return false;
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getMoreResults(int)
     */
    public boolean getMoreResults(int current) throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getMoreResults(current);
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return false;
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#setQueryTimeout(int)
     */
    public void setQueryTimeout(int seconds) throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                this.wrappedStmt.setQueryTimeout(seconds);
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getQueryTimeout()
     */
    public int getQueryTimeout() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getQueryTimeout();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return 0;
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getResultSet()
     */
    public ResultSet getResultSet() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getResultSet();
            } else {
                throw new SQLException("Statement already closed",
                    SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
            }
        } catch (SQLException sqlEx) {
            checkAndFireConnectionError(sqlEx);
        }

        return null;
    }

    /* (non-Javadoc)
     * @see java.sql.Statement#getResultSetConcurrency()
     */
    public int getResultSetConcurrency() throws SQLException {
        try {
            if (this.wrappedStmt != null) {
                return this.wrappedStmt.getResultSetConcurrency();
            } else {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日日夜夜精品视频天天综合网| 国产精品中文有码| 国产精品一二一区| 欧美日韩在线免费视频| 久久久久久99精品| 日韩成人一区二区| 色婷婷久久综合| 欧美极品xxx| 日韩1区2区3区| 日本韩国欧美在线| 中文成人av在线| 久久99精品久久只有精品| 在线国产电影不卡| 国产精品成人免费| 国产成人综合亚洲网站| 欧美一区二区三区视频免费| 亚洲综合自拍偷拍| 99久久99久久精品免费观看| 久久久久久久综合色一本| 五月婷婷综合网| 91久久线看在观草草青青| 国产精品国产自产拍高清av王其 | 亚洲国产精品av| 久久不见久久见中文字幕免费| 欧美军同video69gay| 亚洲一二三四区不卡| 日本精品一级二级| 亚洲欧美日韩国产一区二区三区| 成人午夜视频免费看| 欧美国产综合一区二区| 国内精品自线一区二区三区视频| 日韩精品一区二区三区视频| 日韩国产高清在线| 欧美女孩性生活视频| 日韩中文字幕1| 538在线一区二区精品国产| 午夜成人在线视频| 欧美电影在哪看比较好| 日日夜夜免费精品视频| 日韩欧美一级二级三级| 日韩av中文字幕一区二区 | 91色porny| 久久久精品综合| 亚洲成人黄色影院| 国内外成人在线| 久久99九九99精品| 99久久99久久综合| 精品福利一二区| 久久91精品久久久久久秒播| 国产一区三区三区| 欧美伊人久久久久久午夜久久久久| 亚洲日本va午夜在线影院| 国产精品一区二区x88av| 中文字幕第一页久久| 亚洲影视资源网| 91精品国产色综合久久| ...xxx性欧美| 欧美日产国产精品| 久久久精品tv| 国产精品一区专区| 欧美成人一区二区三区片免费| 韩国一区二区视频| 在线免费一区三区| 亚洲精品一二三| 91在线播放网址| 国产日韩亚洲欧美综合| 亚洲精品免费看| 五月天亚洲精品| 国产成人综合在线观看| 欧美伊人久久大香线蕉综合69| 亚洲一区二区三区在线看 | 国产精品免费看片| 亚洲国产激情av| 亚洲综合丝袜美腿| 午夜私人影院久久久久| 久久精品99国产精品日本| 久久精品视频在线看| 精品国产免费久久| 一区二区三区在线观看视频| 久久精品国产澳门| 中文在线一区二区| 欧美综合视频在线观看| 欧美成人官网二区| 亚洲va国产天堂va久久en| 成人毛片视频在线观看| 天堂一区二区在线免费观看| 92国产精品观看| 26uuu久久综合| caoporn国产精品| 5566中文字幕一区二区电影| 欧美久久久影院| 91蝌蚪porny| 国产成a人亚洲精| 亚洲精品一二三| 国产精品色一区二区三区| 精品成人a区在线观看| 欧美男男青年gay1069videost| 国产一区二区三区久久悠悠色av| 免费不卡在线视频| 亚洲不卡av一区二区三区| 亚洲精品国产第一综合99久久| 欧美国产亚洲另类动漫| 亚洲精品在线三区| 欧美大胆人体bbbb| 777欧美精品| 欧美人成免费网站| 欧美人伦禁忌dvd放荡欲情| 日本精品视频一区二区三区| 91高清视频在线| 色乱码一区二区三区88| 色综合视频在线观看| 91免费版在线| 日本丰满少妇一区二区三区| 91捆绑美女网站| 欧美午夜精品一区二区三区 | 在线播放欧美女士性生活| 欧美视频一区在线| 粉嫩欧美一区二区三区高清影视| 国产一区二区美女诱惑| 国产精品99久久久久久有的能看| 国产成人综合在线播放| www.日本不卡| 91啦中文在线观看| 欧美日韩亚洲另类| 欧美一区二区高清| 欧美成人一区二区| 久久亚洲精品国产精品紫薇| 久久久久久免费网| 亚洲人成电影网站色mp4| 亚洲欧美经典视频| 性做久久久久久久久| 日韩电影免费在线观看网站| 久久99久久99小草精品免视看| 国产美女视频91| 99在线精品观看| 欧美视频一区二区在线观看| 日韩美一区二区三区| 中日韩av电影| 一区二区三区高清在线| 偷拍一区二区三区四区| 九色|91porny| 91蜜桃视频在线| 日韩免费一区二区| 国产精品国产三级国产a| 亚洲国产视频直播| 国产麻豆精品久久一二三| 91女神在线视频| 日韩精品综合一本久道在线视频| 国产精品视频免费| 婷婷综合在线观看| 国产宾馆实践打屁股91| 在线观看国产91| 久久久综合网站| 丝袜脚交一区二区| 成人爱爱电影网址| 91精品婷婷国产综合久久性色 | 成人avav在线| 欧美一区二区三区免费视频| 国产精品高潮呻吟| 美女网站在线免费欧美精品| 99v久久综合狠狠综合久久| 欧美一级电影网站| 亚洲欧美另类久久久精品 | 悠悠色在线精品| 狠狠色伊人亚洲综合成人| 91久久久免费一区二区| 久久久亚洲精华液精华液精华液| 亚洲精品日韩一| 成人av在线资源网站| 欧美mv日韩mv国产网站| 亚洲精品免费视频| 成人精品国产一区二区4080| 欧美一区三区二区| 亚洲国产精品久久久久秋霞影院| av成人免费在线| 久久久久亚洲蜜桃| 奇米在线7777在线精品| 欧美私人免费视频| 亚洲视频免费观看| 成人av在线网站| 久久嫩草精品久久久久| 毛片一区二区三区| 欧美肥大bbwbbw高潮| 伊人色综合久久天天人手人婷| 狠狠v欧美v日韩v亚洲ⅴ| 欧美一区二区视频网站| 亚洲va欧美va人人爽| 亚洲人亚洲人成电影网站色| 国产精品久久久一本精品| 日韩综合小视频| av亚洲精华国产精华精华| 久久亚洲精品小早川怜子| 日韩电影免费一区| 88在线观看91蜜桃国自产| 亚洲妇女屁股眼交7| 久久伊人蜜桃av一区二区| 麻豆极品一区二区三区| 青青草视频一区| a亚洲天堂av| 亚洲欧美日韩中文字幕一区二区三区|