Package com.mysql.cj.conf
Enum PropertyKey
java.lang.Object
java.lang.Enum<PropertyKey>
com.mysql.cj.conf.PropertyKey
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PropertyKey>
,java.lang.constant.Constable
public enum PropertyKey extends java.lang.Enum<PropertyKey>
PropertyKey handles connection property names, their camel-case aliases and case sensitivity.
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static PropertyKey
fromValue(java.lang.String value)
Looks for aPropertyKey
that matches the given value as key name.java.lang.String
getCcAlias()
Gets the camel-case alias key name of this enum element.java.lang.String
getKeyName()
Gets the key name of this enum element.static java.lang.String
normalizeCase(java.lang.String keyName)
Helper method that normalizes the case of the given key, if it is one ofPropertyKey
elements.java.lang.String
toString()
static PropertyKey
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PropertyKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USER
The database user name. -
PASSWORD
The database user password. -
HOST
The hostname value from the properties instance passed to the driver. -
PORT
The port number value from the properties instance passed to the driver. -
PROTOCOL
The communications protocol. Possible values: "tcp" and "pipe". -
PATH
The name pipes path to use when "protocol=pipe'. -
TYPE
The server type in a replication setup. Possible values: "source" and "replica". -
ADDRESS
The address value ("host:port") from the properties instance passed to the driver. -
PRIORITY
The host priority in a list of hosts. -
DBNAME
The database value from the properties instance passed to the driver. -
allowLoadLocalInfile
-
allowLoadLocalInfileInPath
-
allowSourceDownConnections
-
allowMultiQueries
-
allowNanAndInf
-
allowPublicKeyRetrieval
-
allowReplicaDownConnections
-
allowUrlInLocalInfile
-
alwaysSendSetIsolation
-
authenticationPlugins
-
autoClosePStmtStreams
-
autoDeserialize
-
autoGenerateTestcaseScript
-
autoReconnect
-
autoReconnectForPools
-
autoSlowLog
-
blobsAreStrings
-
blobSendChunkSize
-
cacheCallableStmts
-
cacheDefaultTimeZone
-
cachePrepStmts
-
cacheResultSetMetadata
-
cacheServerConfiguration
-
callableStmtCacheSize
-
characterEncoding
-
characterSetResults
-
clientCertificateKeyStorePassword
-
clientCertificateKeyStoreType
-
clientCertificateKeyStoreUrl
-
clientInfoProvider
-
clobberStreamingResults
-
clobCharacterEncoding
-
compensateOnDuplicateKeyUpdateCounts
-
connectionAttributes
-
connectionCollation
-
connectionLifecycleInterceptors
-
connectionTimeZone
-
connectTimeout
-
continueBatchOnError
-
createDatabaseIfNotExist
-
databaseTerm
-
defaultAuthenticationPlugin
-
defaultFetchSize
-
detectCustomCollations
-
disabledAuthenticationPlugins
-
disconnectOnExpiredPasswords
-
dnsSrv
-
dontCheckOnDuplicateKeyUpdateInSQL
-
dontTrackOpenResources
-
dumpQueriesOnException
-
elideSetAutoCommits
-
emptyStringsConvertToZero
-
emulateLocators
-
emulateUnsupportedPstmts
-
enabledSSLCipherSuites
-
enabledTLSProtocols
-
enableEscapeProcessing
-
enablePacketDebug
-
enableQueryTimeouts
-
exceptionInterceptors
-
explainSlowQueries
-
failOverReadOnly
-
fallbackToSystemKeyStore
-
fallbackToSystemTrustStore
-
functionsNeverReturnBlobs
-
gatherPerfMetrics
-
generateSimpleParameterMetadata
-
getProceduresReturnsFunctions
-
holdResultsOpenOverStatementClose
-
ha_enableJMX
-
ha_loadBalanceStrategy
-
ignoreNonTxTables
-
includeInnodbStatusInDeadlockExceptions
-
includeThreadDumpInDeadlockExceptions
-
includeThreadNamesAsStatementComment
-
initialTimeout
-
interactiveClient
-
jdbcCompliantTruncation
-
largeRowSizeThreshold
-
ldapServerHostname
-
loadBalanceAutoCommitStatementRegex
-
loadBalanceAutoCommitStatementThreshold
-
loadBalanceBlocklistTimeout
-
loadBalanceConnectionGroup
-
loadBalanceExceptionChecker
-
loadBalanceHostRemovalGracePeriod
-
loadBalancePingTimeout
-
loadBalanceSQLStateFailover
-
loadBalanceSQLExceptionSubclassFailover
-
loadBalanceValidateConnectionOnSwapServer
-
localSocketAddress
-
locatorFetchBufferSize
-
logger
-
logSlowQueries
-
logXaCommands
-
maintainTimeStats
-
maxAllowedPacket
-
maxQuerySizeToLog
-
maxReconnects
-
maxRows
-
metadataCacheSize
-
netTimeoutForStreamingResults
-
noAccessToProcedureBodies
-
noDatetimeStringSync
-
nullDatabaseMeansCurrent
-
overrideSupportsIntegrityEnhancementFacility
-
packetDebugBufferSize
-
padCharsWithSpace
-
paranoid
-
parseInfoCacheFactory
-
passwordCharacterEncoding
-
pedantic
-
pinGlobalTxToPhysicalConnection
-
populateInsertRowWithDefaultValues
-
prepStmtCacheSize
-
prepStmtCacheSqlLimit
-
preserveInstants
-
processEscapeCodesForPrepStmts
-
profilerEventHandler
-
profileSQL
-
forceConnectionTimeZoneToSession
-
propertiesTransform
-
queriesBeforeRetrySource
-
queryInterceptors
-
queryTimeoutKillsConnection
-
readFromSourceWhenNoReplicas
-
readOnlyPropagatesToServer
-
reconnectAtTxEnd
-
replicationConnectionGroup
-
reportMetricsIntervalMillis
-
requireSSL
-
resourceId
-
resultSetSizeThreshold
-
retriesAllDown
-
rewriteBatchedStatements
-
rollbackOnPooledClose
-
secondsBeforeRetrySource
-
selfDestructOnPingMaxOperations
-
selfDestructOnPingSecondsLifetime
-
sendFractionalSeconds
-
sendFractionalSecondsForTime
-
serverAffinityOrder
-
serverConfigCacheFactory
-
serverRSAPublicKeyFile
-
sessionVariables
-
slowQueryThresholdMillis
-
slowQueryThresholdNanos
-
socketFactory
-
socketTimeout
-
socksProxyHost
-
socksProxyPort
-
sslMode
-
strictUpdates
-
tcpKeepAlive
-
tcpNoDelay
-
tcpRcvBuf
-
tcpSndBuf
-
tcpTrafficClass
-
tinyInt1isBit
-
traceProtocol
-
transformedBitIsBoolean
-
treatUtilDateAsTimestamp
-
trustCertificateKeyStorePassword
-
trustCertificateKeyStoreType
-
trustCertificateKeyStoreUrl
-
ultraDevHack
-
useAffectedRows
-
useColumnNamesInFindColumn
-
useCompression
-
useConfigs
-
useCursorFetch
-
useHostsInPrivileges
-
useInformationSchema
-
useLocalSessionState
-
useLocalTransactionState
-
useNanosForElapsedTime
-
useOldAliasMetadataBehavior
-
useOnlyServerErrorMessages
-
useReadAheadInput
-
useServerPrepStmts
-
useSSL
-
useStreamLengthsInPrepStmts
-
useUnbufferedInput
-
useUsageAdvisor
-
verifyServerCertificate
-
xdevapiAsyncResponseTimeout
-
xdevapiAuth
-
xdevapiConnectTimeout
-
xdevapiConnectionAttributes
-
xdevapiCompression
-
xdevapiCompressionAlgorithms
-
xdevapiCompressionExtensions
-
xdevapiDnsSrv
-
xdevapiFallbackToSystemKeyStore
-
xdevapiFallbackToSystemTrustStore
-
xdevapiSslKeyStorePassword
-
xdevapiSslKeyStoreType
-
xdevapiSslKeyStoreUrl
-
xdevapiSslMode
-
xdevapiSslTrustStorePassword
-
xdevapiSslTrustStoreType
-
xdevapiSslTrustStoreUrl
-
xdevapiTlsCiphersuites
-
xdevapiTlsVersions
-
xdevapiUseAsyncProtocol
-
yearIsDateType
-
zeroDateTimeBehavior
-
enableClusterAwareFailover
-
clusterInstanceHostPattern
-
clusterId
-
clusterTopologyRefreshRateMs
-
failoverTimeoutMs
-
failoverClusterTopologyRefreshRateMs
-
failoverWriterReconnectIntervalMs
-
failoverReaderConnectTimeoutMs
-
acceptAwsProtocolOnly
-
allowXmlUnsafeExternalEntity
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<PropertyKey>
-
getKeyName
public java.lang.String getKeyName()Gets the key name of this enum element.- Returns:
- the key name associated with the enum element.
-
getCcAlias
public java.lang.String getCcAlias()Gets the camel-case alias key name of this enum element.- Returns:
- the camel-case alias key name associated with the enum element or null.
-
fromValue
Looks for aPropertyKey
that matches the given value as key name.- Parameters:
value
- the key name to look for.- Returns:
- the
PropertyKey
element that matches the given key name value ornull
if none is found.
-
normalizeCase
public static java.lang.String normalizeCase(java.lang.String keyName)Helper method that normalizes the case of the given key, if it is one ofPropertyKey
elements.- Parameters:
keyName
- the key name to normalize.- Returns:
- the normalized key name if it belongs to this enum, otherwise returns the input unchanged.
-