亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
久久久无码精品亚洲日韩按摩| 欧美精品高清视频| 久久精品国产在热久久| 五月激情丁香一区二区三区| 亚洲国产日韩在线一区模特| 亚洲一区在线视频观看| 亚洲国产成人av| 午夜影院在线观看欧美| 日本网站在线观看一区二区三区| 日韩综合小视频| 激情av综合网| 成人免费av资源| 91香蕉视频污| 91精品国产免费| www日韩大片| 亚洲日本在线a| 日本一不卡视频| 粉嫩绯色av一区二区在线观看| 国产一区二区女| 99久久国产综合精品女不卡| 欧美探花视频资源| 欧美电视剧免费观看| 国产精品久久久久久久久免费桃花 | 日韩精品专区在线影院重磅| 精品国内片67194| 亚洲色欲色欲www在线观看| 肉色丝袜一区二区| 国产福利一区二区三区视频在线| 97精品国产露脸对白| 欧美一区2区视频在线观看| 国产无一区二区| 夜夜嗨av一区二区三区| 美女mm1313爽爽久久久蜜臀| 不卡欧美aaaaa| 91.com在线观看| 中文字幕成人av| 青青草97国产精品免费观看| 成人激情电影免费在线观看| 在线播放亚洲一区| 国产精品色呦呦| 蜜臀av性久久久久蜜臀av麻豆 | 国产精品女主播在线观看| 一区二区三区精品视频| 国产毛片一区二区| 欧美日本精品一区二区三区| 国产精品国产三级国产普通话三级 | 国产成人日日夜夜| 欧美日韩www| 亚洲欧美电影院| 国产精品亚洲专一区二区三区| 欧美视频一区二区在线观看| 国产精品情趣视频| 狠狠狠色丁香婷婷综合久久五月| 欧美日韩一区 二区 三区 久久精品| 久久久噜噜噜久久人人看| 秋霞成人午夜伦在线观看| 在线观看中文字幕不卡| 国产精品麻豆99久久久久久| 国产精品影音先锋| 精品国产不卡一区二区三区| 日日欢夜夜爽一区| 欧美福利视频导航| 亚洲第一二三四区| 欧美日韩综合在线免费观看| 亚洲女性喷水在线观看一区| 不卡视频一二三四| 国产精品另类一区| 成人免费视频播放| 久久蜜桃香蕉精品一区二区三区| 美女视频网站黄色亚洲| 欧美一级久久久久久久大片| 蜜桃av一区二区三区电影| 这里只有精品免费| 日本不卡的三区四区五区| 日韩一卡二卡三卡| 久久99国产精品尤物| 欧美精品一区二区三区一线天视频| 日韩激情视频网站| 欧美猛男超大videosgay| 视频一区欧美精品| 91精品久久久久久久99蜜桃| 日韩影院精彩在线| 欧美成人免费网站| 国产精品一区专区| 国产精品久久久久aaaa| 一本高清dvd不卡在线观看| 亚洲综合色丁香婷婷六月图片| 欧美午夜理伦三级在线观看| 日韩精品成人一区二区在线| 日韩一二三区不卡| 国产剧情在线观看一区二区| 国产精品视频一二| 欧美日韩免费观看一区二区三区| 日韩精品乱码av一区二区| www国产亚洲精品久久麻豆| 国产99精品在线观看| 日韩久久一区二区| 在线91免费看| 国产999精品久久久久久| 一区二区三区蜜桃网| 欧美一卡二卡在线观看| 成人高清av在线| 亚洲1区2区3区4区| 国产亚洲视频系列| 欧美日韩一区在线| 国产成人av一区二区三区在线观看| 亚洲欧洲在线观看av| 欧美一级在线视频| 91在线小视频| 狠狠色丁香婷婷综合久久片| 亚洲另类在线一区| 精品国产三级a在线观看| 91首页免费视频| 韩国视频一区二区| 亚洲国产日韩一区二区| 亚洲国产精品激情在线观看| 欧美日韩二区三区| 91蜜桃婷婷狠狠久久综合9色| 裸体一区二区三区| 一区二区三区四区乱视频| 国产欧美一区二区在线| 在线不卡中文字幕播放| 一本久久a久久免费精品不卡| 极品瑜伽女神91| 日本少妇一区二区| 亚洲精品网站在线观看| 国产视频一区在线播放| 日韩欧美一区二区久久婷婷| 日本韩国精品一区二区在线观看| 国产在线日韩欧美| 全国精品久久少妇| 偷窥少妇高潮呻吟av久久免费| 亚洲欧美在线另类| 国产午夜一区二区三区| 欧美精品一区二区三区蜜桃视频 | 精品影视av免费| 奇米影视一区二区三区小说| 一区二区三区在线播| 亚洲欧美在线视频| 欧美高清在线视频| 国产日韩精品一区二区浪潮av | 婷婷亚洲久悠悠色悠在线播放| 国产精品传媒视频| 中文字幕一区二区不卡| 国产精品国产三级国产aⅴ中文| 国产亚洲精品aa| 欧美国产综合一区二区| 亚洲国产岛国毛片在线| 国产欧美一二三区| 国产欧美日韩视频一区二区| 国产亚洲欧美一区在线观看| 久久蜜桃香蕉精品一区二区三区| 久久影视一区二区| 久久综合久久综合久久综合| 久久久噜噜噜久久人人看| 国产日韩欧美一区二区三区乱码 | 日韩欧美国产一区二区在线播放| 在线不卡欧美精品一区二区三区| 7777精品伊人久久久大香线蕉| 欧美日韩一区精品| 欧美一区二区成人| 久久亚洲欧美国产精品乐播| 久久久.com| 亚洲精选免费视频| 日韩在线一区二区| 国内精品嫩模私拍在线| 国产精品123| 91蜜桃网址入口| 884aa四虎影成人精品一区| 26uuu另类欧美| 亚洲乱码国产乱码精品精可以看 | 亚洲综合一区在线| 奇米综合一区二区三区精品视频| 国产综合色精品一区二区三区| 高清不卡一区二区在线| 91久久精品一区二区三区| 欧美日韩黄视频| 欧美激情在线免费观看| 一区二区日韩电影| 久久国产生活片100| 99精品热视频| 欧美成人一级视频| 国产精品初高中害羞小美女文| 亚洲福利视频一区二区| 国产精品99久久久| 欧美性猛交一区二区三区精品| 精品国产百合女同互慰| 亚洲永久免费av| 国产91精品一区二区麻豆亚洲| 欧美这里有精品| 久久精品人人爽人人爽| 午夜欧美在线一二页| 国产成人av一区二区| 91精品国产麻豆国产自产在线| 国产精品家庭影院| 国产一区二区中文字幕| 欧美日本在线观看| 亚洲视频在线观看一区| 国产麻豆精品一区二区| 在线播放91灌醉迷j高跟美女 |