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

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

?? connection.java

?? 基于java的oa系統
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     * @throws SQLException DOCUMENT ME!     */    Connection(String host, int port, Properties info, String database,        String url, NonRegisteringDriver d) throws java.sql.SQLException {        if (Driver.TRACE) {            Object[] args = { host, new Integer(port), info, database, url, d };            Debug.methodCall(this, "constructor", args);        }        this.defaultTimeZone = TimeZone.getDefault();        this.serverVariables = new HashMap();        if (host == null) {            this.host = "localhost";            hostList = new ArrayList();            hostList.add(this.host);        } else if (host.indexOf(",") != -1) {            // multiple hosts separated by commas (failover)            hostList = StringUtils.split(host, ",", true);        } else {            this.host = host;            hostList = new ArrayList();            hostList.add(this.host);        }        hostListSize = hostList.size();        this.port = port;        if (database == null) {            database = "";        }        this.database = database;        this.myURL = url;        this.myDriver = d;        this.user = info.getProperty("user");        this.password = info.getProperty("password");        if ((this.user == null) || this.user.equals("")) {            this.user = "nobody";        }        if (this.password == null) {            this.password = "";        }        this.props = info;        initializeDriverProperties(info);        if (Driver.DEBUG) {            System.out.println("Connect: " + this.user + " to " + this.database);        }        try {            createNewIO(false);            this.dbmd = new DatabaseMetaData(this, this.database);        } catch (java.sql.SQLException ex) {            cleanup(ex);            // don't clobber SQL exceptions            throw ex;        } catch (Exception ex) {            cleanup(ex);            StringBuffer mesg = new StringBuffer();            if (!useParanoidErrorMessages()) {                mesg.append("Cannot connect to MySQL server on ");                mesg.append(this.host);                mesg.append(":");                mesg.append(this.port);                mesg.append(".\n\n");                mesg.append("Make sure that there is a MySQL server ");                mesg.append("running on the machine/port you are trying ");                mesg.append(                    "to connect to and that the machine this software is "                    + "running on ");                mesg.append("is able to connect to this host/port "                    + "(i.e. not firewalled). ");                mesg.append(                    "Also make sure that the server has not been started "                    + "with the --skip-networking ");                mesg.append("flag.\n\n");            } else {                mesg.append("Unable to connect to database.");            }            mesg.append("Underlying exception: \n\n");            mesg.append(ex.getClass().getName());            if (!this.paranoid) {                mesg.append(Util.stackTraceToString(ex));            }            throw new java.sql.SQLException(mesg.toString(),                SQLError.SQL_STATE_COMMUNICATION_LINK_FAILURE);        }    }    /**     * If a connection is in auto-commit mode, than all its SQL statements will     * be executed and committed as individual transactions.  Otherwise, its     * SQL statements are grouped into transactions that are terminated by     * either commit() or rollback().  By default, new connections are in     * auto- commit mode.  The commit occurs when the statement completes or     * the next execute occurs, whichever comes first.  In the case of     * statements returning a ResultSet, the statement completes when the last     * row of the ResultSet has been retrieved or the ResultSet has been     * closed.  In advanced cases, a single statement may return multiple     * results as well as output parameter values.  Here the commit occurs     * when all results and output param values have been retrieved.     *      * <p>     * <b>Note:</b> MySQL does not support transactions, so this method is a     * no-op.     * </p>     *     * @param autoCommit - true enables auto-commit; false disables it     *     * @exception java.sql.SQLException if a database access error occurs     * @throws SQLException DOCUMENT ME!     */    public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException {        if (Driver.TRACE) {            Object[] args = { new Boolean(autoCommit) };            Debug.methodCall(this, "setAutoCommit", args);        }        checkClosed();        if (this.transactionsSupported) {            // this internal value must be set first as failover depends on it            // being set to true to fail over (which is done by most            // app servers and connection pools at the end of            // a transaction), and the driver issues an implicit set            // based on this value when it (re)-connects to a server            // so the value holds across connections            //            this.autoCommit = autoCommit;            //            // This is to catch the 'edge' case of            // autoCommit going from true -> false            //            if ((this.highAvailability || this.failedOver) && !this.autoCommit                    && this.needsPing) {                pingAndReconnect(true);            }            String sql = "SET autocommit=" + (autoCommit ? "1" : "0");            execSQL(sql, -1, this.database);        } else {            if ((autoCommit == false) && (this.relaxAutoCommit == false)) {                throw new SQLException("MySQL Versions Older than 3.23.15 "                    + "do not support transactions",                    SQLError.SQL_STATE_DRIVER_NOT_CAPABLE);            } else {                this.autoCommit = autoCommit;            }        }        return;    }    /**     * gets the current auto-commit state     *     * @return Current state of the auto-commit mode     *     * @exception java.sql.SQLException (why?)     *     * @see setAutoCommit     */    public boolean getAutoCommit() throws java.sql.SQLException {        if (Driver.TRACE) {            Object[] args = new Object[0];            Debug.methodCall(this, "getAutoCommit", args);            Debug.returnValue(this, "getAutoCommit",                new Boolean(this.autoCommit));        }        return this.autoCommit;    }    /**     * A sub-space of this Connection's database may be selected by setting a     * catalog name.  If the driver does not support catalogs, it will     * silently ignore this request     *      * <p>     * <b>Note:</b> MySQL's notion of catalogs are individual databases.     * </p>     *     * @param catalog the database for this connection to use     *     * @throws java.sql.SQLException if a database access error occurs     */    public void setCatalog(String catalog) throws java.sql.SQLException {        if (Driver.TRACE) {            Object[] args = { catalog };            Debug.methodCall(this, "setCatalog", args);        }        checkClosed();        String quotedId = this.dbmd.getIdentifierQuoteString();        if ((quotedId == null) || quotedId.equals(" ")) {            quotedId = "";        }        StringBuffer query = new StringBuffer("USE ");        query.append(quotedId);        query.append(catalog);        query.append(quotedId);        execSQL(query.toString(), -1, catalog);        this.database = catalog;    }    /**     * Return the connections current catalog name, or null if no catalog name     * is set, or we dont support catalogs.     *      * <p>     * <b>Note:</b> MySQL's notion of catalogs are individual databases.     * </p>     *     * @return the current catalog name or null     *     * @exception java.sql.SQLException if a database access error occurs     */    public String getCatalog() throws java.sql.SQLException {        if (Driver.TRACE) {            Object[] args = new Object[0];            Debug.methodCall(this, "getCatalog", args);            Debug.returnValue(this, "getCatalog", this.database);        }        return this.database;    }    /**     * Returns whether we clobber streaming results on new queries, or issue an     * error?     *     * @return true if we should implicitly close streaming result sets upon     *         receiving a new query     */    public boolean getClobberStreamingResults() {        return this.clobberStreamingResults;    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public boolean isClosed() {        if (Driver.TRACE) {            Object[] args = new Object[0];            Debug.methodCall(this, "isClosed", args);            Debug.returnValue(this, "isClosed", new Boolean(this.isClosed));        }        return this.isClosed;    }    /**     * Returns the character encoding for this Connection     *     * @return the character encoding for this connection.     */    public String getEncoding() {        return this.encoding;    }    /**     * @see Connection#setHoldability(int)     */    public void setHoldability(int arg0) throws SQLException {        // do nothing    }    /**     * @see Connection#getHoldability()     */    public int getHoldability() throws SQLException {        return ResultSet.CLOSE_CURSORS_AT_COMMIT;    }    /**     * NOT JDBC-Compliant, but clients can use this method to determine how     * long this connection has been idle. This time (reported in     * milliseconds) is updated once a query has completed.     *     * @return number of ms that this connection has been idle, 0 if the driver     *         is busy retrieving results.     */    public long getIdleFor() {        if (this.lastQueryFinishedTime == 0) {            return 0;        } else {            long now = System.currentTimeMillis();            long idleTime = now - this.lastQueryFinishedTime;            return idleTime;        }    }    /**     * Should we tell MySQL that we're an interactive client     *     * @return true if isInteractiveClient was set to true.     */    public boolean isInteractiveClient() {        return isInteractiveClient;    }    /**     * A connection's database is able to provide information describing its     * tables, its supported SQL grammar, its stored procedures, the     * capabilities of this connection, etc.  This information is made     * available through a DatabaseMetaData object.     *     * @return a DatabaseMetaData object for this connection     *     * @exception java.sql.SQLException if a database access error occurs     */    public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException {        checkClosed();        return new DatabaseMetaData(this, this.database);    }    /**     * DOCUMENT ME!     *     * @return     */    public String getNegativeInfinityRep() {        return negativeInfinityRep;    }    /**     * DOCUMENT ME!     *     * @return     */    public boolean isNegativeInfinityRepIsClipped() {        return negativeInfinityRepIsClipped;    }    /**     * DOCUMENT ME!     *     * @return     */    public String getNotANumberRep() {        return notANumberRep;    }    /**     * DOCUMENT ME!     *     * @return     */    public boolean isNotANumberRepIsClipped() {        return notANumberRepIsClipped;    }    /**     * DOCUMENT ME!     *     * @return     */    public String getPositiveInfinityRep() {        return positiveInfinityRep;    }    /**     * DOCUMENT ME!     *     * @return     */    public boolean isPositiveInfinityRepIsClipped() {        return positiveInfinityRepIsClipped;    }    /**     * Should the driver do profiling?     *     * @param flag set to true to enable profiling.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区欧美日韩| 丁香六月综合激情| 国产成人综合亚洲91猫咪| av一区二区久久| 国产精品素人视频| 性久久久久久久久久久久| 国产成人综合网站| 精品三级在线观看| 性久久久久久久久| 91在线国产福利| 亚洲精品在线观看网站| 亚洲一级二级三级在线免费观看| 国产综合色精品一区二区三区| 91成人免费在线| 国产精品毛片久久久久久久| 久久精品av麻豆的观看方式| 欧洲av一区二区嗯嗯嗯啊| 久久久激情视频| 久久国产精品免费| 91精品国产手机| 亚洲va欧美va国产va天堂影院| 99视频一区二区| 久久久无码精品亚洲日韩按摩| 琪琪久久久久日韩精品| 欧美日韩免费观看一区三区| 国产亚洲欧美一级| 国产尤物一区二区| 日韩欧美一级二级三级| 日韩在线一二三区| 欧美一区二区高清| 日韩av在线发布| 在线一区二区三区做爰视频网站| 国产精品久久久久四虎| 国产盗摄女厕一区二区三区| 26uuu国产在线精品一区二区| 蜜桃视频在线观看一区| 欧美一区二区三区免费观看视频| 天天综合天天综合色| 欧美精品欧美精品系列| 午夜久久久久久| 91精品国产乱| 日本亚洲视频在线| 日韩三级视频中文字幕| 国产一区二区成人久久免费影院 | 成人成人成人在线视频| 26uuu色噜噜精品一区二区| 国产精品自拍网站| 国产欧美日韩在线看| 99久久婷婷国产综合精品电影| 国产精品天美传媒| 色播五月激情综合网| 日韩黄色在线观看| 日韩精品一区二区三区在线观看| 狠狠色丁香九九婷婷综合五月| 久久久久久久av麻豆果冻| 成人午夜电影久久影院| 一区二区三区不卡视频| 日韩一区二区三区电影在线观看 | 色老综合老女人久久久| 午夜视频在线观看一区二区| 日韩无一区二区| 国产成人精品网址| 亚洲一区二区在线免费看| 制服丝袜中文字幕亚洲| 国产精品一区2区| 亚洲卡通动漫在线| 日韩欧美123| heyzo一本久久综合| 五月综合激情婷婷六月色窝| 精品日韩成人av| 91福利国产精品| 国产激情偷乱视频一区二区三区| 亚洲欧美日韩成人高清在线一区| 欧美日本一道本在线视频| 国产精品99久久久久久似苏梦涵| 亚洲女爱视频在线| 久久毛片高清国产| 欧美日韩亚洲综合一区二区三区| 极品美女销魂一区二区三区免费| 最新久久zyz资源站| 日韩亚洲国产中文字幕欧美| 91视频观看视频| 九九精品视频在线看| 一区二区三区色| 国产色产综合产在线视频| 欧美午夜精品久久久久久超碰| 国产麻豆91精品| 丝袜美腿亚洲一区二区图片| 亚洲图片欧美激情| 26uuu国产电影一区二区| 欧美美女喷水视频| 99久久久国产精品| 国产一二精品视频| 免费精品99久久国产综合精品| 亚洲欧美日韩一区二区三区在线观看| 久久久久久久性| 91精品国产色综合久久不卡电影 | 一区二区三区av电影| 欧美高清在线精品一区| 日韩欧美国产一区二区三区 | 欧美巨大另类极品videosbest | 午夜精品一区二区三区三上悠亚| 欧美激情一区在线观看| 日韩手机在线导航| 8x8x8国产精品| 欧美在线观看一区| 99精品久久99久久久久| 粉嫩av一区二区三区粉嫩| 美女一区二区视频| 日韩国产欧美视频| 午夜精品久久久久久久| 亚洲一二三四在线| 亚洲一区二区av在线| 一区二区三区在线观看国产| 亚洲国产成人午夜在线一区| 久久理论电影网| 国产欧美精品一区二区三区四区 | 成人黄色av电影| 床上的激情91.| 粉嫩aⅴ一区二区三区四区 | 久久精品国产一区二区三区免费看| 亚洲成人激情av| 免费在线一区观看| 精品一区二区三区在线播放| 精品影院一区二区久久久| 国产乱人伦偷精品视频不卡| 国产精品一区二区你懂的| 丰满少妇久久久久久久| 福利一区二区在线观看| 色婷婷激情综合| 欧美性一二三区| 日韩一区二区免费电影| 欧美tk—视频vk| ww亚洲ww在线观看国产| 久久综合五月天婷婷伊人| 久久免费看少妇高潮| 自拍偷拍欧美激情| 亚洲va天堂va国产va久| 国产在线精品一区二区不卡了| 国产精品一区二区三区网站| 99re成人精品视频| 欧美日韩成人一区二区| 精品乱人伦小说| 成人欧美一区二区三区在线播放| 亚洲午夜久久久| 九色|91porny| 成人精品gif动图一区| 成人精品视频网站| 欧美伊人久久大香线蕉综合69| 日韩欧美视频一区| 国产精品久久久久久亚洲毛片| 亚洲色图在线播放| 日精品一区二区三区| 高清不卡一区二区在线| 欧美精品九九99久久| 亚洲国产精品二十页| 亚洲va韩国va欧美va精品 | 日本欧美在线看| 丁香另类激情小说| 欧美一级久久久| 亚洲视频免费观看| 琪琪久久久久日韩精品| 成人性生交大片免费看中文| 欧美日本一道本在线视频| 中文字幕精品在线不卡| 丝袜美腿高跟呻吟高潮一区| 成人激情免费电影网址| 在线综合视频播放| 国产精品无码永久免费888| 五月婷婷激情综合| 99九九99九九九视频精品| 欧美成人a在线| 亚洲国产精品嫩草影院| 国产伦精品一区二区三区在线观看| 欧美在线观看视频一区二区三区| 久久婷婷国产综合精品青草| 亚洲成人午夜影院| heyzo一本久久综合| 久久久99精品久久| 蜜臀av性久久久久蜜臀aⅴ四虎| 日本高清视频一区二区| 国产日韩一级二级三级| 天堂一区二区在线| 在线观看亚洲a| 亚洲久草在线视频| 91女人视频在线观看| 中文字幕精品三区| 国产精品 日产精品 欧美精品| 欧美成人猛片aaaaaaa| 日本色综合中文字幕| 欧美精品自拍偷拍| 午夜精品久久久久| 欧美日韩一区二区在线视频| 一区二区三区视频在线观看| 色香蕉成人二区免费| 亚洲精品综合在线| 欧美性受xxxx| 午夜av区久久| 欧美v国产在线一区二区三区| 蜜桃视频在线观看一区二区|