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

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

?? connectionwrapper.java

?? JSP設計第二版的源碼
?? JAVA
字號:
package com.ora.jsp.sql;

import java.sql.*;
import java.util.*;

/**
 * This class is a wrapper around a Connection, overriding the
 * close method to just inform the DataSourceWrapper that it's available 
 * for reuse again, and the isClosed method to return the state
 * of the wrapper instead of the Connection.
 *
 * @author Hans Bergsten, Gefion software <hans@gefionsoftware.com>
 * @version 1.0
 */
public class ConnectionWrapper implements Connection {
    private Connection realConn;
    private DataSourceWrapper dsw;
    private boolean isClosed = false;

    public ConnectionWrapper(Connection realConn, DataSourceWrapper dsw) {
        this.realConn = realConn;
        this.dsw = dsw;
    }

    /**
     * Inform the DataSourceWrapper that the ConnectionWrapper
     * is closed.
     */
    public void close() throws SQLException {
        isClosed = true;
        dsw.returnConnection(realConn);
    }

    /**
     * Returns true if the ConnectionWrapper is closed, false
     * otherwise.
     */
    public boolean isClosed() throws SQLException {
        return isClosed;
    }

    /*
     * Wrapped methods. See Connection for details.
     */
    
    public void clearWarnings() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        realConn.clearWarnings();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public void commit() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        realConn.commit();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public Statement createStatement() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.createStatement();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public Statement createStatement(int resultSetType,
        int resultSetConcurrency) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.createStatement(resultSetType, resultSetConcurrency);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public boolean getAutoCommit() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.getAutoCommit();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public String getCatalog() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.getCatalog();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public DatabaseMetaData getMetaData() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.getMetaData();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public int getTransactionIsolation() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.getTransactionIsolation();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public Map getTypeMap() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.getTypeMap();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public SQLWarning getWarnings() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.getWarnings();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public boolean isReadOnly() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.isReadOnly();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public String nativeSQL(String sql) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.nativeSQL(sql);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public CallableStatement prepareCall(String sql) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.prepareCall(sql);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public CallableStatement prepareCall(String sql,int resultSetType,
        int resultSetConcurrency) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.prepareCall(sql, resultSetType, resultSetConcurrency);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public PreparedStatement prepareStatement(String sql) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.prepareStatement(sql);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public PreparedStatement prepareStatement(String sql, int resultSetType,
        int resultSetConcurrency) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        return realConn.prepareStatement(sql, resultSetType, 
	    resultSetConcurrency);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public void rollback() throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        realConn.rollback();
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public void setAutoCommit(boolean autoCommit) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        realConn.setAutoCommit(autoCommit);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public void setCatalog(String catalog) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        realConn.setCatalog(catalog);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public void setReadOnly(boolean readOnly) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        realConn.setReadOnly(readOnly);
    }

    /**
     * Calls the corresponding method on the wrapped Connection.
     */
    public void setTransactionIsolation(int level) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        realConn.setTransactionIsolation(level);
    }

    public void setTypeMap(Map map) throws SQLException {
        if (isClosed) {
            throw new SQLException("Pooled connection is closed");
        }
        realConn.setTypeMap(map);
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久成人精品无人区| 日韩欧美国产高清| 欧美大片日本大片免费观看| 国产日韩欧美不卡在线| 日韩经典中文字幕一区| 不卡视频在线观看| 26uuu亚洲综合色| 日韩国产欧美三级| 欧美在线一区二区三区| 国产亚洲精品资源在线26u| 蜜桃视频第一区免费观看| 91成人在线精品| 18成人在线视频| 成人国产亚洲欧美成人综合网| 久久久久久久久久久黄色| 久久疯狂做爰流白浆xx| 在线播放日韩导航| 亚洲成人av电影在线| 欧美三级视频在线| 亚洲精品精品亚洲| 色综合久久久久综合99| 国产精品久久一级| 99视频热这里只有精品免费| 国产精品免费av| www.色综合.com| 国产精品入口麻豆九色| 成人av在线播放网站| 国产精品毛片a∨一区二区三区| 韩国理伦片一区二区三区在线播放 | 欧美国产日韩精品免费观看| 韩国女主播一区| 国产亚洲1区2区3区| 国产一区视频导航| 国产亚洲成年网址在线观看| 国产成人精品免费一区二区| 亚洲国产精品高清| 色综合中文字幕| 亚洲尤物在线视频观看| 欧美电影在哪看比较好| 日本特黄久久久高潮| 欧美成人一区二区三区片免费| 毛片基地黄久久久久久天堂| 久久综合九色综合97婷婷女人| 国产福利视频一区二区三区| 国产精品久久久久aaaa| 欧美性感一区二区三区| 日韩在线a电影| 久久亚洲精精品中文字幕早川悠里| 韩国女主播成人在线观看| 国产精品久久久久精k8| 在线观看网站黄不卡| 麻豆精品国产91久久久久久| 国产婷婷一区二区| 色猫猫国产区一区二在线视频| 亚洲国产日韩一区二区| 日韩视频在线观看一区二区| 国产精品一级片| 亚洲一区二区三区在线播放| 日韩美女一区二区三区四区| 国产jizzjizz一区二区| 亚洲制服丝袜在线| 精品国产伦理网| 色综合久久久网| 美国av一区二区| 亚洲精品国产a久久久久久| 欧美一区二区三区日韩视频| 国产不卡免费视频| 婷婷六月综合亚洲| 国产精品美女久久久久久| 欧美电影一区二区| 99久久精品国产一区| 美女视频一区二区三区| 亚洲人吸女人奶水| 精品国产免费视频| 欧美丝袜丝nylons| 成人激情图片网| 日本 国产 欧美色综合| 亚洲精品免费视频| 久久久久国产精品麻豆ai换脸 | 欧美一区二区免费视频| 成人精品免费看| 另类欧美日韩国产在线| 亚洲一区二区三区四区中文字幕| 久久女同互慰一区二区三区| 欧美日韩一区国产| caoporm超碰国产精品| 久久99精品久久久久久久久久久久| 亚洲欧美电影一区二区| 精品国产精品一区二区夜夜嗨| 欧美日韩aaa| 91久久国产综合久久| 成人黄色在线视频| 国产成人午夜片在线观看高清观看| 亚洲成人777| 亚洲一二三四久久| 亚洲日本成人在线观看| 国产精品亲子伦对白| 精品成人一区二区三区四区| 日韩一区二区三区四区五区六区| 欧美午夜宅男影院| 色狠狠色噜噜噜综合网| 91麻豆国产香蕉久久精品| 国产69精品久久久久777| 国产精品一区在线观看乱码| 久久99在线观看| 捆绑调教美女网站视频一区| 日韩福利电影在线| 欧美aa在线视频| 久久精品99久久久| 麻豆国产精品一区二区三区 | 精品国产露脸精彩对白| 91成人网在线| 欧洲精品中文字幕| 一区二区三区在线免费观看| 亚洲欧美电影院| **欧美大码日韩| 亚洲精品高清在线| 亚洲一区二区免费视频| 亚洲成a人片在线观看中文| 亚洲sss视频在线视频| 三级不卡在线观看| 老汉av免费一区二区三区| 精品夜夜嗨av一区二区三区| 韩日欧美一区二区三区| 国产成人自拍网| 91麻豆高清视频| 欧美三区在线视频| 日韩精品中午字幕| 久久久99精品久久| 亚洲欧美在线视频| 亚洲综合色噜噜狠狠| 日韩精品视频网站| 国产乱码一区二区三区| 成人h版在线观看| 91官网在线免费观看| 欧美一区二区三区四区高清 | 亚洲色图19p| 婷婷丁香激情综合| 激情综合色综合久久综合| 成人在线视频首页| 欧美午夜电影在线播放| 欧美大黄免费观看| 亚洲婷婷综合色高清在线| 亚洲第一狼人社区| 国产伦精一区二区三区| 91丨porny丨中文| 日韩一本二本av| 国产精品另类一区| 日韩在线卡一卡二| 成人av中文字幕| 日韩欧美专区在线| 国产精品国产精品国产专区不蜜 | 日韩一区二区在线看片| 国产精品乱子久久久久| 午夜激情久久久| 福利一区二区在线| 91精品中文字幕一区二区三区| 久久老女人爱爱| 日本成人在线视频网站| gogogo免费视频观看亚洲一| 欧美一区欧美二区| 日韩久久一区二区| 国产99久久久精品| 91精品啪在线观看国产60岁| 亚洲人成影院在线观看| 久久99精品国产麻豆不卡| 色狠狠一区二区三区香蕉| 国产欧美日韩精品一区| 免费观看91视频大全| 在线观看视频一区二区| 国产精品视频一二| 国内欧美视频一区二区| 91精品国产综合久久香蕉麻豆 | 麻豆91在线观看| 欧美日韩国产一二三| 国产精品久久久久9999吃药| 国产一区在线不卡| 精品国产乱码久久久久久图片 | 亚洲一区二区在线观看视频 | 日韩一级片在线观看| 亚洲一区二区三区视频在线播放| av一区二区不卡| 国产欧美日韩在线| 国产精品一区二区x88av| 亚洲精品一区二区三区影院| 蜜臀久久久99精品久久久久久| 欧美午夜一区二区| 悠悠色在线精品| 在线观看一区二区视频| 一区二区成人在线视频| 91丨porny丨蝌蚪视频| 亚洲欧美综合在线精品| 国产成人在线视频免费播放| 久久久久久久久免费| 国产精品影视在线观看| 国产性色一区二区| 丰满亚洲少妇av| 亚洲欧洲成人精品av97| 色综合久久天天| 亚洲午夜久久久久久久久久久 |