Enum Class DatabaseName
- All Implemented Interfaces:
Serializable,Comparable<DatabaseName>,java.lang.constant.Constable
The names of the database management systems supported by DBAccess. Note
that not all of these are supported by every service.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMicrosoft Azure - needs special handling since the product name provided by JDBC cannot be distinguished from SQL Server.Deprecated, for removal: This API element is subject to removal in a future version.IBM DB2Deprecated, for removal: This API element is subject to removal in a future version.Switch toH2or another DBMS instead.H2HSQLDBInterSystems IRISMySQLOracle DatabasePostgreSQLMicrosoft SQL Server -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseNameDetects the database type based on the designated connection.Gets (part of) the product name returned by the metadata of the database.Gets the name of the provider class for the database.static DatabaseNameReturns the enum constant of this class with the specified name.static DatabaseName[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DERBY
Deprecated, for removal: This API element is subject to removal in a future version.Switch toH2or another DBMS instead.Apache Derby -
DB2
IBM DB2 -
ORACLE
Oracle Database -
SQL_SERVER
Microsoft SQL Server -
AZURE
Microsoft Azure - needs special handling since the product name provided by JDBC cannot be distinguished from SQL Server. -
POSTGRES
PostgreSQL -
HSQL
HSQLDB -
H2
H2 -
MY_SQL
MySQL -
CACHE
Deprecated, for removal: This API element is subject to removal in a future version.UseIRISinstead.InterSystems Cache -
IRIS
InterSystems IRIS
-
-
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
-
getProductName
Gets (part of) the product name returned by the metadata of the database.- Returns:
- (Part of) the product name returned by the metadata of the database.
-
getProviderClass
Gets the name of the provider class for the database.- Returns:
- The name of the provider class for the database.
-
getDatabaseName
Detects the database type based on the designated connection.- Parameters:
con- The JDBC connection to be examined.- Returns:
- The detected database name or
nullif the database is not recognised. - Throws:
SQLException- if a database access error occurs
-
IRISinstead.