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

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

?? connectionwrapper.java

?? 基于java的oa系統
?? 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);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品久久99精品久久| 91浏览器入口在线观看| 国产91高潮流白浆在线麻豆| 色综合婷婷久久| 日韩三级在线观看| 亚洲另类在线制服丝袜| 激情五月婷婷综合| 欧美日韩日本视频| 最新国产成人在线观看| 久久国产精品色| 欧美日本韩国一区二区三区视频 | 日韩精品一区二区三区视频在线观看| 国产亚洲欧美激情| 蓝色福利精品导航| 欧美精品丝袜中出| 亚洲激情图片小说视频| 岛国一区二区三区| 久久综合狠狠综合久久综合88 | 日韩午夜激情免费电影| 夜夜精品视频一区二区| av午夜一区麻豆| 久久欧美一区二区| 免费在线视频一区| 91精品久久久久久久91蜜桃| 亚洲综合在线视频| 99精品视频在线观看| 国产亚洲精品福利| 国产乱子伦视频一区二区三区| 在线播放中文字幕一区| 亚洲国产精品久久不卡毛片| 在线亚洲+欧美+日本专区| 1024精品合集| 一本色道亚洲精品aⅴ| 中文字幕一区二区日韩精品绯色| 国产成a人亚洲精| 久久影院视频免费| 国产精品 日产精品 欧美精品| 欧美成人综合网站| 国产一区二三区好的| 精品福利一二区| 国产999精品久久久久久| 国产日韩欧美制服另类| 波多野结衣视频一区| 欧美国产97人人爽人人喊| 成人免费视频网站在线观看| 中文字幕免费在线观看视频一区| 成人精品视频一区二区三区 | 91亚洲精品乱码久久久久久蜜桃| 中文字幕一区日韩精品欧美| 92精品国产成人观看免费| 一区二区三区精品久久久| 欧美性色黄大片| 日韩福利视频导航| 久久午夜老司机| 99在线精品免费| 亚洲国产精品自拍| 精品久久久久久久久久久久久久久久久| 蜜桃在线一区二区三区| 久久久国产精品麻豆| 99久久久久久| 日韩影院精彩在线| 久久久亚洲午夜电影| www..com久久爱| 性欧美大战久久久久久久久| 精品久久久久久久人人人人传媒 | 日日嗨av一区二区三区四区| 日韩精品一区二区三区视频在线观看| 国产乱妇无码大片在线观看| 亚洲蜜臀av乱码久久精品蜜桃| 欧美日韩视频专区在线播放| 久久99国产精品久久99| 中文字幕一区二区三区不卡在线| 欧美猛男男办公室激情| 国产69精品久久99不卡| 亚洲人妖av一区二区| 欧美成人一区二区| 色综合久久中文综合久久97| 毛片一区二区三区| 专区另类欧美日韩| 精品国产乱码久久久久久牛牛 | 麻豆精品视频在线| 国产精品国产三级国产aⅴ无密码| 欧美色大人视频| www.av亚洲| 国产在线视频精品一区| 午夜欧美在线一二页| 国产精品乱子久久久久| 欧美一区在线视频| 在线视频欧美精品| 粉嫩一区二区三区在线看| 蜜桃视频在线观看一区二区| 伊人色综合久久天天| 久久美女高清视频| 91精品国产品国语在线不卡| 91在线一区二区| 国产成人精品综合在线观看 | 国产麻豆成人精品| 热久久国产精品| 亚洲一区二区三区四区五区中文| 久久久精品免费免费| 日韩欧美一二区| 欧美久久久久久蜜桃| 欧美性猛交xxxxxx富婆| 91碰在线视频| 99麻豆久久久国产精品免费优播| 韩国成人在线视频| 麻豆国产一区二区| 日本中文一区二区三区| 亚洲妇熟xx妇色黄| 亚洲男人天堂一区| 亚洲女与黑人做爰| 亚洲美女免费在线| 日韩一区有码在线| 亚洲少妇最新在线视频| 亚洲天堂网中文字| 亚洲精品一卡二卡| 亚洲精品成人精品456| 成人免费在线视频观看| 国产精品电影一区二区| 国产精品网站在线播放| 国产精品国产三级国产aⅴ中文 | 亚洲欧美日韩在线不卡| 欧美激情一区二区三区全黄| 国产女同性恋一区二区| 国产精品卡一卡二| 亚洲三级免费观看| 亚洲免费av网站| 香蕉久久一区二区不卡无毒影院| 亚洲最大的成人av| 日本不卡视频在线| 国模大尺度一区二区三区| 国产精品一二三区在线| 国产91色综合久久免费分享| 成人国产亚洲欧美成人综合网| av在线播放一区二区三区| 色综合一个色综合| 欧美日韩国产高清一区二区三区| 欧美精品自拍偷拍| 精品99一区二区| 国产精品热久久久久夜色精品三区 | 99视频在线精品| 在线观看av一区| 日韩三级av在线播放| 日本一区二区三级电影在线观看 | 不卡的看片网站| 欧美又粗又大又爽| 欧美一级日韩免费不卡| 久久精品人人做人人综合 | 精品三级在线看| 国产人妖乱国产精品人妖| 亚洲精品高清在线| 美美哒免费高清在线观看视频一区二区| 国产在线精品视频| 91啪九色porn原创视频在线观看| 欧美日韩精品电影| 久久综合九色综合97婷婷女人 | 国产精品小仙女| 在线精品视频免费观看| 精品国产乱码久久久久久牛牛| 综合色天天鬼久久鬼色| 麻豆久久久久久久| 91在线观看美女| 欧美电影免费观看高清完整版在| 中文字幕电影一区| 麻豆一区二区三区| 欧美伊人久久大香线蕉综合69 | 国产米奇在线777精品观看| 91捆绑美女网站| 26uuu精品一区二区三区四区在线| 日韩美女啊v在线免费观看| 日本欧美在线看| 99精品黄色片免费大全| 精品国产污污免费网站入口 | 精品国产乱码久久久久久浪潮| 综合激情成人伊人| 国产一区在线精品| 欧美人伦禁忌dvd放荡欲情| 国产精品久久午夜夜伦鲁鲁| 强制捆绑调教一区二区| 精品视频一区三区九区| 亚洲欧洲制服丝袜| 福利电影一区二区三区| 欧美成人福利视频| 午夜电影网一区| 在线观看免费一区| 亚洲欧美aⅴ...| 99这里都是精品| 国产精品久久99| 国产很黄免费观看久久| 精品国产伦一区二区三区观看方式 | 日韩精品专区在线影院观看| 亚洲一卡二卡三卡四卡 | 欧美色网站导航| 最新不卡av在线| 成人国产精品免费网站| 国产精品青草综合久久久久99| 国内精品第一页| 国产丝袜欧美中文另类| 国产99久久久国产精品| 国产日韩影视精品|