Package org.mariadb.jdbc.internal.util
Enum Class DefaultOptions
- All Implemented Interfaces:
Serializable,Comparable<DefaultOptions>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe connect timeout value, in milliseconds, or zero for no timeout. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDefaultOptions(String optionName, Boolean defaultValue, String implementationVersion, String description, boolean required) privateDefaultOptions(String optionName, Integer[] defaultValue, Integer minValue, String implementationVersion, String description, boolean required) privateDefaultOptions(String optionName, Integer defaultValue, Integer minValue, String implementationVersion, String description, boolean required) privateDefaultOptions(String optionName, Long defaultValue, Long minValue, String implementationVersion, String description, boolean required) privateDefaultOptions(String optionName, String implementationVersion, String description, boolean required) privateDefaultOptions(String optionName, String defaultValue, String implementationVersion, String description, boolean required) -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionsdefaultValues(HaMode haMode) static OptionsdefaultValues(HaMode haMode, boolean pool) Generate an Options object with default value corresponding to High Availability mode.booleanstatic voidoptionCoherenceValidation(Options options) Option initialisation end : set option value to a coherent state.private static Optionsparse(HaMode haMode, String urlParameters, Properties properties) static Optionsparse(HaMode haMode, String urlParameters, Properties properties, Options options) Parse additional properties .static voidParse additional properties.private static Optionsparse(HaMode haMode, Properties properties, Options paramOptions) static voidpropertyString(Options options, HaMode haMode, StringBuilder sb) Generate parameter String equivalent to options.static DefaultOptionsReturns the enum constant of this class with the specified name.static DefaultOptions[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER
-
PASSWORD
-
CONNECT_TIMEOUT
The connect timeout value, in milliseconds, or zero for no timeout. Default: 30000 (30 seconds) (was 0 before 2.1.2) -
PIPE
-
LOCAL_SOCKET
-
SHARED_MEMORY
-
TCP_NO_DELAY
-
TCP_ABORTIVE_CLOSE
-
LOCAL_SOCKET_ADDRESS
-
SOCKET_TIMEOUT
-
INTERACTIVE_CLIENT
-
DUMP_QUERY_ON_EXCEPTION
-
USE_OLD_ALIAS_METADATA_BEHAVIOR
-
ALLOW_LOCAL_INFILE
-
SESSION_VARIABLES
-
CREATE_DATABASE_IF_NOT_EXISTS
-
SERVER_TIMEZONE
-
NULL_CATALOG_MEANS_CURRENT
-
TINY_INT_IS_BIT
-
YEAR_IS_DATE_TYPE
-
USE_SSL
-
USER_COMPRESSION
-
ALLOW_MULTI_QUERIES
-
REWRITE_BATCHED_STATEMENTS
-
TCP_KEEP_ALIVE
-
TCP_RCV_BUF
-
TCP_SND_BUF
-
SOCKET_FACTORY
-
PIN_GLOBAL_TX_TO_PHYSICAL_CONNECTION
-
TRUST_SERVER_CERTIFICATE
-
SERVER_SSL_CERT
-
USE_FRACTIONAL_SECONDS
-
AUTO_RECONNECT
-
FAIL_ON_READ_ONLY
-
RETRY_ALL_DOWN
-
FAILOVER_LOOP_RETRIES
-
VALID_CONNECTION_TIMEOUT
-
LOAD_BALANCE_BLACKLIST_TIMEOUT
-
CACHE_PREP_STMTS
-
PREP_STMT_CACHE_SIZE
-
PREP_STMT_CACHE_SQL_LIMIT
-
ASSURE_READONLY
-
USE_LEGACY_DATETIME_CODE
-
MAXIMIZE_MYSQL_COMPATIBILITY
-
USE_SERVER_PREP_STMTS
-
TRUSTSTORE
-
TRUST_CERTIFICATE_KEYSTORE_PASSWORD
-
KEYSTORE
-
KEYSTORE_PASSWORD
-
PRIVATE_KEYS_PASSWORD
-
ENABLED_SSL_PROTOCOL_SUITES
-
ENABLED_SSL_CIPHER_SUITES
-
CONTINUE_BATCH_ON_ERROR
-
JDBC_COMPLIANT_TRUNCATION
-
CACHE_CALLABLE_STMTS
-
CALLABLE_STMT_CACHE_SIZE
-
CONNECTION_ATTRIBUTES
-
USE_BATCH_MULTI_SEND
-
USE_BATCH_MULTI_SEND_NUMBER
-
LOGGING
-
PROFILE_SQL
-
MAX_QUERY_LOG_SIZE
-
SLOW_QUERY_TIME
-
PASSWORD_CHARACTER_ENCODING
-
PIPELINE_AUTH
-
ENABLE_PACKET_DEBUG
-
SSL_HOSTNAME_VERIFICATION
-
USE_BULK_PROTOCOL
-
AUTOCOMMIT
-
POOL
-
POOL_NAME
-
MAX_POOL_SIZE
-
MIN_POOL_SIZE
-
MAX_IDLE_TIME
-
POOL_VALID_MIN_DELAY
-
STATIC_GLOBAL
-
REGISTER_POOL_JMX
-
USE_RESET_CONNECTION
-
ALLOW_MASTER_DOWN
-
GALERA_ALLOWED_STATE
-
USE_AFFECTED_ROWS
-
INCLUDE_STATUS
-
INCLUDE_THREAD_DUMP
-
READ_AHEAD
-
KEY_STORE_TYPE
-
TRUST_STORE_TYPE
-
SERVICE_PRINCIPAL_NAME
-
DEFAULT_FETCH_SIZE
-
USE_MYSQL_AS_DATABASE
-
BLANK_TABLE_NAME_META
-
-
Field Details
-
optionName
-
description
-
required
private final boolean required -
objType
-
defaultValue
-
minValue
-
maxValue
-
-
Constructor Details
-
DefaultOptions
-
DefaultOptions
-
DefaultOptions
-
DefaultOptions
-
DefaultOptions
-
DefaultOptions
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
defaultValues
-
defaultValues
Generate an Options object with default value corresponding to High Availability mode.- Parameters:
haMode- current high Availability modepool- is for pool- Returns:
- Options object initialized
-
parse
Parse additional properties.- Parameters:
haMode- current haMode.urlParameters- options defined in urloptions- initial options
-
parse
-
parse
public static Options parse(HaMode haMode, String urlParameters, Properties properties, Options options) Parse additional properties .- Parameters:
haMode- current haMode.urlParameters- options defined in urlproperties- options defined by propertiesoptions- initial options- Returns:
- options
-
parse
-
optionCoherenceValidation
Option initialisation end : set option value to a coherent state.- Parameters:
options- options
-
propertyString
Generate parameter String equivalent to options.- Parameters:
options- optionshaMode- high availability Modesb- String builder
-
getOptionName
-
getDescription
-
isRequired
public boolean isRequired()
-