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

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

?? connection.java

?? 基于java的oa系統
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* 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;import java.io.IOException;import java.io.InputStream;import java.io.Reader;import java.io.UnsupportedEncodingException;import java.math.BigDecimal;import java.net.URL;import java.sql.CallableStatement;import java.sql.Clob;import java.sql.Date;import java.sql.ParameterMetaData;import java.sql.Ref;import java.sql.SQLException;import java.sql.Savepoint;import java.sql.Time;import java.sql.Timestamp;import java.util.ArrayList;import java.util.Calendar;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.Map;import java.util.Properties;import java.util.TimeZone;import java.util.TreeMap;/** * A Connection represents a session with a specific database.  Within the * context of a Connection, SQL statements are executed and results are * returned. *  * <P> * 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 obtained with the getMetaData * method. * </p> * * @author Mark Matthews * @version $Id: Connection.java,v 1.31.2.85 2004/11/15 00:23:07 mmatthew Exp $ * * @see java.sql.Connection */public class Connection implements java.sql.Connection {    // The command used to "ping" the database.    // Newer versions of MySQL server have a ping() command,    // but this works for everything    private static final String PING_COMMAND = "SELECT 1";    /**     * Map mysql transaction isolation level name to     * java.sql.Connection.TRANSACTION_XXX     */    private static Map mapTransIsolationName2Value = null;    /**     * The mapping between MySQL charset names and Java charset names.     * Initialized by loadCharacterSetMapping()     */    private static Map charsetMap;    /** Table of multi-byte charsets. Initialized by loadCharacterSetMapping() */    private static Map multibyteCharsetsMap;    /** Default socket factory classname */    private static final String DEFAULT_SOCKET_FACTORY = StandardSocketFactory.class        .getName();    static {        loadCharacterSetMapping();        mapTransIsolationName2Value = new HashMap(8);        mapTransIsolationName2Value.put("READ-UNCOMMITED",            new Integer(TRANSACTION_READ_UNCOMMITTED));        mapTransIsolationName2Value.put("READ-UNCOMMITTED",            new Integer(TRANSACTION_READ_UNCOMMITTED));        mapTransIsolationName2Value.put("READ-COMMITTED",            new Integer(TRANSACTION_READ_COMMITTED));        mapTransIsolationName2Value.put("REPEATABLE-READ",            new Integer(TRANSACTION_REPEATABLE_READ));        mapTransIsolationName2Value.put("SERIALIZABLE",            new Integer(TRANSACTION_SERIALIZABLE));    }    /**     * Marker for character set converter not being available (not written,     * multibyte, etc)  Used to prevent multiple instantiation requests.     */    private final static Object CHARSET_CONVERTER_NOT_AVAILABLE_MARKER = new Object();    boolean parserKnowsUnicode = false;    /** Internal DBMD to use for various database-version specific features */    private DatabaseMetaData dbmd = null;    /** The list of host(s) to try and connect to */    private List hostList = null;    /** A map of SQL to parsed prepared statement parameters. */    private Map cachedPreparedStatementParams;    /**     * Holds cached mappings to charset converters to avoid static     * synchronization and at the same time save memory (each charset     * converter takes approx 65K of static data).     */    private Map charsetConverterMap = new HashMap(CharsetMapping.JAVA_TO_MYSQL_CHARSET_MAP            .size());    /** A map of statements that have had setMaxRows() called on them */    private Map statementsUsingMaxRows;    /**     * The type map for UDTs (not implemented, but used by some third-party     * vendors, most notably IBM WebSphere)     */    private Map typeMap;    /** The I/O abstraction interface (network conn to MySQL server */    private MysqlIO io = null;    /** Mutex */    private final Object mutex = new Object();    /** The map of server variables that we retrieve at connection init. */    private Map serverVariables = null;    /** The driver instance that created us */    private NonRegisteringDriver myDriver;    /** Properties for this connection specified by user */    private Properties props = null;    /** The database we're currently using (called Catalog in JDBC terms). */    private String database = null;    /** If we're doing unicode character conversions, what encoding do we use? */    private String encoding = null;    /** The hostname we're connected to */    private String host = null;    /** The JDBC URL we're using */    private String myURL = null;    /** What does MySQL call this encoding? */    private String mysqlEncodingName = null;    private String negativeInfinityRep = MysqlDefs.MIN_DOUBLE_VAL_STRING;    private String notANumberRep = MysqlDefs.NAN_VAL_STRING;    /** The password we used */    private String password = null;    private String positiveInfinityRep = MysqlDefs.MAX_DOUBLE_VAL_STRING;    /** Classname for socket factory */    private String socketFactoryClassName = null;    /** The user we're connected as */    private String user = null;    /** Where was the connection _explicitly_ closed by the application? */    private Throwable explicitCloseLocation;    /** If the connection was forced closed, why was it  forced closed? */    private Throwable forcedCloseReason;    private TimeZone defaultTimeZone;    /** The timezone of the server */    private TimeZone serverTimezone = null;    /**     * We need this 'bootstrapped', because 4.1 and newer will send fields back     * with this even before we fill this dynamically from the server.     */    private String[] indexToCharsetMapping = CharsetMapping.INDEX_TO_CHARSET;    /** Allow LOAD LOCAL INFILE (defaults to true) */    private boolean allowLoadLocalInfile = true;    /** Should we clear the input stream each query? */    private boolean alwaysClearStream = false;    /** Are we in autoCommit mode? */    private boolean autoCommit = true;    /** SHould we cache the parsing of prepared statements? */    private boolean cachePreparedStatements = false;    /** Should we capitalize mysql types */    private boolean capitalizeDBMDTypes = false;    /** Should we clobber streaming results on new queries, or issue an error? */    private boolean clobberStreamingResults = false;    /**     * Should we continue processing batch commands if one fails. The JDBC spec     * allows either way, so we let the user choose     */    private boolean continueBatchOnError = true;    /** Should we do unicode character conversions? */    private boolean doUnicode = false;    /** When failed-over, set connection to read-only? */    private boolean failOverReadOnly = true;    /** Are we failed-over to a non-master host */    private boolean failedOver = false;    /** Does the server suuport isolation levels? */    private boolean hasIsolationLevels = false;    /** Does this version of MySQL support quoted identifiers? */    private boolean hasQuotedIdentifiers = false;    //    // This is for the high availability :) routines    //    private boolean highAvailability = false;    /** Ignore non-transactional table warning for rollback? */    private boolean ignoreNonTxTables = false;    /** Has this connection been closed? */    private boolean isClosed = true;    /** Should we tell MySQL that we're an interactive client? */    private boolean isInteractiveClient = false;    /** Is the server configured to use lower-case table names only? */    private boolean lowerCaseTableNames = false;    /** Has the max-rows setting been changed from the default? */    private boolean maxRowsChanged = false;    private boolean needsPing = false;    private boolean negativeInfinityRepIsClipped = true;    private boolean notANumberRepIsClipped = true;    /** Do we expose sensitive information in exception and error messages? */    private boolean paranoid = false;    /** Should we do 'extra' sanity checks? */    private boolean pedantic = false;    private boolean positiveInfinityRepIsClipped = true;    /** Should we retrieve 'info' messages from the server? */    private boolean readInfoMsg = false;    /** Are we in read-only mode? */    private boolean readOnly = false;    /**     * If autoReconnect == true, should we attempt to reconnect at transaction     * boundaries?     */    private boolean reconnectAtTxEnd = false;    /** Do we relax the autoCommit semantics? (For enhydra, for example) */    private boolean relaxAutoCommit = false;    /** Do we need to correct endpoint rounding errors */    private boolean strictFloatingPoint = false;    /** Do we check all keys for updatable result sets? */    private boolean strictUpdates = true;    /** Are transactions supported by the MySQL server we are connected to? */    private boolean transactionsSupported = false;    /** Has ANSI_QUOTES been enabled on the server? */    private boolean useAnsiQuotes = false;    /** Should we use compression? */    private boolean useCompression = false;    /** Can we use the "ping" command rather than a query? */    private boolean useFastPing = false;    /** Should we tack on hostname in DBMD.getTable/ColumnPrivileges()? */    private boolean useHostsInPrivileges = true;        /** Should we only use the error message from the server when reporting     * errors?     */    private boolean useOnlyServerErrorMessages = true;    /** Should we use SSL? */    private boolean useSSL = false;    /**     * Should we use stream lengths in prepared statements? (true by default ==     * JDBC compliant)     */    private boolean useStreamLengthsInPrepStmts = true;    /** Should we use timezone information? */    private boolean useTimezone = false;    /** Should we return PreparedStatements for UltraDev's stupid bug? */    private boolean useUltraDevWorkAround = false;    private boolean useUnbufferedInput = true;    private double initialTimeout = 2.0D;    /** How many hosts are in the host list? */    private int hostListSize = 0;    /** isolation level */    private int isolationLevel = java.sql.Connection.TRANSACTION_READ_COMMITTED;    /**     * The largest packet we can send (changed once we know what the server     * supports, we get this at connection init).     */    private int maxAllowedPacket = 65536;    private int maxReconnects = 3;    /**     * The max rows that a result set can contain. Defaults to -1, which     * according to the JDBC spec means "all".     */    private int maxRows = -1;    private int netBufferLength = 16384;    /** The port number we're connected to (defaults to 3306) */    private int port = 3306;    /**     * If prepared statement caching is enabled, what should the threshold     * length of the SQL to prepare should be in order to _not_ cache?     */    private int preparedStatementCacheMaxSqlSize = 256;    /** If prepared statement caching is enabled, how many should we cache? */    private int preparedStatementCacheSize = 25;    /**     * How many queries should we wait before we try to re-connect to the     * master, when we are failing over to replicated hosts Defaults to 50     */    private int queriesBeforeRetryMaster = 50;    /** What should we set the socket timeout to? */    private int socketTimeout = 0; // infinite    /** When did the last query finish? */    private long lastQueryFinishedTime = 0;    /** When did the master fail? */    private long masterFailTimeMillis = 0L;    /** Number of queries we've issued since the master failed */    private long queriesIssuedFailedOver = 0;    /**     * How many seconds should we wait before retrying to connect to the master     * if failed over? We fall back when either queriesBeforeRetryMaster or     * secondsBeforeRetryMaster is reached.     */    private long secondsBeforeRetryMaster = 30L;    /**     * Creates a connection to a MySQL Server.     *     * @param host the hostname of the database server     * @param port the port number the server is listening on     * @param info a Properties[] list holding the user and password     * @param database the database to connect to     * @param url the URL of the connection     * @param d the Driver instantation of the connection     *     * @exception java.sql.SQLException if a database access error occurs

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区在线观看| 亚洲黄网站在线观看| 亚洲欧美电影一区二区| a亚洲天堂av| 国产亚洲欧美激情| 成人免费的视频| 综合分类小说区另类春色亚洲小说欧美| 91在线观看高清| 日韩电影在线免费观看| 337p粉嫩大胆噜噜噜噜噜91av| 久草精品在线观看| 久久久久亚洲综合| 色婷婷久久久综合中文字幕| 亚洲免费在线电影| 一区二区三区四区激情| 日韩午夜精品视频| 高清免费成人av| 日本免费新一区视频| 久久se精品一区二区| 玉米视频成人免费看| 夜夜夜精品看看| 日韩国产精品久久| 国内精品国产三级国产a久久| 中文字幕一区av| 欧美xxxxx牲另类人与| 精品视频一区三区九区| 国产iv一区二区三区| 波多野结衣在线一区| 日韩精品乱码av一区二区| 国产精品国产自产拍在线| 欧美精品一区二区三区在线播放 | 亚洲女人****多毛耸耸8| 亚洲乱码中文字幕| 免费在线观看日韩欧美| 亚洲欧洲美洲综合色网| 日韩主播视频在线| 国产999精品久久久久久| 日本国产一区二区| 国产精品18久久久久久久久| 国产精品美女一区二区| 欧美一区二区视频免费观看| 日本电影亚洲天堂一区| 欧美一级片在线| 17c精品麻豆一区二区免费| 亚洲国产精品久久不卡毛片| 国产婷婷色一区二区三区四区 | 国产视频视频一区| 亚洲色图清纯唯美| 久久疯狂做爰流白浆xx| 欧美亚洲国产一卡| 欧洲一区二区三区在线| 欧美性一二三区| 国产色婷婷亚洲99精品小说| 三级精品在线观看| 一本一道波多野结衣一区二区| 久久午夜色播影院免费高清| 天天色天天爱天天射综合| 日韩av在线免费观看不卡| 99久久综合色| 国产欧美日韩激情| 韩国精品久久久| 91精品国产高清一区二区三区 | 国产.精品.日韩.另类.中文.在线.播放| 欧美调教femdomvk| 亚洲人快播电影网| 97se亚洲国产综合在线| 欧美性一区二区| **性色生活片久久毛片| 国产馆精品极品| 精品91自产拍在线观看一区| 日韩电影一区二区三区四区| 欧美日韩久久久一区| 日韩一区二区三区高清免费看看| 亚洲最新视频在线播放| 91麻豆swag| 亚洲伦理在线精品| 欧美亚洲一区二区三区四区| 亚洲精品成人在线| 色狠狠桃花综合| 性久久久久久久久| 丰满岳乱妇一区二区三区| 久久精品一区二区| 成人一区二区三区中文字幕| 国产日韩欧美不卡在线| 东方aⅴ免费观看久久av| 国产精品久久久久一区二区三区共| 国产成人午夜精品5599| 亚洲天堂2016| 欧美无砖砖区免费| 久久国产人妖系列| 久久婷婷成人综合色| 成人黄色av电影| 一区二区激情视频| 欧美精品成人一区二区三区四区| 欧美激情在线观看视频免费| 亚洲福利一区二区三区| 337p亚洲精品色噜噜噜| 亚洲人成精品久久久久| 91福利在线观看| 日产精品久久久久久久性色| www激情久久| 99精品桃花视频在线观看| 亚洲自拍偷拍综合| 成人国产在线观看| 亚洲综合久久久| 精品日产卡一卡二卡麻豆| 国产一区视频导航| 91精品国产色综合久久久蜜香臀| 六月丁香婷婷久久| 一色屋精品亚洲香蕉网站| 欧美高清精品3d| 成年人午夜久久久| 日韩精品电影一区亚洲| 国产精品精品国产色婷婷| 欧美精品日韩综合在线| 99re成人精品视频| 青青草原综合久久大伊人精品| 国产精品丝袜91| 欧美一级一区二区| 91麻豆国产福利在线观看| 狠狠狠色丁香婷婷综合激情| 亚洲综合久久久久| 中文字幕字幕中文在线中不卡视频| 在线综合视频播放| 色综合欧美在线视频区| 蜜桃视频第一区免费观看| 欧美一二三区在线| 色综合天天性综合| 亚洲综合免费观看高清完整版 | 成人动漫一区二区| 奇米在线7777在线精品| 日韩一区欧美一区| 久久久久久夜精品精品免费| 欧美日韩免费高清一区色橹橹| 不卡的av中国片| 国产美女视频一区| 久久er99热精品一区二区| 亚洲一区二区四区蜜桃| 综合久久国产九一剧情麻豆| 久久色在线观看| 欧美tickling网站挠脚心| 欧美三级一区二区| 欧美综合一区二区三区| 色综合久久中文综合久久97| 成人18视频日本| 成人免费看片app下载| 狠狠v欧美v日韩v亚洲ⅴ| 午夜视频在线观看一区二区| 亚洲精品v日韩精品| 一区在线观看免费| 中文字幕在线视频一区| 久久婷婷综合激情| 精品成人一区二区| 亚洲精品一区在线观看| 久久在线观看免费| 久久久久久久久久电影| 中文字幕不卡在线播放| 国产精品高清亚洲| ...中文天堂在线一区| 亚洲一级二级在线| 亚洲国产综合在线| 日韩国产欧美视频| 国产一区二区精品久久99| 国产一区福利在线| 国产成人免费视频精品含羞草妖精| 国产精品一区在线| 成人av资源在线| 在线观看亚洲精品| 日韩女优毛片在线| 91亚洲永久精品| 欧美私模裸体表演在线观看| 欧美日韩国产美| 欧美精品一区二区三区蜜桃 | 精品国产伦一区二区三区观看体验| 日韩视频免费观看高清完整版 | 中文无字幕一区二区三区| 中文字幕第一页久久| 亚洲视频在线观看三级| 亚洲国产成人精品视频| 免费看日韩精品| 成人免费黄色大片| 欧美日韩一区成人| 久久网站热最新地址| 亚洲欧美激情在线| 日本欧美一区二区三区乱码| 国产精品18久久久久久久久久久久| 成年人午夜久久久| 欧美另类一区二区三区| 久久精品水蜜桃av综合天堂| 亚洲私人黄色宅男| 久久精品国产亚洲高清剧情介绍| 国产成人夜色高潮福利影视| 欧美日韩欧美一区二区| 国产喂奶挤奶一区二区三区| 亚洲一级二级三级| 成人黄色片在线观看| 日韩一区二区三| 亚洲一二三区视频在线观看| 国产一区二区女| 日韩一区二区三区在线视频|