枚举 PropertyKey
- java.lang.Object
-
- java.lang.Enum<PropertyKey>
-
- com.mysql.cj.conf.PropertyKey
-
- 所有已实现的接口:
Serializable,Comparable<PropertyKey>
public enum PropertyKey extends Enum<PropertyKey>
PropertyKey handles connection property names, their camel-case aliases and case sensitivity.
-
-
枚举常量概要
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static PropertyKeyfromValue(String value)Looks for aPropertyKeythat matches the given value as key name.StringgetCcAlias()Gets the camel-case alias key name of this enum element.StringgetKeyName()Gets the key name of this enum element.static StringnormalizeCase(String keyName)Helper method that normalizes the case of the given key, if it is one ofPropertyKeyelements.StringtoString()static PropertyKeyvalueOf(String name)返回带有指定名称的该类型的枚举常量。static PropertyKey[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
USER
public static final PropertyKey USER
The database user name.
-
PASSWORD
public static final PropertyKey PASSWORD
The database user password.
-
HOST
public static final PropertyKey HOST
The hostname value from the properties instance passed to the driver.
-
PORT
public static final PropertyKey PORT
The port number value from the properties instance passed to the driver.
-
PROTOCOL
public static final PropertyKey PROTOCOL
The communications protocol. Possible values: "tcp" and "pipe".
-
PATH
public static final PropertyKey PATH
The name pipes path to use when "protocol=pipe'.
-
TYPE
public static final PropertyKey TYPE
The server type in a replication setup. Possible values: "master" and "slave".
-
ADDRESS
public static final PropertyKey ADDRESS
The address value ("host:port") from the properties instance passed to the driver.
-
PRIORITY
public static final PropertyKey PRIORITY
The host priority in a list of hosts.
-
DBNAME
public static final PropertyKey DBNAME
The database value from the properties instance passed to the driver.
-
allowLoadLocalInfile
public static final PropertyKey allowLoadLocalInfile
-
allowMasterDownConnections
public static final PropertyKey allowMasterDownConnections
-
allowMultiQueries
public static final PropertyKey allowMultiQueries
-
allowNanAndInf
public static final PropertyKey allowNanAndInf
-
allowPublicKeyRetrieval
public static final PropertyKey allowPublicKeyRetrieval
-
allowSlaveDownConnections
public static final PropertyKey allowSlaveDownConnections
-
allowUrlInLocalInfile
public static final PropertyKey allowUrlInLocalInfile
-
alwaysSendSetIsolation
public static final PropertyKey alwaysSendSetIsolation
-
authenticationPlugins
public static final PropertyKey authenticationPlugins
-
autoClosePStmtStreams
public static final PropertyKey autoClosePStmtStreams
-
autoDeserialize
public static final PropertyKey autoDeserialize
-
autoGenerateTestcaseScript
public static final PropertyKey autoGenerateTestcaseScript
-
autoReconnect
public static final PropertyKey autoReconnect
-
autoReconnectForPools
public static final PropertyKey autoReconnectForPools
-
autoSlowLog
public static final PropertyKey autoSlowLog
-
blobsAreStrings
public static final PropertyKey blobsAreStrings
-
blobSendChunkSize
public static final PropertyKey blobSendChunkSize
-
cacheCallableStmts
public static final PropertyKey cacheCallableStmts
-
cachePrepStmts
public static final PropertyKey cachePrepStmts
-
cacheResultSetMetadata
public static final PropertyKey cacheResultSetMetadata
-
cacheServerConfiguration
public static final PropertyKey cacheServerConfiguration
-
callableStmtCacheSize
public static final PropertyKey callableStmtCacheSize
-
characterEncoding
public static final PropertyKey characterEncoding
-
characterSetResults
public static final PropertyKey characterSetResults
-
clientCertificateKeyStorePassword
public static final PropertyKey clientCertificateKeyStorePassword
-
clientCertificateKeyStoreType
public static final PropertyKey clientCertificateKeyStoreType
-
clientCertificateKeyStoreUrl
public static final PropertyKey clientCertificateKeyStoreUrl
-
clientInfoProvider
public static final PropertyKey clientInfoProvider
-
clobberStreamingResults
public static final PropertyKey clobberStreamingResults
-
clobCharacterEncoding
public static final PropertyKey clobCharacterEncoding
-
compensateOnDuplicateKeyUpdateCounts
public static final PropertyKey compensateOnDuplicateKeyUpdateCounts
-
connectionAttributes
public static final PropertyKey connectionAttributes
-
connectionCollation
public static final PropertyKey connectionCollation
-
connectionLifecycleInterceptors
public static final PropertyKey connectionLifecycleInterceptors
-
connectTimeout
public static final PropertyKey connectTimeout
-
continueBatchOnError
public static final PropertyKey continueBatchOnError
-
createDatabaseIfNotExist
public static final PropertyKey createDatabaseIfNotExist
-
databaseTerm
public static final PropertyKey databaseTerm
-
defaultAuthenticationPlugin
public static final PropertyKey defaultAuthenticationPlugin
-
defaultFetchSize
public static final PropertyKey defaultFetchSize
-
detectCustomCollations
public static final PropertyKey detectCustomCollations
-
disabledAuthenticationPlugins
public static final PropertyKey disabledAuthenticationPlugins
-
disconnectOnExpiredPasswords
public static final PropertyKey disconnectOnExpiredPasswords
-
dnsSrv
public static final PropertyKey dnsSrv
-
dontCheckOnDuplicateKeyUpdateInSQL
public static final PropertyKey dontCheckOnDuplicateKeyUpdateInSQL
-
dontTrackOpenResources
public static final PropertyKey dontTrackOpenResources
-
dumpQueriesOnException
public static final PropertyKey dumpQueriesOnException
-
elideSetAutoCommits
public static final PropertyKey elideSetAutoCommits
-
emptyStringsConvertToZero
public static final PropertyKey emptyStringsConvertToZero
-
emulateLocators
public static final PropertyKey emulateLocators
-
emulateUnsupportedPstmts
public static final PropertyKey emulateUnsupportedPstmts
-
enabledSSLCipherSuites
public static final PropertyKey enabledSSLCipherSuites
-
enabledTLSProtocols
public static final PropertyKey enabledTLSProtocols
-
enableEscapeProcessing
public static final PropertyKey enableEscapeProcessing
-
enablePacketDebug
public static final PropertyKey enablePacketDebug
-
enableQueryTimeouts
public static final PropertyKey enableQueryTimeouts
-
exceptionInterceptors
public static final PropertyKey exceptionInterceptors
-
explainSlowQueries
public static final PropertyKey explainSlowQueries
-
failOverReadOnly
public static final PropertyKey failOverReadOnly
-
functionsNeverReturnBlobs
public static final PropertyKey functionsNeverReturnBlobs
-
gatherPerfMetrics
public static final PropertyKey gatherPerfMetrics
-
generateSimpleParameterMetadata
public static final PropertyKey generateSimpleParameterMetadata
-
getProceduresReturnsFunctions
public static final PropertyKey getProceduresReturnsFunctions
-
holdResultsOpenOverStatementClose
public static final PropertyKey holdResultsOpenOverStatementClose
-
ha_enableJMX
public static final PropertyKey ha_enableJMX
-
ha_loadBalanceStrategy
public static final PropertyKey ha_loadBalanceStrategy
-
ignoreNonTxTables
public static final PropertyKey ignoreNonTxTables
-
includeInnodbStatusInDeadlockExceptions
public static final PropertyKey includeInnodbStatusInDeadlockExceptions
-
includeThreadDumpInDeadlockExceptions
public static final PropertyKey includeThreadDumpInDeadlockExceptions
-
includeThreadNamesAsStatementComment
public static final PropertyKey includeThreadNamesAsStatementComment
-
initialTimeout
public static final PropertyKey initialTimeout
-
interactiveClient
public static final PropertyKey interactiveClient
-
jdbcCompliantTruncation
public static final PropertyKey jdbcCompliantTruncation
-
largeRowSizeThreshold
public static final PropertyKey largeRowSizeThreshold
-
loadBalanceAutoCommitStatementRegex
public static final PropertyKey loadBalanceAutoCommitStatementRegex
-
loadBalanceAutoCommitStatementThreshold
public static final PropertyKey loadBalanceAutoCommitStatementThreshold
-
loadBalanceBlacklistTimeout
public static final PropertyKey loadBalanceBlacklistTimeout
-
loadBalanceConnectionGroup
public static final PropertyKey loadBalanceConnectionGroup
-
loadBalanceExceptionChecker
public static final PropertyKey loadBalanceExceptionChecker
-
loadBalanceHostRemovalGracePeriod
public static final PropertyKey loadBalanceHostRemovalGracePeriod
-
loadBalancePingTimeout
public static final PropertyKey loadBalancePingTimeout
-
loadBalanceSQLStateFailover
public static final PropertyKey loadBalanceSQLStateFailover
-
loadBalanceSQLExceptionSubclassFailover
public static final PropertyKey loadBalanceSQLExceptionSubclassFailover
-
loadBalanceValidateConnectionOnSwapServer
public static final PropertyKey loadBalanceValidateConnectionOnSwapServer
-
localSocketAddress
public static final PropertyKey localSocketAddress
-
locatorFetchBufferSize
public static final PropertyKey locatorFetchBufferSize
-
logger
public static final PropertyKey logger
-
logSlowQueries
public static final PropertyKey logSlowQueries
-
logXaCommands
public static final PropertyKey logXaCommands
-
maintainTimeStats
public static final PropertyKey maintainTimeStats
-
maxAllowedPacket
public static final PropertyKey maxAllowedPacket
-
maxQuerySizeToLog
public static final PropertyKey maxQuerySizeToLog
-
maxReconnects
public static final PropertyKey maxReconnects
-
maxRows
public static final PropertyKey maxRows
-
metadataCacheSize
public static final PropertyKey metadataCacheSize
-
netTimeoutForStreamingResults
public static final PropertyKey netTimeoutForStreamingResults
-
noAccessToProcedureBodies
public static final PropertyKey noAccessToProcedureBodies
-
noDatetimeStringSync
public static final PropertyKey noDatetimeStringSync
-
nullDatabaseMeansCurrent
public static final PropertyKey nullDatabaseMeansCurrent
-
overrideSupportsIntegrityEnhancementFacility
public static final PropertyKey overrideSupportsIntegrityEnhancementFacility
-
packetDebugBufferSize
public static final PropertyKey packetDebugBufferSize
-
padCharsWithSpace
public static final PropertyKey padCharsWithSpace
-
paranoid
public static final PropertyKey paranoid
-
parseInfoCacheFactory
public static final PropertyKey parseInfoCacheFactory
-
passwordCharacterEncoding
public static final PropertyKey passwordCharacterEncoding
-
pedantic
public static final PropertyKey pedantic
-
pinGlobalTxToPhysicalConnection
public static final PropertyKey pinGlobalTxToPhysicalConnection
-
populateInsertRowWithDefaultValues
public static final PropertyKey populateInsertRowWithDefaultValues
-
prepStmtCacheSize
public static final PropertyKey prepStmtCacheSize
-
prepStmtCacheSqlLimit
public static final PropertyKey prepStmtCacheSqlLimit
-
processEscapeCodesForPrepStmts
public static final PropertyKey processEscapeCodesForPrepStmts
-
profilerEventHandler
public static final PropertyKey profilerEventHandler
-
profileSQL
public static final PropertyKey profileSQL
-
propertiesTransform
public static final PropertyKey propertiesTransform
-
queriesBeforeRetryMaster
public static final PropertyKey queriesBeforeRetryMaster
-
queryInterceptors
public static final PropertyKey queryInterceptors
-
queryTimeoutKillsConnection
public static final PropertyKey queryTimeoutKillsConnection
-
readFromMasterWhenNoSlaves
public static final PropertyKey readFromMasterWhenNoSlaves
-
readOnlyPropagatesToServer
public static final PropertyKey readOnlyPropagatesToServer
-
reconnectAtTxEnd
public static final PropertyKey reconnectAtTxEnd
-
replicationConnectionGroup
public static final PropertyKey replicationConnectionGroup
-
reportMetricsIntervalMillis
public static final PropertyKey reportMetricsIntervalMillis
-
requireSSL
public static final PropertyKey requireSSL
-
resourceId
public static final PropertyKey resourceId
-
resultSetSizeThreshold
public static final PropertyKey resultSetSizeThreshold
-
retriesAllDown
public static final PropertyKey retriesAllDown
-
rewriteBatchedStatements
public static final PropertyKey rewriteBatchedStatements
-
rollbackOnPooledClose
public static final PropertyKey rollbackOnPooledClose
-
secondsBeforeRetryMaster
public static final PropertyKey secondsBeforeRetryMaster
-
selfDestructOnPingMaxOperations
public static final PropertyKey selfDestructOnPingMaxOperations
-
selfDestructOnPingSecondsLifetime
public static final PropertyKey selfDestructOnPingSecondsLifetime
-
sendFractionalSeconds
public static final PropertyKey sendFractionalSeconds
-
serverAffinityOrder
public static final PropertyKey serverAffinityOrder
-
serverConfigCacheFactory
public static final PropertyKey serverConfigCacheFactory
-
serverRSAPublicKeyFile
public static final PropertyKey serverRSAPublicKeyFile
-
serverTimezone
public static final PropertyKey serverTimezone
-
sessionVariables
public static final PropertyKey sessionVariables
-
slowQueryThresholdMillis
public static final PropertyKey slowQueryThresholdMillis
-
slowQueryThresholdNanos
public static final PropertyKey slowQueryThresholdNanos
-
socketFactory
public static final PropertyKey socketFactory
-
socketTimeout
public static final PropertyKey socketTimeout
-
socksProxyHost
public static final PropertyKey socksProxyHost
-
socksProxyPort
public static final PropertyKey socksProxyPort
-
sslMode
public static final PropertyKey sslMode
-
strictUpdates
public static final PropertyKey strictUpdates
-
tcpKeepAlive
public static final PropertyKey tcpKeepAlive
-
tcpNoDelay
public static final PropertyKey tcpNoDelay
-
tcpRcvBuf
public static final PropertyKey tcpRcvBuf
-
tcpSndBuf
public static final PropertyKey tcpSndBuf
-
tcpTrafficClass
public static final PropertyKey tcpTrafficClass
-
tinyInt1isBit
public static final PropertyKey tinyInt1isBit
-
traceProtocol
public static final PropertyKey traceProtocol
-
transformedBitIsBoolean
public static final PropertyKey transformedBitIsBoolean
-
treatUtilDateAsTimestamp
public static final PropertyKey treatUtilDateAsTimestamp
-
trustCertificateKeyStorePassword
public static final PropertyKey trustCertificateKeyStorePassword
-
trustCertificateKeyStoreType
public static final PropertyKey trustCertificateKeyStoreType
-
trustCertificateKeyStoreUrl
public static final PropertyKey trustCertificateKeyStoreUrl
-
ultraDevHack
public static final PropertyKey ultraDevHack
-
useAffectedRows
public static final PropertyKey useAffectedRows
-
useColumnNamesInFindColumn
public static final PropertyKey useColumnNamesInFindColumn
-
useCompression
public static final PropertyKey useCompression
-
useConfigs
public static final PropertyKey useConfigs
-
useCursorFetch
public static final PropertyKey useCursorFetch
-
useHostsInPrivileges
public static final PropertyKey useHostsInPrivileges
-
useInformationSchema
public static final PropertyKey useInformationSchema
-
useLocalSessionState
public static final PropertyKey useLocalSessionState
-
useLocalTransactionState
public static final PropertyKey useLocalTransactionState
-
useNanosForElapsedTime
public static final PropertyKey useNanosForElapsedTime
-
useOldAliasMetadataBehavior
public static final PropertyKey useOldAliasMetadataBehavior
-
useOnlyServerErrorMessages
public static final PropertyKey useOnlyServerErrorMessages
-
useReadAheadInput
public static final PropertyKey useReadAheadInput
-
useServerPrepStmts
public static final PropertyKey useServerPrepStmts
-
useSSL
public static final PropertyKey useSSL
-
useStreamLengthsInPrepStmts
public static final PropertyKey useStreamLengthsInPrepStmts
-
useUnbufferedInput
public static final PropertyKey useUnbufferedInput
-
useUsageAdvisor
public static final PropertyKey useUsageAdvisor
-
verifyServerCertificate
public static final PropertyKey verifyServerCertificate
-
xdevapiAsyncResponseTimeout
public static final PropertyKey xdevapiAsyncResponseTimeout
-
xdevapiAuth
public static final PropertyKey xdevapiAuth
-
xdevapiConnectTimeout
public static final PropertyKey xdevapiConnectTimeout
-
xdevapiConnectionAttributes
public static final PropertyKey xdevapiConnectionAttributes
-
xdevapiDnsSrv
public static final PropertyKey xdevapiDnsSrv
-
xdevapiSSLMode
public static final PropertyKey xdevapiSSLMode
-
xdevapiTlsCiphersuites
public static final PropertyKey xdevapiTlsCiphersuites
-
xdevapiTlsVersions
public static final PropertyKey xdevapiTlsVersions
-
xdevapiSSLTrustStoreUrl
public static final PropertyKey xdevapiSSLTrustStoreUrl
-
xdevapiSSLTrustStoreType
public static final PropertyKey xdevapiSSLTrustStoreType
-
xdevapiSSLTrustStorePassword
public static final PropertyKey xdevapiSSLTrustStorePassword
-
xdevapiUseAsyncProtocol
public static final PropertyKey xdevapiUseAsyncProtocol
-
yearIsDateType
public static final PropertyKey yearIsDateType
-
zeroDateTimeBehavior
public static final PropertyKey zeroDateTimeBehavior
-
-
方法详细资料
-
values
public static PropertyKey[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (PropertyKey c : PropertyKey.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static PropertyKey valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
toString
public String toString()
- 覆盖:
toString在类中Enum<PropertyKey>
-
getKeyName
public String getKeyName()
Gets the key name of this enum element.- 返回:
- the key name associated with the enum element.
-
getCcAlias
public String getCcAlias()
Gets the camel-case alias key name of this enum element.- 返回:
- the camel-case alias key name associated with the enum element or null.
-
fromValue
public static PropertyKey fromValue(String value)
Looks for aPropertyKeythat matches the given value as key name.- 参数:
value- the key name to look for.- 返回:
- the
PropertyKeyelement that matches the given key name value ornullif none is found.
-
normalizeCase
public static String normalizeCase(String keyName)
Helper method that normalizes the case of the given key, if it is one ofPropertyKeyelements.- 参数:
keyName- the key name to normalize.- 返回:
- the normalized key name if it belongs to this enum, otherwise returns the input unchanged.
-
-