⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 connectionproperties.java

📁 在资料浩瀚的互联网中
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
            "3.0.10", PERFORMANCE_CATEGORY, 11);    private IntegerConnectionProperty queriesBeforeRetryMaster = new IntegerConnectionProperty("queriesBeforeRetryMaster",            50, 1, Integer.MAX_VALUE,            "Number of queries to issue before falling back to master when failed over " +            "(when using multi-host failover). Whichever condition is met first, " +            "'queriesBeforeRetryMaster' or 'secondsBeforeRetryMaster' will cause an " +            "attempt to be made to reconnect to the master. Defaults to 50.",            "3.0.2", HA_CATEGORY, 7);    private IntegerConnectionProperty reportMetricsIntervalMillis = new IntegerConnectionProperty("reportMetricsIntervalMillis",            30000, 0, Integer.MAX_VALUE,            "If 'gatherPerfMetrics' is enabled, how often should they be logged (in ms)?",            "3.1.2", DEBUGING_PROFILING_CATEGORY, 3);    private IntegerConnectionProperty secondsBeforeRetryMaster = new IntegerConnectionProperty("secondsBeforeRetryMaster",            30, 1, Integer.MAX_VALUE,            "How long should the driver wait, when failed over, before attempting " +            "to reconnect to the master server? Whichever condition is met first, " +            "'queriesBeforeRetryMaster' or 'secondsBeforeRetryMaster' will cause an " +            "attempt to be made to reconnect to the master. Time in seconds, defaults to 30",            "3.0.2", HA_CATEGORY, 8);    private IntegerConnectionProperty slowQueryThresholdMillis = new IntegerConnectionProperty("slowQueryThresholdMillis",            2000, 0, Integer.MAX_VALUE,            "If 'logSlowQueries' is enabled, how long should a query (in ms) before it is logged as 'slow'?",            "3.1.2", DEBUGING_PROFILING_CATEGORY, 9);    private IntegerConnectionProperty socketTimeout = new IntegerConnectionProperty("socketTimeout",            0, 0, Integer.MAX_VALUE,            "Timeout on network socket operations (0, the default means no timeout).",            "3.0.1", CONNECTION_AND_AUTH_CATEGORY, 10);    private String characterEncodingAsString = null;    private StringConnectionProperty characterEncoding = new StringConnectionProperty("characterEncoding",            null,            "If 'useUnicode' is set to true, what character encoding should the driver use when dealing with strings? (defaults is to 'autodetect')",            "1.1g", MISC_CATEGORY, 5);    private StringConnectionProperty characterSetResults = new StringConnectionProperty("characterSetResults",            null, "Character set to tell the server to return results as.",            "3.0.13", MISC_CATEGORY, 6);    private StringConnectionProperty connectionCollation = new StringConnectionProperty("connectionCollation",            null,            "If set, tells the server to use this collation via 'set connection_collation'",            "3.0.13", MISC_CATEGORY, 7);    private StringConnectionProperty loggerClassName = new StringConnectionProperty("logger",            StandardLogger.class.getName(),            "The name of a class that implements '" + Log.class.getName() +            "' that will be used to log messages to." + "(default is '" +            StandardLogger.class.getName() + "', which " + "logs to STDERR)",            "3.1.1", DEBUGING_PROFILING_CATEGORY, 0);    private StringConnectionProperty profileSql = new StringConnectionProperty("profileSql",            null,            "Deprecated, use 'profileSQL' instead. Trace queries and their execution/fetch times on STDERR (true/false) defaults to 'false'",            "2.0.14", DEBUGING_PROFILING_CATEGORY, 3);    private StringConnectionProperty serverTimezone = new StringConnectionProperty("serverTimezone",            null,            "Override detection/mapping of timezone. Used when timezone from server doesn't map to Java timezone",            "3.0.2", MISC_CATEGORY, Integer.MIN_VALUE);    private StringConnectionProperty socketFactoryClassName = new StringConnectionProperty("socketFactory",            StandardSocketFactory.class.getName(),            "The name of the class that the driver should use for creating socket connections to the server. This class must implement the interface 'com.mysql.jdbc.SocketFactory' and have public no-args constructor.",            "3.0.3", CONNECTION_AND_AUTH_CATEGORY, 4);    private StringConnectionProperty zeroDateTimeBehavior = new StringConnectionProperty("zeroDateTimeBehavior",     		ZERO_DATETIME_BEHAVIOR_EXCEPTION, 			new String[] {ZERO_DATETIME_BEHAVIOR_EXCEPTION,     			ZERO_DATETIME_BEHAVIOR_ROUND, 				ZERO_DATETIME_BEHAVIOR_CONVERT_TO_NULL}, 			"What should happen when the driver encounters DATETIME values that are composed " 			+ "entirely of zeroes (used by MySQL to represent invalid dates)? "			+ "Valid values are '" + ZERO_DATETIME_BEHAVIOR_EXCEPTION + "', '" 			+ ZERO_DATETIME_BEHAVIOR_ROUND + "' and '" 			+ ZERO_DATETIME_BEHAVIOR_CONVERT_TO_NULL + "'." , 			"3.1.4", MISC_CATEGORY, Integer.MIN_VALUE);        private boolean autoReconnectForPoolsAsBoolean = false;    private boolean cacheResultSetMetaDataAsBoolean;    private boolean highAvailabilityAsBoolean = false;    private boolean profileSQLAsBoolean = false;    private boolean reconnectTxAtEndAsBoolean = false;    // Cache these values, they are 'hot'    private boolean useUnicodeAsBoolean = true;    private boolean useUsageAdvisorAsBoolean = false;    private int maxRowsAsInt = -1;    private boolean useOldUTF8BehaviorAsBoolean = false;    /**     * DOCUMENT ME!     *     * @param property     */    public void setAllowLoadLocalInfile(boolean property) {        this.allowLoadLocalInfile.setValue(property);    }    /**     * DOCUMENT ME!     *     * @return     */    public boolean getAllowLoadLocalInfile() {        return this.allowLoadLocalInfile.getValueAsBoolean();    }    /**     * DOCUMENT ME!     *     * @param property     */    public void setAllowMultiQueries(boolean property) {        this.allowMultiQueries.setValue(property);    }    /**     * DOCUMENT ME!     *     * @return     */    public boolean getAllowMultiQueries() {        return this.allowMultiQueries.getValueAsBoolean();    }    /**     * DOCUMENT ME!     *     * @param flag The autoReconnect to set.     */    public void setAutoReconnect(boolean flag) {        this.autoReconnect.setValue(flag);    }    /**     * DOCUMENT ME!     *     * @param property     */    public void setAutoReconnectForConnectionPools(boolean property) {        this.autoReconnectForPools.setValue(property);        this.autoReconnectForPoolsAsBoolean = this.autoReconnectForPools.getValueAsBoolean();    }    /**     * DOCUMENT ME!     *     * @param flag The autoReconnectForPools to set.     */    public void setAutoReconnectForPools(boolean flag) {        this.autoReconnectForPools.setValue(flag);    }    /**     * DOCUMENT ME!     *     * @return     */    public boolean getAutoReconnectForPools() {        return this.autoReconnectForPoolsAsBoolean;    }    /**     * DOCUMENT ME!     *     * @param flag The cacheCallableStatements to set.     */    public void setCacheCallableStatements(boolean flag) {        this.cacheCallableStatements.setValue(flag);    }    /**     * DOCUMENT ME!     *     * @return Returns if cacheCallableStatements is enabled     */    public boolean getCacheCallableStatements() {        return this.cacheCallableStatements.getValueAsBoolean();    }    /**     * DOCUMENT ME!     *     * @param flag The cachePreparedStatements to set.     */    public void setCachePreparedStatements(boolean flag) {        this.cachePreparedStatements.setValue(flag);    }    /**     * DOCUMENT ME!     *     * @return Returns the cachePreparedStatements.     */    public boolean getCachePreparedStatements() {        return ((Boolean) this.cachePreparedStatements.getValueAsObject()).booleanValue();    }    /**     * Sets whether or not we should cache result set metadata.     *     * @param property     */    public void setCacheResultSetMetadata(boolean property) {        this.cacheResultSetMetadata.setValue(property);        this.cacheResultSetMetaDataAsBoolean = this.cacheResultSetMetadata.getValueAsBoolean();    }    /**     * DOCUMENT ME!     *     * @return DOCUMENT ME!     */    public boolean getCacheResultSetMetadata() {        return this.cacheResultSetMetaDataAsBoolean;    }    /**     * Configures the number of callable statements to cache. (this is     * configurable during the life of the connection).     *     * @param size The callableStatementCacheSize to set.     */    public void setCallableStatementCacheSize(int size) {        this.callableStatementCacheSize.setValue(size);    }    /**     * DOCUMENT ME!     *     * @return Returns the callableStatementCacheSize.     */    public int getCallableStatementCacheSize() {        return this.callableStatementCacheSize.getValueAsInt();    }    /**     * DOCUMENT ME!     *     * @param property     */    public void setCapitalizeDBMDTypes(boolean property) {        this.capitalizeTypeNames.setValue(property);    }    /**     * DOCUMENT ME!     *     * @param flag The capitalizeTypeNames to set.     */    public void setCapitalizeTypeNames(boolean flag) {        this.capitalizeTypeNames.setValue(flag);    }    /**     * DOCUMENT ME!     *     * @return     */    public boolean getCapitalizeTypeNames() {        return this.capitalizeTypeNames.getValueAsBoolean();    }    /**     * DOCUMENT ME!     *     * @param encoding The characterEncoding to set.     */    public void setCharacterEncoding(String encoding) {        this.characterEncoding.setValue(encoding);    }    /**     * DOCUMENT ME!     *     * @param characterSet The characterSetResults to set.     */    public void setCharacterSetResults(String characterSet) {        this.characterSetResults.setValue(characterSet);    }    /**     * DOCUMENT ME!     *     * @return Returns the characterSetResults.     */    public String getCharacterSetResults() {        return this.characterSetResults.getValueAsString();    }    /**     * DOCUMENT ME!     *     * @param flag The clobberStreamingResults to set.     */    public void setClobberStreamingResults(boolean flag) {        this.clobberStreamingResults.setValue(flag);    }    /**     * DOCUMENT ME!     *     * @return Returns the clobberStreamingResults.     */    public boolean getClobberStreamingResults() {        return this.clobberStreamingResults.getValueAsBoolean();    }    /**     * DOCUMENT ME!     *     * @param timeoutMs     */    public void setConnectTimeout(int timeoutMs) {        this.connectTimeout.setValue(timeoutMs);    }    /**     * DOCUMENT ME!     *     * @return     */    public int getConnectTimeout() {        return this.connectTimeout.getValueAsInt();    }    /**     * DOCUMENT ME!     *     * @param collation The connectionCollation to set.     */    public void setConnectionCollation(String collation) {        this.connectionCollation.setValue(collation);    }    /**     * DOCUMENT ME!     *     * @return Returns the connectionCollation.     */    public String getConnectionCollation() {        return this.connectionCollation.getValueAsString();    }    /**     * DOCUMENT ME!     *     * @param property     */    public void setContinueBatchOnError(boolean property) {        this.continueBatchOnError.setValue(property);    }    /**     * DOCUMENT ME!     *     * @return     */    public boolean getContinueBatchOnError() {        return this.continueBatchOnError.getValueAsBoolean();    }    /**     * DOCUMENT ME!     *     * @param property     */    public void setDetectServerPreparedStmts(boolean property) {        this.detectServerPreparedStmts.setValue(property);    }    /**     * DOCUMENT ME!     *     * @param flag The dumpQueriesOnException to set.     */    public void setDumpQueriesOnException(boolean flag) {        this.dumpQueriesOnException.setValue(flag);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -