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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? connectionwrapper.java

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

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


/**
 * This class serves as a wrapper for the org.gjt.mm.mysql.jdbc2.Connection
 * class.   It is returned to the application server which may wrap it again
 * and then return it to the application client in response to
 * dataSource.getConnection().
 * 
 * <p>
 * All method invocations are forwarded to org.gjt.mm.mysql.jdbc2.Connection
 * unless the close method was previously called, in which case a sqlException
 * is  thrown.  The close method performs a 'logical close' on the connection.
 * </p>
 * 
 * <p>
 * All sqlExceptions thrown by the physical connection are intercepted and sent
 * to  connectionEvent listeners before being thrown to client.
 * </p>
 *
 * @author Todd Wolff todd.wolff_at_prodigy.net
 *
 * @see org.gjt.mm.mysql.jdbc2.Connection
 * @see org.gjt.mm.mysql.jdbc2.optional.MysqlPooledConnection
 */
class ConnectionWrapper extends WrapperBase implements Connection {
    private Connection mc = null;
    private MysqlPooledConnection mpc = null;
    private String invalidHandleStr = "Logical handle no longer valid";
    private boolean closed;

    /**
     * Construct a new LogicalHandle and set instance variables
     *
     * @param mysqlPooledConnection reference to object that instantiated this
     *        object
     * @param mysqlConnection physical connection to db
     *
     * @throws SQLException if an error occurs.
     */
    public ConnectionWrapper(MysqlPooledConnection mysqlPooledConnection,
        Connection mysqlConnection) throws SQLException {
        this.mpc = mysqlPooledConnection;
        this.mc = mysqlConnection;
        this.closed = false;
        this.pooledConnection = this.mpc;
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#setAutoCommit
     */
    public void setAutoCommit(boolean autoCommit) throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                mc.setAutoCommit(autoCommit);
            } catch (SQLException sqlException) {
                checkAndFireConnectionError(sqlException);
            }
        }
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#getAutoCommit()
     */
    public boolean getAutoCommit() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.getAutoCommit();
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return false; // we don't reach this code, compiler can't tell
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#setCatalog()
     */
    public void setCatalog(String catalog) throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                mc.setCatalog(catalog);
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @return the current catalog
     *
     * @throws SQLException if an error occurs
     */
    public String getCatalog() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.getCatalog();
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return null; // we don't reach this code, compiler can't tell
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#isClosed()
     */
    public boolean isClosed() throws SQLException {
        return (closed || mc.isClosed());
    }

    /**
     * @see Connection#setHoldability(int)
     */
    public void setHoldability(int arg0) throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                mc.setHoldability(arg0);
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
    }

    /**
     * @see Connection#getHoldability()
     */
    public int getHoldability() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.getHoldability();
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return Statement.CLOSE_CURRENT_RESULT; // we don't reach this code, compiler can't tell
    }

    /**
     * Allows clients to determine how long this connection has been idle.
     *
     * @return how long the connection has been idle.
     */
    public long getIdleFor() {
        return ((com.mysql.jdbc.Connection) mc).getIdleFor();
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @return a metadata instance
     *
     * @throws SQLException if an error occurs
     */
    public java.sql.DatabaseMetaData getMetaData() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.getMetaData();
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return null; // we don't reach this code, compiler can't tell
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#setReadOnly()
     */
    public void setReadOnly(boolean readOnly) throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                mc.setReadOnly(readOnly);
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#isReadOnly()
     */
    public boolean isReadOnly() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.isReadOnly();
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return false; // we don't reach this code, compiler can't tell
    }

    /**
     * @see Connection#setSavepoint()
     */
    public java.sql.Savepoint setSavepoint() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.setSavepoint();
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return null; // we don't reach this code, compiler can't tell
    }

    /**
     * @see Connection#setSavepoint(String)
     */
    public java.sql.Savepoint setSavepoint(String arg0)
        throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.setSavepoint(arg0);
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return null; // we don't reach this code, compiler can't tell
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#setTransactionIsolation()
     */
    public void setTransactionIsolation(int level) throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                mc.setTransactionIsolation(level);
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#getTransactionIsolation()
     */
    public int getTransactionIsolation() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.getTransactionIsolation();
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return TRANSACTION_REPEATABLE_READ; // we don't reach this code, compiler can't tell
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#setTypeMap()
     */
    public void setTypeMap(java.util.Map map) throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                mc.setTypeMap(map);
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#getTypeMap()
     */
    public java.util.Map getTypeMap() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {
            try {
                return mc.getTypeMap();
            } catch (SQLException sqlException) {
				checkAndFireConnectionError(sqlException);
            }
        }
        
        return null; // we don't reach this code, compiler can't tell
    }

    /**
     * Passes call to method on physical connection instance.  Notifies
     * listeners of any caught exceptions before re-throwing to client.
     *
     * @see java.sql.Connection#getWarnings
     */
    public java.sql.SQLWarning getWarnings() throws SQLException {
        if (closed) {
            throw new SQLException(invalidHandleStr);
        } else {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天堂久久久久va久久久久| 久久99精品国产麻豆不卡| av不卡免费在线观看| wwww国产精品欧美| 国内精品国产成人国产三级粉色| 欧美一区二区三区视频免费播放| 午夜免费久久看| 欧美日韩成人高清| 性感美女久久精品| 5858s免费视频成人| 日韩国产精品久久久| 欧美熟乱第一页| 亚洲综合一区二区| 欧美视频一区在线| 亚洲人一二三区| 色婷婷综合久久久中文字幕| 一级日本不卡的影视| 欧美色中文字幕| 五月天一区二区| 欧美一级在线免费| 精东粉嫩av免费一区二区三区| 2014亚洲片线观看视频免费| 国产一区二区三区免费看| 久久久99精品久久| 99r精品视频| 亚洲另类中文字| 欧美亚州韩日在线看免费版国语版| 亚洲一区二区五区| 91精品久久久久久久99蜜桃| 久久国产剧场电影| 国产亚洲va综合人人澡精品| 99这里都是精品| 亚洲国产一区视频| 日韩欧美的一区二区| 国产剧情一区在线| 亚洲日本在线视频观看| 欧美三级三级三级| 蜜桃精品视频在线| 国产精品免费人成网站| 欧美在线高清视频| 美女视频一区二区| 日本一区二区三区视频视频| 色婷婷久久99综合精品jk白丝| 亚洲妇熟xx妇色黄| www欧美成人18+| 91在线你懂得| 秋霞午夜av一区二区三区| 久久午夜羞羞影院免费观看| 不卡电影一区二区三区| 亚洲va中文字幕| xnxx国产精品| 日本精品视频一区二区| 免费观看一级特黄欧美大片| 欧美激情中文不卡| 欧美性色黄大片| 国产激情视频一区二区在线观看| 亚洲人成小说网站色在线| 日韩一区二区精品葵司在线| 成人性生交大片免费看在线播放 | 亚洲精品亚洲人成人网在线播放| 欧美另类z0zxhd电影| 国产精品原创巨作av| 一区二区三区成人| 欧美精品一区二| 91丨九色丨尤物| 麻豆91在线观看| 亚洲欧美另类在线| 久久综合网色—综合色88| 日本高清免费不卡视频| 国产麻豆视频精品| 亚洲一区二区精品视频| 国产亚洲综合在线| 欧美三级资源在线| www.色精品| 美女一区二区三区| 一区二区三区欧美视频| 国产亚洲精品7777| 91精品国产91久久久久久最新毛片 | 懂色av一区二区在线播放| 亚洲国产成人av| 国产精品女上位| 欧美成人vr18sexvr| 色狠狠色狠狠综合| 国产91精品久久久久久久网曝门| 青青草97国产精品免费观看| 亚洲三级电影全部在线观看高清| 精品999在线播放| 欧美日韩精品一二三区| 97久久精品人人做人人爽50路| 国产一区二区三区在线观看精品| 日韩电影在线观看网站| 亚洲人123区| 国产欧美日韩视频在线观看| 日韩一区二区在线观看视频| 欧美性感一区二区三区| 不卡影院免费观看| 国产一区二区0| 免费看精品久久片| 天堂影院一区二区| 一区二区三区久久久| 中文字幕一区二区三| 国产日韩欧美在线一区| 日韩精品专区在线| 51午夜精品国产| 欧美日韩一区高清| 色94色欧美sute亚洲13| 91蜜桃在线观看| 成人av影视在线观看| 国产精品91xxx| 国产综合色精品一区二区三区| 日精品一区二区| 亚洲一区二区三区四区五区中文| 国产精品国模大尺度视频| 国产日韩精品视频一区| 久久免费视频色| 精品国产伦一区二区三区观看体验| 欧美日韩在线一区二区| 欧美午夜免费电影| 色老汉一区二区三区| 91丨porny丨中文| 99精品欧美一区| 不卡av在线网| www.亚洲在线| 91免费版pro下载短视频| 97久久精品人人做人人爽| 99久久免费精品| 91麻豆视频网站| 在线观看日韩精品| 在线视频中文字幕一区二区| 91搞黄在线观看| 在线观看国产日韩| 欧美做爰猛烈大尺度电影无法无天| 色香蕉成人二区免费| 色婷婷国产精品综合在线观看| 91毛片在线观看| 欧美亚洲高清一区二区三区不卡| 欧美亚洲动漫精品| 制服丝袜国产精品| 日韩欧美高清在线| 久久免费看少妇高潮| 欧美激情一区在线| 1024国产精品| 亚洲精品成人a在线观看| 一区二区三区精品在线| 亚洲v中文字幕| 久久99精品国产麻豆婷婷| 国产成人免费xxxxxxxx| 成人激情校园春色| 色综合激情五月| 欧美巨大另类极品videosbest | 国产精品久久久久影视| 亚洲同性同志一二三专区| 亚洲主播在线观看| 免费黄网站欧美| 国产成人综合网| 91啪亚洲精品| 欧美群妇大交群中文字幕| 欧美一区二区精品| 久久先锋资源网| 亚洲欧美日韩系列| 日本视频在线一区| 国产不卡在线播放| 在线亚洲高清视频| 欧美大片国产精品| 中国av一区二区三区| 亚洲影院久久精品| 久久不见久久见免费视频1| 高清beeg欧美| 在线一区二区视频| 精品久久一区二区三区| 国产精品国产馆在线真实露脸| 亚洲图片有声小说| 精品一区二区三区欧美| 97精品超碰一区二区三区| 91精品在线一区二区| 国产欧美精品在线观看| 亚洲与欧洲av电影| 国产真实乱偷精品视频免| 99视频精品在线| 欧美一区三区二区| 欧美激情一区二区三区蜜桃视频| 亚洲精品自拍动漫在线| 免费高清成人在线| 不卡的av电影在线观看| 538prom精品视频线放| 国产精品视频yy9299一区| 亚洲h动漫在线| 国产成人精品影视| 日本高清不卡一区| 精品国产自在久精品国产| 亚洲乱码国产乱码精品精的特点| 日韩高清一区在线| 成人动漫在线一区| 欧美一级在线免费| 亚洲人精品午夜| 国产在线精品免费| 在线看国产一区二区| 国产欧美一区二区精品性色| 亚洲一区影音先锋| 不卡的电视剧免费网站有什么|