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

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

?? connection.java

?? 基于java的oa系統(tǒng)
?? 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一区二区三区免费野_久草精品视频
97久久精品人人做人人爽50路| 亚洲综合色区另类av| 亚洲图片欧美视频| 99re66热这里只有精品3直播 | 91啪在线观看| 欧美国产一区二区| 国产美女一区二区三区| 日韩欧美成人一区| 日韩av不卡在线观看| 正在播放亚洲一区| 性做久久久久久免费观看| 91黄视频在线观看| 一区二区三区日韩在线观看| 91在线一区二区三区| 亚洲欧洲国产日本综合| av高清不卡在线| 亚洲男人天堂一区| 欧美特级限制片免费在线观看| 亚洲午夜免费视频| 欧美肥妇bbw| 久久精品国产一区二区| 久久精品亚洲乱码伦伦中文| 国产成人精品网址| 中文字幕亚洲电影| 日本乱人伦一区| 亚洲va天堂va国产va久| 日韩欧美成人一区| 粗大黑人巨茎大战欧美成人| 国产精品久久久久久户外露出| 91麻豆精品视频| 99在线精品免费| 亚洲欧美日韩国产综合在线| 欧美系列亚洲系列| 久久国产精品一区二区| 国产日韩欧美综合在线| 91麻豆成人久久精品二区三区| 一区二区三区美女| 欧美一区二区三区视频在线观看| 日韩国产欧美三级| 久久久久免费观看| 成人免费三级在线| 成人免费一区二区三区视频 | 黄色小说综合网站| 精品久久久久久久久久久久久久久| 日本伊人色综合网| 亚洲精品一区二区三区四区高清| 精品午夜久久福利影院| 国产欧美日韩麻豆91| 91在线码无精品| 亚洲小少妇裸体bbw| 欧美一卡在线观看| 精品一区二区影视| 国产午夜精品久久久久久久| av一二三不卡影片| 性欧美疯狂xxxxbbbb| 欧美www视频| 高清av一区二区| 自拍偷拍国产精品| 91福利精品第一导航| 日日摸夜夜添夜夜添精品视频 | 日本最新不卡在线| 久久久久久毛片| 久久精品国产精品亚洲精品| 欧美日韩国产在线观看| 国产蜜臀97一区二区三区| 亚洲免费看黄网站| 欧美性生活大片视频| 欧美高清在线一区二区| 一区二区三区精品| 国产精品456| gogo大胆日本视频一区| 91麻豆精品国产| 日韩亚洲欧美在线| www国产成人免费观看视频 深夜成人网| 亚洲免费电影在线| 国产精品1024| 成人国产精品免费观看视频| 国产伦精品一区二区三区免费| 国产精品久线在线观看| 欧美精品久久一区二区三区| 国产精品一区一区三区| 亚洲国产成人va在线观看天堂| 精品成人在线观看| 91精品国产综合久久福利| 91在线视频在线| 蜜乳av一区二区| 香蕉加勒比综合久久| 国产欧美精品一区二区色综合| 欧美成人免费网站| 欧美性xxxxxx少妇| 韩国女主播一区| 日精品一区二区| 亚洲人成亚洲人成在线观看图片| 国产片一区二区三区| 日韩视频123| 日韩一区二区电影在线| 欧美性猛交xxxx黑人交| 国产69精品久久99不卡| 色综合久久88色综合天天免费| 奇米777欧美一区二区| 免费精品视频在线| 日韩二区三区在线观看| 一级女性全黄久久生活片免费| 国产情人综合久久777777| 欧美大黄免费观看| 久久一区二区三区国产精品| 欧美一区二区国产| 欧美一区二区观看视频| 在线电影国产精品| 91精品中文字幕一区二区三区| 欧美日韩综合一区| 欧美视频一区二区三区四区| 久久99蜜桃精品| 亚洲国产精品精华液网站| 69精品人人人人| 国产一区二区电影| 亚洲人成网站色在线观看| 欧美日韩免费在线视频| 久久99精品久久久久久动态图| 日韩一二三区视频| 欧美剧情电影在线观看完整版免费励志电影 | 波多野结衣中文一区| 91国产免费观看| 欧美无砖专区一中文字| 91福利精品视频| 99精品国产热久久91蜜凸| 99久久99久久免费精品蜜臀| 成人午夜大片免费观看| www.一区二区| 日本高清视频一区二区| 精品一区二区三区欧美| 精品国产麻豆免费人成网站| 制服丝袜中文字幕亚洲| 91亚洲国产成人精品一区二三 | 久久综合网色—综合色88| 成人在线综合网| 午夜a成v人精品| 国产三级精品在线| 欧美成人乱码一区二区三区| 欧美在线免费播放| 日韩免费高清电影| 99久久99久久久精品齐齐| 国产精品夜夜嗨| 亚洲激情av在线| 91超碰这里只有精品国产| 欧美三级三级三级| 欧美不卡一区二区三区四区| 91亚洲精品久久久蜜桃| 亚洲黄色免费电影| 欧美成人在线直播| 91久久精品一区二区| 精品一区二区三区欧美| 中文字幕+乱码+中文字幕一区| 日韩欧美电影一区| 久久综合九色综合97_久久久| 精品国产乱码久久久久久闺蜜 | 国产电影一区在线| 亚洲欧美色图小说| 国产精品毛片大码女人| 久久久久久久综合日本| 一区二区三区视频在线观看 | 久久久亚洲欧洲日产国码αv| 精品久久人人做人人爰| 国产欧美中文在线| 一区二区三区中文在线观看| 免费人成精品欧美精品| 国产大陆a不卡| 色婷婷久久久久swag精品| 欧美久久久久久蜜桃| 久久品道一品道久久精品| 国产精品国产馆在线真实露脸| 午夜免费久久看| 粉嫩av一区二区三区| 欧美亚洲综合另类| 国产日韩欧美综合在线| 亚洲成人激情自拍| 青青草成人在线观看| 国产在线不卡一区| 欧美日韩精品一区二区在线播放| 精品福利av导航| 午夜精品一区二区三区免费视频| 丁香婷婷综合网| 日韩美女主播在线视频一区二区三区 | 一区二区三区欧美在线观看| 久久国产人妖系列| 色综合久久久久综合体| 久久久久久一二三区| 午夜不卡av在线| 91捆绑美女网站| 欧美国产视频在线| 91麻豆国产福利精品| 精品国产免费人成电影在线观看四季| 大尺度一区二区| 久久精品亚洲麻豆av一区二区 | 国产精品久久久久久亚洲伦| 一二三区精品福利视频| 884aa四虎影成人精品一区| 成人午夜激情片| 在线观看日韩毛片| 国产精品白丝在线|