Enum JdbcConnectionUrlParser
java.lang.Object
java.lang.Enum<JdbcConnectionUrlParser>
io.opentelemetry.instrumentation.jdbc.internal.JdbcConnectionUrlParser
- All Implemented Interfaces:
Serializable,Comparable<JdbcConnectionUrlParser>,java.lang.constant.Constable
Structured as an enum instead of a class hierarchy to allow iterating through the parsers
automatically without having to maintain a separate list of parsers.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis parser can locate incorrect data if multiple addresses are defined but not everything is defined in the first block. -
Method Summary
Modifier and TypeMethodDescriptionstatic DbInfoparse(String connectionUrl, Properties props) static JdbcConnectionUrlParserReturns the enum constant of this type with the specified name.static JdbcConnectionUrlParser[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GENERIC_URL_LIKE
-
JTDS_URL_LIKE
-
MODIFIED_URL_LIKE
-
POSTGRES
-
MYSQL
-
MARIA_SUBPROTO
-
MARIA_ADDRESS
-
SAP
-
MSSQLSERVER
-
DB2
-
ORACLE
-
ORACLE_CONNECT_INFO
-
ORACLE_AT
-
ORACLE_AT_DESCRIPTION
This parser can locate incorrect data if multiple addresses are defined but not everything is defined in the first block. (It would locate data from subsequent address blocks. -
H2
-
HSQL
-
DERBY
-
-
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
parse
-