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

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

?? connectionwrapper.java

?? 基于java的oa系統(tǒng)
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* Copyright (C) 2002-2004 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 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.jdbc2.optional;import java.sql.Connection;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 {                this.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 this.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 {                this.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 this.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 || this.mc.isClosed());    }    /**     * @see Connection#setHoldability(int)     */    public void setHoldability(int arg0) throws SQLException {        if (closed) {            throw new SQLException(invalidHandleStr);        } else {            try {                this.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 this.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 this.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 {                this.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 this.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 this.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 this.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 {                this.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 this.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 {                this.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 this.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 {            try {                return this.mc.getWarnings();            } catch (SQLException sqlException) {                checkAndFireConnectionError(sqlException);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人app在线观看| 精品免费99久久| 91日韩精品一区| 成人一级黄色片| 国产成人精品一区二区三区四区| 久久国产剧场电影| 美女一区二区视频| 麻豆精品一区二区三区| 日韩电影免费在线观看网站| 日韩在线卡一卡二| 蜜桃视频第一区免费观看| 奇米在线7777在线精品| 久久99精品久久久| 国产曰批免费观看久久久| 国产高清久久久| 成人小视频在线| 91免费看`日韩一区二区| 91黄色免费看| 正在播放一区二区| www精品美女久久久tv| 日本一区二区电影| 一区二区三区中文在线观看| 午夜精品免费在线| 久久99精品国产91久久来源| 国产自产2019最新不卡| 成人激情综合网站| 在线观看中文字幕不卡| 88在线观看91蜜桃国自产| 日韩美女一区二区三区四区| 国产日韩av一区| 亚洲欧美国产毛片在线| 视频一区欧美日韩| 国产精品乡下勾搭老头1| 99re8在线精品视频免费播放| 色哟哟在线观看一区二区三区| 欧美日韩一区二区在线视频| 日韩精品一区二区三区视频在线观看 | 亚洲精品欧美二区三区中文字幕| 亚洲一区二区三区四区在线 | 欧美性大战久久久久久久蜜臀| 欧美日韩电影一区| 久久久久久麻豆| 亚洲乱码中文字幕综合| 蜜桃av一区二区| 波多野结衣精品在线| 欧美日韩卡一卡二| 欧美激情一区二区三区全黄 | 国产91在线观看| 91久久一区二区| 精品国产一区久久| 一个色妞综合视频在线观看| 国产专区综合网| 欧美在线观看一区| 久久久亚洲国产美女国产盗摄| 亚洲一区二区五区| 国产精品99久久久久久久vr | 国产欧美日本一区二区三区| 亚洲影院免费观看| 国产成人免费xxxxxxxx| 欧美欧美欧美欧美首页| 国产精品国模大尺度视频| 青青草一区二区三区| av一区二区三区| 欧美电影免费观看高清完整版在线| 国产精品电影一区二区| 美女在线一区二区| 欧美性受xxxx黑人xyx性爽| 国产日产欧美一区| 免费在线观看视频一区| 91九色最新地址| 国产精品天干天干在线综合| 免费人成精品欧美精品| 在线精品观看国产| 国产精品毛片久久久久久| 国产在线麻豆精品观看| 日韩一区二区中文字幕| 亚洲一区电影777| 99国产欧美另类久久久精品| 26uuu久久天堂性欧美| 视频一区二区三区入口| 欧美亚洲国产一区二区三区 | 亚洲精品成人精品456| 国产一区二区三区高清播放| 欧美一区欧美二区| 亚洲女同ⅹxx女同tv| 风流少妇一区二区| 久久综合色综合88| 日本91福利区| 欧美高清视频一二三区| 亚洲图片欧美视频| 色香蕉久久蜜桃| 亚洲日本一区二区三区| 99在线热播精品免费| 久久久亚洲高清| 国内精品嫩模私拍在线| 欧美岛国在线观看| 老色鬼精品视频在线观看播放| 日韩一区二区三区免费观看| 视频在线观看一区| 欧美一区二区三区日韩| 日本在线不卡视频| 欧美成人三级在线| 韩国三级电影一区二区| 久久久精品天堂| 国产精品香蕉一区二区三区| 国产亚洲精品免费| 丁香婷婷综合网| 国产精品三级av在线播放| 成人午夜av在线| 国产精品狼人久久影院观看方式| 99久久夜色精品国产网站| 亚洲精品免费在线| 在线免费观看成人短视频| 亚洲国产精品麻豆| 91精品国产全国免费观看| 日韩精品亚洲一区| 欧美tk丨vk视频| 国产精品88av| 国产精品成人免费精品自在线观看| 99视频热这里只有精品免费| 亚洲欧美色图小说| 欧美日韩三级视频| 久久99精品一区二区三区三区| 久久久久久久精| 99国产精品国产精品毛片| 亚洲综合色丁香婷婷六月图片| 51精品久久久久久久蜜臀| 精品一区二区在线免费观看| 国产香蕉久久精品综合网| 色综合久久久久久久久久久| 亚洲综合激情小说| 欧美一级片在线| 国产成人精品免费| 亚洲精品v日韩精品| 67194成人在线观看| 国产精品一区二区久久精品爱涩| 国产精品电影一区二区| 欧美肥大bbwbbw高潮| 精品一二线国产| 国产精品福利一区| 91精品国产综合久久福利软件 | 国产精品系列在线播放| 日本一区二区动态图| 欧美三级中文字幕| 久久成人精品无人区| 国产精品免费久久| 欧美三级三级三级| 国产寡妇亲子伦一区二区| 亚洲综合在线免费观看| 精品久久久久一区| 色哟哟一区二区在线观看 | 91精品国产免费久久综合| 国产精品系列在线播放| 香蕉影视欧美成人| 久久人人超碰精品| 色拍拍在线精品视频8848| 韩国v欧美v日本v亚洲v| 一级精品视频在线观看宜春院| 久久久久久99久久久精品网站| 欧美日韩黄视频| 成人av网站在线观看免费| 男人操女人的视频在线观看欧美| 中国色在线观看另类| 日韩欧美精品三级| 欧美主播一区二区三区| 国产成人鲁色资源国产91色综| 婷婷久久综合九色综合绿巨人| 欧美国产日韩一二三区| 欧美大黄免费观看| 欧美影片第一页| 成人精品高清在线| 激情五月婷婷综合网| 亚洲成人你懂的| 亚洲图片另类小说| 久久久久久日产精品| 91精品国产一区二区三区蜜臀| 在线一区二区视频| jizz一区二区| 国产成人免费视| 久久电影网电视剧免费观看| 亚洲成人先锋电影| 亚洲精品免费视频| 中文字幕一区二区三中文字幕| 久久综合九色综合欧美亚洲| 欧美一级日韩免费不卡| 精品视频在线免费看| 91浏览器打开| 成人午夜视频在线| 国产精品18久久久久久vr| 理论片日本一区| 麻豆视频一区二区| 蜜臀va亚洲va欧美va天堂 | 欧美日韩一区二区三区四区| 色久综合一二码| 99久久精品国产毛片| 高清不卡一区二区| 国产成人亚洲精品青草天美 | 精品粉嫩超白一线天av| 欧美一区日韩一区| 欧美一区二区啪啪|