content: /*
   * Decompiled with CFR 0.153-SNAPSHOT (d6f6758-dirty).
   */
  package com.mysql.cj.conf;
  
  import com.mysql.cj.Messages;
  import com.mysql.cj.PerConnectionLRUFactory;
  import com.mysql.cj.conf.BooleanPropertyDefinition;
  import com.mysql.cj.conf.EnumPropertyDefinition;
  import com.mysql.cj.conf.IntegerPropertyDefinition;
  import com.mysql.cj.conf.LongPropertyDefinition;
  import com.mysql.cj.conf.MemorySizePropertyDefinition;
  import com.mysql.cj.conf.PropertyDefinition;
  import com.mysql.cj.conf.RuntimeProperty;
  import com.mysql.cj.conf.StringPropertyDefinition;
  import com.mysql.cj.exceptions.ExceptionFactory;
  import com.mysql.cj.exceptions.WrongArgumentException;
  import com.mysql.cj.log.Log;
  import com.mysql.cj.log.StandardLogger;
  import com.mysql.cj.util.PerVmServerConfigCacheFactory;
  import java.util.Arrays;
  import java.util.Collections;
  import java.util.HashMap;
  import java.util.Map;
  import java.util.TreeMap;
  
  public class PropertyDefinitions {
      public static final String SYSP_line_separator = "line.separator";
      public static final String SYSP_java_vendor = "java.vendor";
      public static final String SYSP_java_version = "java.version";
      public static final String SYSP_java_vm_vendor = "java.vm.vendor";
      public static final String SYSP_os_name = "os.name";
      public static final String SYSP_os_arch = "os.arch";
      public static final String SYSP_os_version = "os.version";
      public static final String SYSP_file_encoding = "file.encoding";
      public static final String SYSP_testsuite_url = "com.mysql.cj.testsuite.url";
      public static final String SYSP_testsuite_url_admin = "com.mysql.cj.testsuite.url.admin";
      public static final String SYSP_testsuite_url_cluster = "com.mysql.cj.testsuite.url.cluster";
      public static final String SYSP_testsuite_url_openssl = "com.mysql.cj.testsuite.url.openssl";
      public static final String SYSP_testsuite_url_mysqlx = "com.mysql.cj.testsuite.mysqlx.url";
      public static final String SYSP_testsuite_url_mysqlx_openssl = "com.mysql.cj.testsuite.mysqlx.url.openssl";
      public static final String SYSP_testsuite_cantGrant = "com.mysql.cj.testsuite.cantGrant";
      public static final String SYSP_testsuite_disable_multihost_tests = "com.mysql.cj.testsuite.disable.multihost.tests";
      public static final String SYSP_testsuite_ds_host = "com.mysql.cj.testsuite.ds.host";
      public static final String SYSP_testsuite_ds_port = "com.mysql.cj.testsuite.ds.port";
      public static final String SYSP_testsuite_ds_db = "com.mysql.cj.testsuite.ds.db";
      public static final String SYSP_testsuite_ds_user = "com.mysql.cj.testsuite.ds.user";
      public static final String SYSP_testsuite_ds_password = "com.mysql.cj.testsuite.ds.password";
      public static final String SYSP_testsuite_loadstoreperf_tabletype = "com.mysql.cj.testsuite.loadstoreperf.tabletype";
      public static final String SYSP_testsuite_loadstoreperf_useBigResults = "com.mysql.cj.testsuite.loadstoreperf.useBigResults";
      public static final String SYSP_testsuite_miniAdminTest_runShutdown = "com.mysql.cj.testsuite.miniAdminTest.runShutdown";
      public static final String SYSP_testsuite_noDebugOutput = "com.mysql.cj.testsuite.noDebugOutput";
      public static final String SYSP_testsuite_retainArtifacts = "com.mysql.cj.testsuite.retainArtifacts";
      public static final String SYSP_testsuite_runLongTests = "com.mysql.cj.testsuite.runLongTests";
      public static final String SYSP_testsuite_serverController_basedir = "com.mysql.cj.testsuite.serverController.basedir";
      public static final String NAMED_PIPE_PROP_NAME = "namedPipePath";
      public static final String CATEGORY_AUTH = Messages.getString("ConnectionProperties.categoryAuthentication");
      public static final String CATEGORY_CONNECTION = Messages.getString("ConnectionProperties.categoryConnection");
      public static final String CATEGORY_SESSION = Messages.getString("ConnectionProperties.categorySession");
      public static final String CATEGORY_NETWORK = Messages.getString("ConnectionProperties.categoryNetworking");
      public static final String CATEGORY_SECURITY = Messages.getString("ConnectionProperties.categorySecurity");
      public static final String CATEGORY_STATEMENTS = Messages.getString("ConnectionProperties.categoryStatements");
      public static final String CATEGORY_PREPARED_STATEMENTS = Messages.getString("ConnectionProperties.categoryPreparedStatements");
      public static final String CATEGORY_RESULT_SETS = Messages.getString("ConnectionProperties.categoryResultSets");
      public static final String CATEGORY_METADATA = Messages.getString("ConnectionProperties.categoryMetadata");
      public static final String CATEGORY_BLOBS = Messages.getString("ConnectionProperties.categoryBlobs");
      public static final String CATEGORY_DATETIMES = Messages.getString("ConnectionProperties.categoryDatetimes");
      public static final String CATEGORY_HA = Messages.getString("ConnectionProperties.categoryHA");
      public static final String CATEGORY_PERFORMANCE = Messages.getString("ConnectionProperties.categoryPerformance");
      public static final String CATEGORY_DEBUGING_PROFILING = Messages.getString("ConnectionProperties.categoryDebuggingProfiling");
      public static final String CATEGORY_EXCEPTIONS = Messages.getString("ConnectionProperties.categoryExceptions");
      public static final String CATEGORY_INTEGRATION = Messages.getString("ConnectionProperties.categoryIntegration");
      public static final String CATEGORY_JDBC = Messages.getString("ConnectionProperties.categoryJDBC");
      public static final String CATEGORY_XDEVAPI = Messages.getString("ConnectionProperties.categoryXDevAPI");
      public static final String CATEGORY_USER_DEFINED = Messages.getString("ConnectionProperties.categoryUserDefined");
      public static final String[] PROPERTY_CATEGORIES = new String[]{CATEGORY_AUTH, CATEGORY_CONNECTION, CATEGORY_SESSION, CATEGORY_NETWORK, CATEGORY_SECURITY, CATEGORY_STATEMENTS, CATEGORY_PREPARED_STATEMENTS, CATEGORY_RESULT_SETS, CATEGORY_METADATA, CATEGORY_BLOBS, CATEGORY_DATETIMES, CATEGORY_HA, CATEGORY_PERFORMANCE, CATEGORY_DEBUGING_PROFILING, CATEGORY_EXCEPTIONS, CATEGORY_INTEGRATION, CATEGORY_JDBC, CATEGORY_XDEVAPI};
      public static final boolean DEFAULT_VALUE_TRUE = true;
      public static final boolean DEFAULT_VALUE_FALSE = false;
      public static final String DEFAULT_VALUE_NULL_STRING = null;
      public static final String NO_ALIAS = null;
      public static final boolean RUNTIME_MODIFIABLE = true;
      public static final boolean RUNTIME_NOT_MODIFIABLE = false;
      public static final Map<String, PropertyDefinition<?>> PROPERTY_NAME_TO_PROPERTY_DEFINITION;
      public static final String PNAME_paranoid = "paranoid";
      public static final String PNAME_passwordCharacterEncoding = "passwordCharacterEncoding";
      public static final String PNAME_serverRSAPublicKeyFile = "serverRSAPublicKeyFile";
      public static final String PNAME_allowPublicKeyRetrieval = "allowPublicKeyRetrieval";
      public static final String PNAME_clientCertificateKeyStoreUrl = "clientCertificateKeyStoreUrl";
      public static final String PNAME_trustCertificateKeyStoreUrl = "trustCertificateKeyStoreUrl";
      public static final String PNAME_clientCertificateKeyStoreType = "clientCertificateKeyStoreType";
      public static final String PNAME_clientCertificateKeyStorePassword = "clientCertificateKeyStorePassword";
      public static final String PNAME_trustCertificateKeyStoreType = "trustCertificateKeyStoreType";
      public static final String PNAME_trustCertificateKeyStorePassword = "trustCertificateKeyStorePassword";
      public static final String PNAME_verifyServerCertificate = "verifyServerCertificate";
      public static final String PNAME_enabledSSLCipherSuites = "enabledSSLCipherSuites";
      public static final String PNAME_enabledTLSProtocols = "enabledTLSProtocols";
      public static final String PNAME_useUnbufferedInput = "useUnbufferedInput";
      public static final String PNAME_profilerEventHandler = "profilerEventHandler";
      public static final String PNAME_allowLoadLocalInfile = "allowLoadLocalInfile";
      public static final String PNAME_allowMultiQueries = "allowMultiQueries";
      public static final String PNAME_allowNanAndInf = "allowNanAndInf";
      public static final String PNAME_allowUrlInLocalInfile = "allowUrlInLocalInfile";
      public static final String PNAME_alwaysSendSetIsolation = "alwaysSendSetIsolation";
      public static final String PNAME_autoClosePStmtStreams = "autoClosePStmtStreams";
      public static final String PNAME_allowMasterDownConnections = "allowMasterDownConnections";
      public static final String PNAME_allowSlaveDownConnections = "allowSlaveDownConnections";
      public static final String PNAME_readFromMasterWhenNoSlaves = "readFromMasterWhenNoSlaves";
      public static final String PNAME_autoDeserialize = "autoDeserialize";
      public static final String PNAME_autoGenerateTestcaseScript = "autoGenerateTestcaseScript";
      public static final String PNAME_autoReconnect = "autoReconnect";
      public static final String PNAME_autoReconnectForPools = "autoReconnectForPools";
      public static final String PNAME_blobSendChunkSize = "blobSendChunkSize";
      public static final String PNAME_autoSlowLog = "autoSlowLog";
      public static final String PNAME_blobsAreStrings = "blobsAreStrings";
      public static final String PNAME_functionsNeverReturnBlobs = "functionsNeverReturnBlobs";
      public static final String PNAME_cacheCallableStmts = "cacheCallableStmts";
      public static final String PNAME_cachePrepStmts = "cachePrepStmts";
      public static final String PNAME_cacheResultSetMetadata = "cacheResultSetMetadata";
      public static final String PNAME_serverConfigCacheFactory = "serverConfigCacheFactory";
      public static final String PNAME_cacheServerConfiguration = "cacheServerConfiguration";
      public static final String PNAME_callableStmtCacheSize = "callableStmtCacheSize";
      public static final String PNAME_characterEncoding = "characterEncoding";
      public static final String PNAME_characterSetResults = "characterSetResults";
      public static final String PNAME_connectionAttributes = "connectionAttributes";
      public static final String PNAME_clientInfoProvider = "clientInfoProvider";
      public static final String PNAME_clobberStreamingResults = "clobberStreamingResults";
      public static final String PNAME_clobCharacterEncoding = "clobCharacterEncoding";
      public static final String PNAME_compensateOnDuplicateKeyUpdateCounts = "compensateOnDuplicateKeyUpdateCounts";
      public static final String PNAME_connectionCollation = "connectionCollation";
      public static final String PNAME_connectionLifecycleInterceptors = "connectionLifecycleInterceptors";
      public static final String PNAME_connectTimeout = "connectTimeout";
      public static final String PNAME_continueBatchOnError = "continueBatchOnError";
      public static final String PNAME_createDatabaseIfNotExist = "createDatabaseIfNotExist";
      public static final String PNAME_defaultFetchSize = "defaultFetchSize";
      public static final String PNAME_useServerPrepStmts = "useServerPrepStmts";
      public static final String PNAME_dontTrackOpenResources = "dontTrackOpenResources";
      public static final String PNAME_dumpQueriesOnException = "dumpQueriesOnException";
      public static final String PNAME_elideSetAutoCommits = "elideSetAutoCommits";
      public static final String PNAME_emptyStringsConvertToZero = "emptyStringsConvertToZero";
      public static final String PNAME_emulateLocators = "emulateLocators";
      public static final String PNAME_emulateUnsupportedPstmts = "emulateUnsupportedPstmts";
      public static final String PNAME_enablePacketDebug = "enablePacketDebug";
      public static final String PNAME_enableQueryTimeouts = "enableQueryTimeouts";
      public static final String PNAME_explainSlowQueries = "explainSlowQueries";
      public static final String PNAME_exceptionInterceptors = "exceptionInterceptors";
      public static final String PNAME_failOverReadOnly = "failOverReadOnly";
      public static final String PNAME_gatherPerfMetrics = "gatherPerfMetrics";
      public static final String PNAME_generateSimpleParameterMetadata = "generateSimpleParameterMetadata";
      public static final String PNAME_holdResultsOpenOverStatementClose = "holdResultsOpenOverStatementClose";
      public static final String PNAME_includeInnodbStatusInDeadlockExceptions = "includeInnodbStatusInDeadlockExceptions";
      public static final String PNAME_includeThreadDumpInDeadlockExceptions = "includeThreadDumpInDeadlockExceptions";
      public static final String PNAME_includeThreadNamesAsStatementComment = "includeThreadNamesAsStatementComment";
      public static final String PNAME_ignoreNonTxTables = "ignoreNonTxTables";
      public static final String PNAME_initialTimeout = "initialTimeout";
      public static final String PNAME_interactiveClient = "interactiveClient";
      public static final String PNAME_jdbcCompliantTruncation = "jdbcCompliantTruncation";
      public static final String PNAME_largeRowSizeThreshold = "largeRowSizeThreshold";
      public static final String PNAME_loadBalanceStrategy = "ha.loadBalanceStrategy";
      public static final String PNAME_loadBalanceBlacklistTimeout = "loadBalanceBlacklistTimeout";
      public static final String PNAME_loadBalancePingTimeout = "loadBalancePingTimeout";
      public static final String PNAME_loadBalanceValidateConnectionOnSwapServer = "loadBalanceValidateConnectionOnSwapServer";
      public static final String PNAME_loadBalanceConnectionGroup = "loadBalanceConnectionGroup";
      public static final String PNAME_loadBalanceExceptionChecker = "loadBalanceExceptionChecker";
      public static final String PNAME_loadBalanceSQLStateFailover = "loadBalanceSQLStateFailover";
      public static final String PNAME_loadBalanceSQLExceptionSubclassFailover = "loadBalanceSQLExceptionSubclassFailover";
      public static final String PNAME_loadBalanceAutoCommitStatementRegex = "loadBalanceAutoCommitStatementRegex";
      public static final String PNAME_loadBalanceAutoCommitStatementThreshold = "loadBalanceAutoCommitStatementThreshold";
      public static final String PNAME_localSocketAddress = "localSocketAddress";
      public static final String PNAME_locatorFetchBufferSize = "locatorFetchBufferSize";
      public static final String PNAME_logger = "logger";
      public static final String PNAME_logSlowQueries = "logSlowQueries";
      public static final String PNAME_logXaCommands = "logXaCommands";
      public static final String PNAME_maintainTimeStats = "maintainTimeStats";
      public static final String PNAME_maxQuerySizeToLog = "maxQuerySizeToLog";
      public static final String PNAME_maxReconnects = "maxReconnects";
      public static final String PNAME_retriesAllDown = "retriesAllDown";
      public static final String PNAME_maxRows = "maxRows";
      public static final String PNAME_metadataCacheSize = "metadataCacheSize";
      public static final String PNAME_netTimeoutForStreamingResults = "netTimeoutForStreamingResults";
      public static final String PNAME_noAccessToProcedureBodies = "noAccessToProcedureBodies";
      public static final String PNAME_noDatetimeStringSync = "noDatetimeStringSync";
      public static final String PNAME_nullCatalogMeansCurrent = "nullCatalogMeansCurrent";
      public static final String PNAME_packetDebugBufferSize = "packetDebugBufferSize";
      public static final String PNAME_padCharsWithSpace = "padCharsWithSpace";
      public static final String PNAME_pedantic = "pedantic";
      public static final String PNAME_pinGlobalTxToPhysicalConnection = "pinGlobalTxToPhysicalConnection";
      public static final String PNAME_populateInsertRowWithDefaultValues = "populateInsertRowWithDefaultValues";
      public static final String PNAME_prepStmtCacheSize = "prepStmtCacheSize";
      public static final String PNAME_prepStmtCacheSqlLimit = "prepStmtCacheSqlLimit";
      public static final String PNAME_parseInfoCacheFactory = "parseInfoCacheFactory";
      public static final String PNAME_processEscapeCodesForPrepStmts = "processEscapeCodesForPrepStmts";
      public static final String PNAME_profileSQL = "profileSQL";
      public static final String PNAME_propertiesTransform = "propertiesTransform";
      public static final String PNAME_queriesBeforeRetryMaster = "queriesBeforeRetryMaster";
      public static final String PNAME_queryTimeoutKillsConnection = "queryTimeoutKillsConnection";
      public static final String PNAME_reconnectAtTxEnd = "reconnectAtTxEnd";
      public static final String PNAME_reportMetricsIntervalMillis = "reportMetricsIntervalMillis";
      public static final String PNAME_requireSSL = "requireSSL";
      public static final String PNAME_resourceId = "resourceId";
      public static final String PNAME_resultSetSizeThreshold = "resultSetSizeThreshold";
      public static final String PNAME_rewriteBatchedStatements = "rewriteBatchedStatements";
      public static final String PNAME_rollbackOnPooledClose = "rollbackOnPooledClose";
      public static final String PNAME_secondsBeforeRetryMaster = "secondsBeforeRetryMaster";
      public static final String PNAME_selfDestructOnPingSecondsLifetime = "selfDestructOnPingSecondsLifetime";
      public static final String PNAME_selfDestructOnPingMaxOperations = "selfDestructOnPingMaxOperations";
      public static final String PNAME_ha_enableJMX = "ha.enableJMX";
      public static final String PNAME_loadBalanceHostRemovalGracePeriod = "loadBalanceHostRemovalGracePeriod";
      public static final String PNAME_serverTimezone = "serverTimezone";
      public static final String PNAME_sessionVariables = "sessionVariables";
      public static final String PNAME_slowQueryThresholdMillis = "slowQueryThresholdMillis";
      public static final String PNAME_slowQueryThresholdNanos = "slowQueryThresholdNanos";
      public static final String PNAME_socketFactory = "socketFactory";
      public static final String PNAME_socksProxyHost = "socksProxyHost";
      public static final String PNAME_socksProxyPort = "socksProxyPort";
      public static final String PNAME_socketTimeout = "socketTimeout";
      public static final String PNAME_queryInterceptors = "queryInterceptors";
      public static final String PNAME_strictUpdates = "strictUpdates";
      public static final String PNAME_overrideSupportsIntegrityEnhancementFacility = "overrideSupportsIntegrityEnhancementFacility";
      public static final String PNAME_tcpNoDelay = "tcpNoDelay";
      public static final String PNAME_tcpKeepAlive = "tcpKeepAlive";
      public static final String PNAME_tcpRcvBuf = "tcpRcvBuf";
      public static final String PNAME_tcpSndBuf = "tcpSndBuf";
      public static final String PNAME_tcpTrafficClass = "tcpTrafficClass";
      public static final String PNAME_tinyInt1isBit = "tinyInt1isBit";
      public static final String PNAME_traceProtocol = "traceProtocol";
      public static final String PNAME_treatUtilDateAsTimestamp = "treatUtilDateAsTimestamp";
      public static final String PNAME_transformedBitIsBoolean = "transformedBitIsBoolean";
      public static final String PNAME_useCompression = "useCompression";
      public static final String PNAME_useColumnNamesInFindColumn = "useColumnNamesInFindColumn";
      public static final String PNAME_useConfigs = "useConfigs";
      public static final String PNAME_useCursorFetch = "useCursorFetch";
      public static final String PNAME_useHostsInPrivileges = "useHostsInPrivileges";
      public static final String PNAME_useInformationSchema = "useInformationSchema";
      public static final String PNAME_useLocalSessionState = "useLocalSessionState";
      public static final String PNAME_useLocalTransactionState = "useLocalTransactionState";
      public static final String PNAME_sendFractionalSeconds = "sendFractionalSeconds";
      public static final String PNAME_useNanosForElapsedTime = "useNanosForElapsedTime";
      public static final String PNAME_useOldAliasMetadataBehavior = "useOldAliasMetadataBehavior";
      public static final String PNAME_useOldUTF8Behavior = "useOldUTF8Behavior";
      public static final String PNAME_useOnlyServerErrorMessages = "useOnlyServerErrorMessages";
      public static final String PNAME_useReadAheadInput = "useReadAheadInput";
      public static final String PNAME_useSSL = "useSSL";
      public static final String PNAME_useStreamLengthsInPrepStmts = "useStreamLengthsInPrepStmts";
      public static final String PNAME_ultraDevHack = "ultraDevHack";
      public static final String PNAME_useUsageAdvisor = "useUsageAdvisor";
      public static final String PNAME_yearIsDateType = "yearIsDateType";
      public static final String PNAME_zeroDateTimeBehavior = "zeroDateTimeBehavior";
      public static final String PNAME_useAffectedRows = "useAffectedRows";
      public static final String PNAME_maxAllowedPacket = "maxAllowedPacket";
      public static final String PNAME_authenticationPlugins = "authenticationPlugins";
      public static final String PNAME_disabledAuthenticationPlugins = "disabledAuthenticationPlugins";
      public static final String PNAME_defaultAuthenticationPlugin = "defaultAuthenticationPlugin";
      public static final String PNAME_disconnectOnExpiredPasswords = "disconnectOnExpiredPasswords";
      public static final String PNAME_getProceduresReturnsFunctions = "getProceduresReturnsFunctions";
      public static final String PNAME_detectCustomCollations = "detectCustomCollations";
      public static final String PNAME_dontCheckOnDuplicateKeyUpdateInSQL = "dontCheckOnDuplicateKeyUpdateInSQL";
      public static final String PNAME_readOnlyPropagatesToServer = "readOnlyPropagatesToServer";
      public static final String PNAME_replicationConnectionGroup = "replicationConnectionGroup";
      public static final String PNAME_useAsyncProtocol = "xdevapi.useAsyncProtocol";
      public static final String PNAME_sslMode = "xdevapi.ssl-mode";
      public static final String PNAME_sslTrustStoreUrl = "xdevapi.ssl-truststore";
      public static final String PNAME_sslTrustStoreType = "xdevapi.ssl-truststore-type";
      public static final String PNAME_sslTrustStorePassword = "xdevapi.ssl-truststore-password";
      public static final String PNAME_asyncResponseTimeout = "xdevapi.asyncResponseTimeout";
      public static final String PNAME_auth = "xdevapi.auth";
      public static final String PNAME_enableEscapeProcessing = "enableEscapeProcessing";
      public static final String PNAME_serverAffinityOrder = "serverAffinityOrder";
      public static final String PNAME_resultSetScannerRegex = "resultSetScannerRegex";
      public static final String PNAME_clientInfoSetSPName = "clientInfoSetSPName";
      public static final String PNAME_clientInfoGetSPName = "clientInfoGetSPName";
      public static final String PNAME_clientInfoGetBulkSPName = "clientInfoGetBulkSPName";
      public static final String PNAME_clientInfoCatalog = "clientInfoCatalog";
      public static final String PNAME_autoConfigureForColdFusion = "autoConfigureForColdFusion";
      public static final String PNAME_testsuite_faultInjection_serverCharsetIndex = "com.mysql.cj.testsuite.faultInjection.serverCharsetIndex";
      private static final String STANDARD_LOGGER_NAME;
  
      public static PropertyDefinition<?> getPropertyDefinition(String propertyName) {
          return PROPERTY_NAME_TO_PROPERTY_DEFINITION.get(propertyName);
      }
  
      public static RuntimeProperty<?> createRuntimeProperty(String propertyName) {
          PropertyDefinition<?> pdef = PropertyDefinitions.getPropertyDefinition(propertyName);
          if (pdef != null) {
              return pdef.createRuntimeProperty();
          }
          throw ExceptionFactory.createException(WrongArgumentException.class, "Connection property definition is not found for '" + propertyName + "'");
      }
  
      public static String exposeAsXml() {
          StringBuilder xmlBuf = new StringBuilder();
          xmlBuf.append("<ConnectionProperties>");
          int numCategories = PROPERTY_CATEGORIES.length;
          HashMap<String, XmlMap> propertyListByCategory = new HashMap<String, XmlMap>();
          for (int i = 0; i < numCategories; ++i) {
              propertyListByCategory.put(PROPERTY_CATEGORIES[i], new XmlMap());
          }
          StringPropertyDefinition userDef = new StringPropertyDefinition(PropertyKey.USER.getKeyName(), NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.Username"), Messages.getString("ConnectionProperties.allVersions"), CATEGORY_AUTH, -2147483647);
          StringPropertyDefinition passwordDef = new StringPropertyDefinition(PropertyKey.PASSWORD.getKeyName(), NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.Password"), Messages.getString("ConnectionProperties.allVersions"), CATEGORY_AUTH, -2147483646);
          XmlMap connectionSortMaps = (XmlMap)propertyListByCategory.get(CATEGORY_AUTH);
          TreeMap<String, StringPropertyDefinition> userMap = new TreeMap<String, StringPropertyDefinition>();
          userMap.put(userDef.getName(), userDef);
          connectionSortMaps.ordered.put(userDef.getOrder(), userMap);
          TreeMap<String, StringPropertyDefinition> passwordMap = new TreeMap<String, StringPropertyDefinition>();
          passwordMap.put(passwordDef.getName(), passwordDef);
          connectionSortMaps.ordered.put(new Integer(passwordDef.getOrder()), passwordMap);
          for (PropertyDefinition<?> pdef : PROPERTY_NAME_TO_PROPERTY_DEFINITION.values()) {
              XmlMap sortMaps = (XmlMap)propertyListByCategory.get(pdef.getCategory());
              int n = pdef.getOrder();
              if (n == Integer.MIN_VALUE) {
                  sortMaps.alpha.put(pdef.getName(), pdef);
                  continue;
              }
              Integer order = n;
              Map<String, PropertyDefinition<?>> orderMap = sortMaps.ordered.get(order);
              if (orderMap == null) {
                  orderMap = new TreeMap();
                  sortMaps.ordered.put(order, orderMap);
              }
              orderMap.put(pdef.getName(), pdef);
          }
          for (int j = 0; j < numCategories; ++j) {
              XmlMap sortMaps = (XmlMap)propertyListByCategory.get(PROPERTY_CATEGORIES[j]);
              xmlBuf.append("\n <PropertyCategory name=\"");
              xmlBuf.append(PROPERTY_CATEGORIES[j]);
              xmlBuf.append("\">");
              for (Map<String, PropertyDefinition<?>> map : sortMaps.ordered.values()) {
                  for (PropertyDefinition<?> pdef : map.values()) {
                      xmlBuf.append("\n  <Property name=\"");
                      xmlBuf.append(pdef.getName());
                      xmlBuf.append("\" default=\"");
                      if (pdef.getDefaultValue() != null) {
                          xmlBuf.append(pdef.getDefaultValue());
                      }
                      xmlBuf.append("\" sortOrder=\"");
                      xmlBuf.append(pdef.getOrder());
                      xmlBuf.append("\" since=\"");
                      xmlBuf.append(pdef.getSinceVersion());
                      xmlBuf.append("\">\n");
                      xmlBuf.append("    ");
                      String escapedDescription = pdef.getDescription();
                      escapedDescription = escapedDescription.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;");
                      xmlBuf.append(escapedDescription);
                      xmlBuf.append("\n  </Property>");
                  }
              }
              for (PropertyDefinition propertyDefinition : sortMaps.alpha.values()) {
                  xmlBuf.append("\n  <Property name=\"");
                  xmlBuf.append(propertyDefinition.getName());
                  xmlBuf.append("\" default=\"");
                  if (propertyDefinition.getDefaultValue() != null) {
                      xmlBuf.append(propertyDefinition.getDefaultValue());
                  }
                  xmlBuf.append("\" sortOrder=\"alpha\" since=\"");
                  xmlBuf.append(propertyDefinition.getSinceVersion());
                  xmlBuf.append("\">\n");
                  xmlBuf.append("    ");
                  xmlBuf.append(propertyDefinition.getDescription());
                  xmlBuf.append("\n  </Property>");
              }
              xmlBuf.append("\n </PropertyCategory>");
          }
          xmlBuf.append("\n</ConnectionProperties>");
          return xmlBuf.toString();
      }
  
      static {
          STANDARD_LOGGER_NAME = StandardLogger.class.getName();
          PropertyDefinition[] pdefs = new PropertyDefinition[]{new BooleanPropertyDefinition(PNAME_paranoid, NO_ALIAS, false, false, Messages.getString("ConnectionProperties.paranoid"), "3.0.1", CATEGORY_SECURITY, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_passwordCharacterEncoding, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.passwordCharacterEncoding"), "5.1.7", CATEGORY_CONNECTION, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_serverRSAPublicKeyFile, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.serverRSAPublicKeyFile"), "5.1.31", CATEGORY_SECURITY, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_allowPublicKeyRetrieval, NO_ALIAS, false, false, Messages.getString("ConnectionProperties.allowPublicKeyRetrieval"), "5.1.31", CATEGORY_SECURITY, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_clientCertificateKeyStoreUrl, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.clientCertificateKeyStoreUrl"), "5.1.0", CATEGORY_SECURITY, 5), new StringPropertyDefinition(PNAME_trustCertificateKeyStoreUrl, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.trustCertificateKeyStoreUrl"), "5.1.0", CATEGORY_SECURITY, 8), new StringPropertyDefinition(PNAME_clientCertificateKeyStoreType, NO_ALIAS, "JKS", false, Messages.getString("ConnectionProperties.clientCertificateKeyStoreType"), "5.1.0", CATEGORY_SECURITY, 6), new StringPropertyDefinition(PNAME_clientCertificateKeyStorePassword, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.clientCertificateKeyStorePassword"), "5.1.0", CATEGORY_SECURITY, 7), new StringPropertyDefinition(PNAME_trustCertificateKeyStoreType, NO_ALIAS, "JKS", false, Messages.getString("ConnectionProperties.trustCertificateKeyStoreType"), "5.1.0", CATEGORY_SECURITY, 9), new StringPropertyDefinition(PNAME_trustCertificateKeyStorePassword, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.trustCertificateKeyStorePassword"), "5.1.0", CATEGORY_SECURITY, 10), new BooleanPropertyDefinition(PNAME_verifyServerCertificate, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.verifyServerCertificate"), "5.1.6", CATEGORY_SECURITY, 4), new StringPropertyDefinition(PNAME_enabledSSLCipherSuites, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.enabledSSLCipherSuites"), "5.1.35", CATEGORY_SECURITY, 11), new StringPropertyDefinition(PNAME_enabledTLSProtocols, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.enabledTLSProtocols"), "8.0.8", CATEGORY_SECURITY, 12), new BooleanPropertyDefinition(PNAME_useUnbufferedInput, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.useUnbufferedInput"), "3.0.11", CATEGORY_NETWORK, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_profilerEventHandler, NO_ALIAS, "com.mysql.cj.log.LoggingProfilerEventHandler", true, Messages.getString("ConnectionProperties.profilerEventHandler"), "5.1.6", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_allowLoadLocalInfile, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.loadDataLocal"), "3.0.3", CATEGORY_SECURITY, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_allowMultiQueries, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.allowMultiQueries"), "3.1.1", CATEGORY_SECURITY, 1), new BooleanPropertyDefinition(PNAME_allowNanAndInf, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.allowNANandINF"), "3.1.5", CATEGORY_PREPARED_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_allowUrlInLocalInfile, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.allowUrlInLoadLocal"), "3.1.4", CATEGORY_SECURITY, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_alwaysSendSetIsolation, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.alwaysSendSetIsolation"), "3.1.7", CATEGORY_PERFORMANCE, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_autoClosePStmtStreams, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.autoClosePstmtStreams"), "3.1.12", CATEGORY_PREPARED_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_allowMasterDownConnections, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.allowMasterDownConnections"), "5.1.27", CATEGORY_HA, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_allowSlaveDownConnections, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.allowSlaveDownConnections"), "6.0.2", CATEGORY_HA, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_readFromMasterWhenNoSlaves, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.readFromMasterWhenNoSlaves"), "6.0.2", CATEGORY_HA, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_autoDeserialize, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.autoDeserialize"), "3.1.5", CATEGORY_BLOBS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_autoGenerateTestcaseScript, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.autoGenerateTestcaseScript"), "3.1.9", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_autoReconnect, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.autoReconnect"), "1.1", CATEGORY_HA, 0), new BooleanPropertyDefinition(PNAME_autoReconnectForPools, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.autoReconnectForPools"), "3.1.3", CATEGORY_HA, 1), new MemorySizePropertyDefinition(PNAME_blobSendChunkSize, NO_ALIAS, 0x100000, true, Messages.getString("ConnectionProperties.blobSendChunkSize"), "3.1.9", CATEGORY_BLOBS, Integer.MIN_VALUE, 0, 0), new BooleanPropertyDefinition(PNAME_autoSlowLog, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.autoSlowLog"), "5.1.4", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_blobsAreStrings, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.blobsAreStrings"), "5.0.8", CATEGORY_BLOBS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_functionsNeverReturnBlobs, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.functionsNeverReturnBlobs"), "5.0.8", CATEGORY_BLOBS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_cacheCallableStmts, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.cacheCallableStatements"), "3.1.2", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_cachePrepStmts, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.cachePrepStmts"), "3.0.10", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_cacheResultSetMetadata, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.cacheRSMetadata"), "3.1.1", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_serverConfigCacheFactory, NO_ALIAS, PerVmServerConfigCacheFactory.class.getName(), true, Messages.getString("ConnectionProperties.serverConfigCacheFactory"), "5.1.1", CATEGORY_PERFORMANCE, 12), new BooleanPropertyDefinition(PNAME_cacheServerConfiguration, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.cacheServerConfiguration"), "3.1.5", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_callableStmtCacheSize, NO_ALIAS, 100, true, Messages.getString("ConnectionProperties.callableStmtCacheSize"), "3.1.2", CATEGORY_PERFORMANCE, 5, 0, Integer.MAX_VALUE), new StringPropertyDefinition(PNAME_characterEncoding, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.characterEncoding"), "1.1g", CATEGORY_SESSION, 5), new StringPropertyDefinition(PNAME_characterSetResults, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.characterSetResults"), "3.0.13", CATEGORY_SESSION, 6), new StringPropertyDefinition(PNAME_connectionAttributes, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.connectionAttributes"), "5.1.25", CATEGORY_CONNECTION, 7), new StringPropertyDefinition(PNAME_clientInfoProvider, NO_ALIAS, "com.mysql.cj.jdbc.CommentClientInfoProvider", true, Messages.getString("ConnectionProperties.clientInfoProvider"), "5.1.0", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_clobberStreamingResults, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.clobberStreamingResults"), "3.0.9", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_clobCharacterEncoding, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.clobCharacterEncoding"), "5.0.0", CATEGORY_BLOBS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_compensateOnDuplicateKeyUpdateCounts, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.compensateOnDuplicateKeyUpdateCounts"), "5.1.7", CATEGORY_PREPARED_STATEMENTS, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_connectionCollation, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.connectionCollation"), "3.0.13", CATEGORY_SESSION, 7), new StringPropertyDefinition(PNAME_connectionLifecycleInterceptors, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.connectionLifecycleInterceptors"), "5.1.4", CATEGORY_CONNECTION, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_connectTimeout, NO_ALIAS, 0, true, Messages.getString("ConnectionProperties.connectTimeout"), "3.0.1", CATEGORY_NETWORK, 9, 0, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_continueBatchOnError, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.continueBatchOnError"), "3.0.3", CATEGORY_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_createDatabaseIfNotExist, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.createDatabaseIfNotExist"), "3.1.9", CATEGORY_CONNECTION, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_defaultFetchSize, NO_ALIAS, 0, true, Messages.getString("ConnectionProperties.defaultFetchSize"), "3.1.9", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useServerPrepStmts, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useServerPrepStmts"), "3.1.0", CATEGORY_PREPARED_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_dontTrackOpenResources, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.dontTrackOpenResources"), "3.1.7", CATEGORY_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_dumpQueriesOnException, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.dumpQueriesOnException"), "3.1.3", CATEGORY_EXCEPTIONS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_elideSetAutoCommits, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.eliseSetAutoCommit"), "3.1.3", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_emptyStringsConvertToZero, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.emptyStringsConvertToZero"), "3.1.8", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_emulateLocators, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.emulateLocators"), "3.1.0", CATEGORY_BLOBS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_emulateUnsupportedPstmts, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.emulateUnsupportedPstmts"), "3.1.7", CATEGORY_PREPARED_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_enablePacketDebug, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.enablePacketDebug"), "3.1.3", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_enableQueryTimeouts, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.enableQueryTimeouts"), "5.0.6", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_explainSlowQueries, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.explainSlowQueries"), "3.1.2", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_exceptionInterceptors, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.exceptionInterceptors"), "5.1.8", CATEGORY_EXCEPTIONS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_failOverReadOnly, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.failoverReadOnly"), "3.0.12", CATEGORY_HA, 2), new BooleanPropertyDefinition(PNAME_gatherPerfMetrics, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.gatherPerfMetrics"), "3.1.2", CATEGORY_DEBUGING_PROFILING, 1), new BooleanPropertyDefinition(PNAME_generateSimpleParameterMetadata, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.generateSimpleParameterMetadata"), "5.0.5", CATEGORY_PREPARED_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_holdResultsOpenOverStatementClose, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.holdRSOpenOverStmtClose"), "3.1.7", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_includeInnodbStatusInDeadlockExceptions, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.includeInnodbStatusInDeadlockExceptions"), "5.0.7", CATEGORY_EXCEPTIONS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_includeThreadDumpInDeadlockExceptions, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.includeThreadDumpInDeadlockExceptions"), "5.1.15", CATEGORY_EXCEPTIONS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_includeThreadNamesAsStatementComment, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.includeThreadNamesAsStatementComment"), "5.1.15", CATEGORY_EXCEPTIONS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_ignoreNonTxTables, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.ignoreNonTxTables"), "3.0.9", CATEGORY_EXCEPTIONS, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_initialTimeout, NO_ALIAS, 2, false, Messages.getString("ConnectionProperties.initialTimeout"), "1.1", CATEGORY_HA, 5, 1, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_interactiveClient, NO_ALIAS, false, false, Messages.getString("ConnectionProperties.interactiveClient"), "3.1.0", CATEGORY_CONNECTION, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_jdbcCompliantTruncation, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.jdbcCompliantTruncation"), "3.1.2", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new MemorySizePropertyDefinition(PNAME_largeRowSizeThreshold, NO_ALIAS, 2048, true, Messages.getString("ConnectionProperties.largeRowSizeThreshold"), "5.1.1", CATEGORY_PERFORMANCE, Integer.MIN_VALUE, 0, Integer.MAX_VALUE), new StringPropertyDefinition(PNAME_loadBalanceStrategy, "haLoadBalanceStrategy", "random", true, Messages.getString("ConnectionProperties.loadBalanceStrategy"), "5.0.6", CATEGORY_HA, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_loadBalanceBlacklistTimeout, NO_ALIAS, 0, true, Messages.getString("ConnectionProperties.loadBalanceBlacklistTimeout"), "5.1.0", CATEGORY_HA, Integer.MIN_VALUE, 0, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_loadBalancePingTimeout, NO_ALIAS, 0, true, Messages.getString("ConnectionProperties.loadBalancePingTimeout"), "5.1.13", CATEGORY_HA, Integer.MIN_VALUE, 0, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_loadBalanceValidateConnectionOnSwapServer, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.loadBalanceValidateConnectionOnSwapServer"), "5.1.13", CATEGORY_HA, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_loadBalanceConnectionGroup, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.loadBalanceConnectionGroup"), "5.1.13", CATEGORY_HA, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_loadBalanceExceptionChecker, NO_ALIAS, "com.mysql.cj.jdbc.ha.StandardLoadBalanceExceptionChecker", true, Messages.getString("ConnectionProperties.loadBalanceExceptionChecker"), "5.1.13", CATEGORY_HA, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_loadBalanceSQLStateFailover, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.loadBalanceSQLStateFailover"), "5.1.13", CATEGORY_HA, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_loadBalanceSQLExceptionSubclassFailover, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.loadBalanceSQLExceptionSubclassFailover"), "5.1.13", CATEGORY_HA, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_loadBalanceAutoCommitStatementRegex, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.loadBalanceAutoCommitStatementRegex"), "5.1.15", CATEGORY_HA, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_loadBalanceAutoCommitStatementThreshold, NO_ALIAS, 0, true, Messages.getString("ConnectionProperties.loadBalanceAutoCommitStatementThreshold"), "5.1.15", CATEGORY_HA, Integer.MIN_VALUE, 0, Integer.MAX_VALUE), new StringPropertyDefinition(PNAME_localSocketAddress, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.localSocketAddress"), "5.0.5", CATEGORY_NETWORK, Integer.MIN_VALUE), new MemorySizePropertyDefinition(PNAME_locatorFetchBufferSize, NO_ALIAS, 0x100000, true, Messages.getString("ConnectionProperties.locatorFetchBufferSize"), "3.2.1", CATEGORY_BLOBS, Integer.MIN_VALUE, 0, Integer.MAX_VALUE), new StringPropertyDefinition(PNAME_logger, NO_ALIAS, STANDARD_LOGGER_NAME, true, Messages.getString("ConnectionProperties.logger", new Object[]{Log.class.getName(), STANDARD_LOGGER_NAME}), "3.1.1", CATEGORY_DEBUGING_PROFILING, 0), new BooleanPropertyDefinition(PNAME_logSlowQueries, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.logSlowQueries"), "3.1.2", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_logXaCommands, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.logXaCommands"), "5.0.5", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_maintainTimeStats, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.maintainTimeStats"), "3.1.9", CATEGORY_PERFORMANCE, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_maxQuerySizeToLog, NO_ALIAS, 2048, true, Messages.getString("ConnectionProperties.maxQuerySizeToLog"), "3.1.3", CATEGORY_DEBUGING_PROFILING, 4, 0, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_maxReconnects, NO_ALIAS, 3, true, Messages.getString("ConnectionProperties.maxReconnects"), "1.1", CATEGORY_HA, 4, 1, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_retriesAllDown, NO_ALIAS, 120, true, Messages.getString("ConnectionProperties.retriesAllDown"), "5.1.6", CATEGORY_HA, 4, 0, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_maxRows, NO_ALIAS, -1, true, Messages.getString("ConnectionProperties.maxRows"), Messages.getString("ConnectionProperties.allVersions"), CATEGORY_RESULT_SETS, Integer.MIN_VALUE, -1, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_metadataCacheSize, NO_ALIAS, 50, true, Messages.getString("ConnectionProperties.metadataCacheSize"), "3.1.1", CATEGORY_PERFORMANCE, 5, 1, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_netTimeoutForStreamingResults, NO_ALIAS, 600, true, Messages.getString("ConnectionProperties.netTimeoutForStreamingResults"), "5.1.0", CATEGORY_RESULT_SETS, Integer.MIN_VALUE, 0, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_noAccessToProcedureBodies, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.noAccessToProcedureBodies"), "5.0.3", CATEGORY_METADATA, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_noDatetimeStringSync, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.noDatetimeStringSync"), "3.1.7", CATEGORY_DATETIMES, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_nullCatalogMeansCurrent, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.nullCatalogMeansCurrent"), "3.1.8", CATEGORY_METADATA, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_packetDebugBufferSize, NO_ALIAS, 20, true, Messages.getString("ConnectionProperties.packetDebugBufferSize"), "3.1.3", CATEGORY_DEBUGING_PROFILING, 7, 1, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_padCharsWithSpace, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.padCharsWithSpace"), "5.0.6", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_pedantic, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.pedantic"), "3.0.0", CATEGORY_JDBC, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_pinGlobalTxToPhysicalConnection, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.pinGlobalTxToPhysicalConnection"), "5.0.1", CATEGORY_HA, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_populateInsertRowWithDefaultValues, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.populateInsertRowWithDefaultValues"), "5.0.5", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_prepStmtCacheSize, NO_ALIAS, 25, true, Messages.getString("ConnectionProperties.prepStmtCacheSize"), "3.0.10", CATEGORY_PERFORMANCE, 10, 0, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_prepStmtCacheSqlLimit, NO_ALIAS, 256, true, Messages.getString("ConnectionProperties.prepStmtCacheSqlLimit"), "3.0.10", CATEGORY_PERFORMANCE, 11, 1, Integer.MAX_VALUE), new StringPropertyDefinition(PNAME_parseInfoCacheFactory, NO_ALIAS, PerConnectionLRUFactory.class.getName(), true, Messages.getString("ConnectionProperties.parseInfoCacheFactory"), "5.1.1", CATEGORY_PERFORMANCE, 12), new BooleanPropertyDefinition(PNAME_processEscapeCodesForPrepStmts, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.processEscapeCodesForPrepStmts"), "3.1.12", CATEGORY_PREPARED_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_profileSQL, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.profileSQL"), "3.1.0", CATEGORY_DEBUGING_PROFILING, 1), new StringPropertyDefinition(PNAME_propertiesTransform, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.connectionPropertiesTransform"), "3.1.4", CATEGORY_CONNECTION, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_queriesBeforeRetryMaster, NO_ALIAS, 50, true, Messages.getString("ConnectionProperties.queriesBeforeRetryMaster"), "3.0.2", CATEGORY_HA, 7, 0, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_queryTimeoutKillsConnection, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.queryTimeoutKillsConnection"), "5.1.9", CATEGORY_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_reconnectAtTxEnd, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.reconnectAtTxEnd"), "3.0.10", CATEGORY_HA, 4), new StringPropertyDefinition(PNAME_replicationConnectionGroup, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.replicationConnectionGroup"), "8.0.7", CATEGORY_HA, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_reportMetricsIntervalMillis, NO_ALIAS, 30000, true, Messages.getString("ConnectionProperties.reportMetricsIntervalMillis"), "3.1.2", CATEGORY_DEBUGING_PROFILING, 3, 0, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_requireSSL, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.requireSSL"), "3.1.0", CATEGORY_SECURITY, 3), new StringPropertyDefinition(PNAME_resourceId, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.resourceId"), "5.0.1", CATEGORY_HA, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_resultSetSizeThreshold, NO_ALIAS, 100, true, Messages.getString("ConnectionProperties.resultSetSizeThreshold"), "5.0.5", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_rewriteBatchedStatements, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.rewriteBatchedStatements"), "3.1.13", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_rollbackOnPooledClose, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.rollbackOnPooledClose"), "3.0.15", CATEGORY_CONNECTION, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_secondsBeforeRetryMaster, NO_ALIAS, 30, true, Messages.getString("ConnectionProperties.secondsBeforeRetryMaster"), "3.0.2", CATEGORY_HA, 8, 0, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_selfDestructOnPingSecondsLifetime, NO_ALIAS, 0, true, Messages.getString("ConnectionProperties.selfDestructOnPingSecondsLifetime"), "5.1.6", CATEGORY_HA, Integer.MAX_VALUE, 0, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_selfDestructOnPingMaxOperations, NO_ALIAS, 0, true, Messages.getString("ConnectionProperties.selfDestructOnPingMaxOperations"), "5.1.6", CATEGORY_HA, Integer.MAX_VALUE, 0, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_ha_enableJMX, "haEnableJMX", false, true, Messages.getString("ConnectionProperties.ha.enableJMX"), "5.1.27", CATEGORY_HA, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_loadBalanceHostRemovalGracePeriod, NO_ALIAS, 15000, true, Messages.getString("ConnectionProperties.loadBalanceHostRemovalGracePeriod"), "6.0.3", CATEGORY_HA, Integer.MAX_VALUE, 0, Integer.MAX_VALUE), new StringPropertyDefinition(PNAME_serverTimezone, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.serverTimezone"), "3.0.2", CATEGORY_DATETIMES, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_sessionVariables, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.sessionVariables"), "3.1.8", CATEGORY_SESSION, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_slowQueryThresholdMillis, NO_ALIAS, 2000, true, Messages.getString("ConnectionProperties.slowQueryThresholdMillis"), "3.1.2", CATEGORY_DEBUGING_PROFILING, 9, 0, Integer.MAX_VALUE), new LongPropertyDefinition(PNAME_slowQueryThresholdNanos, NO_ALIAS, 0L, true, Messages.getString("ConnectionProperties.slowQueryThresholdNanos"), "5.0.7", CATEGORY_DEBUGING_PROFILING, 10), new StringPropertyDefinition(PNAME_socketFactory, NO_ALIAS, "com.mysql.cj.protocol.StandardSocketFactory", true, Messages.getString("ConnectionProperties.socketFactory"), "3.0.3", CATEGORY_NETWORK, 4), new StringPropertyDefinition(PNAME_socksProxyHost, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.socksProxyHost"), "5.1.34", CATEGORY_NETWORK, 1), new IntegerPropertyDefinition(PNAME_socksProxyPort, NO_ALIAS, 1080, true, Messages.getString("ConnectionProperties.socksProxyPort"), "5.1.34", CATEGORY_NETWORK, 2, 0, 65535), new IntegerPropertyDefinition(PNAME_socketTimeout, NO_ALIAS, 0, true, Messages.getString("ConnectionProperties.socketTimeout"), "3.0.1", CATEGORY_NETWORK, 10, 0, Integer.MAX_VALUE), new StringPropertyDefinition(PNAME_queryInterceptors, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.queryInterceptors"), "8.0.7", CATEGORY_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_strictUpdates, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.strictUpdates"), "3.0.4", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_overrideSupportsIntegrityEnhancementFacility, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.overrideSupportsIEF"), "3.1.12", CATEGORY_INTEGRATION, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_tcpNoDelay, NO_ALIAS, (boolean)Boolean.valueOf("true"), true, Messages.getString("ConnectionProperties.tcpNoDelay"), "5.0.7", CATEGORY_NETWORK, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_tcpKeepAlive, NO_ALIAS, (boolean)Boolean.valueOf("true"), true, Messages.getString("ConnectionProperties.tcpKeepAlive"), "5.0.7", CATEGORY_NETWORK, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_tcpRcvBuf, NO_ALIAS, Integer.parseInt("0"), true, Messages.getString("ConnectionProperties.tcpSoRcvBuf"), "5.0.7", CATEGORY_NETWORK, Integer.MIN_VALUE, 0, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_tcpSndBuf, NO_ALIAS, Integer.parseInt("0"), true, Messages.getString("ConnectionProperties.tcpSoSndBuf"), "5.0.7", CATEGORY_NETWORK, Integer.MIN_VALUE, 0, Integer.MAX_VALUE), new IntegerPropertyDefinition(PNAME_tcpTrafficClass, NO_ALIAS, Integer.parseInt("0"), true, Messages.getString("ConnectionProperties.tcpTrafficClass"), "5.0.7", CATEGORY_NETWORK, Integer.MIN_VALUE, 0, 255), new BooleanPropertyDefinition(PNAME_tinyInt1isBit, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.tinyInt1isBit"), "3.0.16", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_traceProtocol, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.traceProtocol"), "3.1.2", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_treatUtilDateAsTimestamp, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.treatUtilDateAsTimestamp"), "5.0.5", CATEGORY_DATETIMES, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_transformedBitIsBoolean, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.transformedBitIsBoolean"), "3.1.9", CATEGORY_RESULT_SETS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useCompression, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useCompression"), "3.0.17", CATEGORY_NETWORK, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useColumnNamesInFindColumn, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useColumnNamesInFindColumn"), "5.1.7", CATEGORY_JDBC, Integer.MAX_VALUE), new StringPropertyDefinition(PNAME_useConfigs, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.useConfigs"), "3.1.5", CATEGORY_CONNECTION, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_useCursorFetch, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useCursorFetch"), "5.0.0", CATEGORY_PERFORMANCE, Integer.MAX_VALUE), new BooleanPropertyDefinition(PNAME_useHostsInPrivileges, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.useHostsInPrivileges"), "3.0.2", CATEGORY_METADATA, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useInformationSchema, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useInformationSchema"), "5.0.0", CATEGORY_METADATA, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useLocalSessionState, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useLocalSessionState"), "3.1.7", CATEGORY_PERFORMANCE, 5), new BooleanPropertyDefinition(PNAME_useLocalTransactionState, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useLocalTransactionState"), "5.1.7", CATEGORY_PERFORMANCE, 6), new BooleanPropertyDefinition(PNAME_sendFractionalSeconds, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.sendFractionalSeconds"), "5.1.37", CATEGORY_DATETIMES, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useNanosForElapsedTime, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useNanosForElapsedTime"), "5.0.7", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useOldAliasMetadataBehavior, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useOldAliasMetadataBehavior"), "5.0.4", CATEGORY_JDBC, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useOldUTF8Behavior, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useOldUtf8Behavior"), "3.1.6", CATEGORY_SESSION, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useOnlyServerErrorMessages, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.useOnlyServerErrorMessages"), "3.0.15", CATEGORY_DEBUGING_PROFILING, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useReadAheadInput, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.useReadAheadInput"), "3.1.5", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useSSL, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useSSL"), "3.0.2", CATEGORY_SECURITY, 2), new BooleanPropertyDefinition(PNAME_useStreamLengthsInPrepStmts, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.useStreamLengthsInPrepStmts"), "3.0.2", CATEGORY_PREPARED_STATEMENTS, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_ultraDevHack, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.ultraDevHack"), "2.0.3", CATEGORY_INTEGRATION, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useUsageAdvisor, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useUsageAdvisor"), "3.1.1", CATEGORY_DEBUGING_PROFILING, 10), new BooleanPropertyDefinition(PNAME_yearIsDateType, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.yearIsDateType"), "3.1.9", CATEGORY_DATETIMES, Integer.MIN_VALUE), new EnumPropertyDefinition<ZeroDatetimeBehavior>(PNAME_zeroDateTimeBehavior, NO_ALIAS, ZeroDatetimeBehavior.EXCEPTION, true, Messages.getString("ConnectionProperties.zeroDateTimeBehavior", new Object[]{ZeroDatetimeBehavior.EXCEPTION, ZeroDatetimeBehavior.ROUND, ZeroDatetimeBehavior.CONVERT_TO_NULL}), "3.1.4", CATEGORY_DATETIMES, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useAffectedRows, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.useAffectedRows"), "5.1.7", CATEGORY_CONNECTION, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_maxAllowedPacket, NO_ALIAS, 65535, true, Messages.getString("ConnectionProperties.maxAllowedPacket"), "5.1.8", CATEGORY_NETWORK, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_authenticationPlugins, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.authenticationPlugins"), "5.1.19", CATEGORY_CONNECTION, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_disabledAuthenticationPlugins, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, true, Messages.getString("ConnectionProperties.disabledAuthenticationPlugins"), "5.1.19", CATEGORY_CONNECTION, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_defaultAuthenticationPlugin, NO_ALIAS, "com.mysql.cj.protocol.a.authentication.MysqlNativePasswordPlugin", true, Messages.getString("ConnectionProperties.defaultAuthenticationPlugin"), "5.1.19", CATEGORY_CONNECTION, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_disconnectOnExpiredPasswords, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.disconnectOnExpiredPasswords"), "5.1.23", CATEGORY_CONNECTION, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_getProceduresReturnsFunctions, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.getProceduresReturnsFunctions"), "5.1.26", CATEGORY_METADATA, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_detectCustomCollations, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.detectCustomCollations"), "5.1.29", CATEGORY_CONNECTION, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_dontCheckOnDuplicateKeyUpdateInSQL, NO_ALIAS, false, true, Messages.getString("ConnectionProperties.dontCheckOnDuplicateKeyUpdateInSQL"), "5.1.32", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_readOnlyPropagatesToServer, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.readOnlyPropagatesToServer"), "5.1.35", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_useAsyncProtocol, "xdevapiUseAsyncProtocol", false, false, Messages.getString("ConnectionProperties.useAsyncProtocol"), "6.0.0", CATEGORY_XDEVAPI, Integer.MIN_VALUE), new EnumPropertyDefinition<SslMode>(PNAME_sslMode, "xdevapiSSLMode", SslMode.REQUIRED, true, Messages.getString("ConnectionProperties.sslMode"), "8.0.7", CATEGORY_XDEVAPI, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_sslTrustStoreUrl, "xdevapiSSLTruststore", DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.sslTrustStoreUrl"), "6.0.6", CATEGORY_XDEVAPI, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_sslTrustStoreType, "xdevapiSSLTruststoreType", "JKS", false, Messages.getString("ConnectionProperties.sslTrustStoreType"), "6.0.6", CATEGORY_XDEVAPI, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_sslTrustStorePassword, "xdevapiSSLTruststorePassword", DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.sslTrustStorePassword"), "6.0.6", CATEGORY_XDEVAPI, Integer.MIN_VALUE), new IntegerPropertyDefinition(PNAME_asyncResponseTimeout, "xdevapiAsyncResponseTimeout", 300, true, Messages.getString("ConnectionProperties.asyncResponseTimeout"), "8.0.7", CATEGORY_XDEVAPI, Integer.MIN_VALUE), new EnumPropertyDefinition<AuthMech>(PNAME_auth, "xdevapiAuth", AuthMech.PLAIN, false, Messages.getString("ConnectionProperties.auth"), "8.0.8", CATEGORY_XDEVAPI, Integer.MIN_VALUE), new BooleanPropertyDefinition(PNAME_enableEscapeProcessing, NO_ALIAS, true, true, Messages.getString("ConnectionProperties.enableEscapeProcessing"), "6.0.1", CATEGORY_PERFORMANCE, Integer.MIN_VALUE), new StringPropertyDefinition(PNAME_serverAffinityOrder, NO_ALIAS, DEFAULT_VALUE_NULL_STRING, false, Messages.getString("ConnectionProperties.serverAffinityOrder"), "8.0.8", CATEGORY_HA, Integer.MIN_VALUE)};
          HashMap<String, PropertyDefinition> propertyNameToPropertyDefinitionMap = new HashMap<String, PropertyDefinition>();
          for (PropertyDefinition pdef : pdefs) {
              String pname = pdef.getName();
              propertyNameToPropertyDefinitionMap.put(pname, pdef);
          }
          PROPERTY_NAME_TO_PROPERTY_DEFINITION = Collections.unmodifiableMap(propertyNameToPropertyDefinitionMap);
      }
  
      static class XmlMap {
          protected Map<Integer, Map<String, PropertyDefinition<?>>> ordered = new TreeMap();
          protected Map<String, PropertyDefinition<?>> alpha = new TreeMap();
  
          XmlMap() {
          }
      }
  
      public static enum AuthMech {
          PLAIN,
          MYSQL41,
          SHA256_MEMORY,
          EXTERNAL;
  
      }
  
      public static enum SslMode {
          REQUIRED,
          VERIFY_CA,
          VERIFY_IDENTITY,
          DISABLED;
  
      }
  
      public static enum ZeroDatetimeBehavior {
          CONVERT_TO_NULL,
          EXCEPTION,
          ROUND;
  
      }
  
      public static enum PropertyKey {
          USER("user"),
          PASSWORD("password"),
          HOST("host"),
          PORT("port"),
          PROTOCOL("protocol"),
          PATH("path"),
          TYPE("type"),
          ADDRESS("address"),
          PRIORITY("priority"),
          DBNAME("dbname");
  
          private String keyName;
          private static Map<String, PropertyKey> ciValues;
  
          private PropertyKey(String keyName) {
              this.keyName = keyName;
          }
  
          public String getKeyName() {
              return this.keyName;
          }
  
          public static PropertyKey fromValue(String value) {
              for (PropertyKey k : PropertyKey.values()) {
                  if (!k.getKeyName().equalsIgnoreCase(value)) continue;
                  return k;
              }
              return null;
          }
  
          public static String normalizeCase(String keyName) {
              PropertyKey pk = ciValues.get(keyName);
              return pk == null ? keyName : pk.getKeyName();
          }
  
          static {
              ciValues = new TreeMap<String, PropertyKey>(String.CASE_INSENSITIVE_ORDER);
              Arrays.stream(PropertyKey.values()).forEach(pk -> ciValues.put(pk.getKeyName(), (PropertyKey)((Object)pk)));
          }
      }
  }
  
  