public enum DatabaseName extends java.lang.Enum<DatabaseName>
| Enum Constant and Description |
|---|
AZURE
Microsoft Azure
|
CACHE
InterSystems Cache
|
DB2
IBM DB2
|
DERBY
Apache Derby
|
H2
H2
|
HSQL
HSQLDB
|
MY_SQL
MySQL
|
ORACLE
Oracle Database
|
POSTGRES
PostgreSQL
|
SQL_SERVER
Microsoft SQL Server
|
| Modifier and Type | Method and Description |
|---|---|
static DatabaseName |
getDatabaseNameForProductName(java.lang.String productName)
Finds the database name for the given database product name.
|
java.lang.String |
getProductName()
Gets (part of) the product name returned by the metadata of the database.
|
java.lang.String |
getProviderClass()
Gets the name of the provider class for the database.
|
static DatabaseName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseName DERBY
public static final DatabaseName DB2
public static final DatabaseName ORACLE
public static final DatabaseName SQL_SERVER
public static final DatabaseName AZURE
public static final DatabaseName POSTGRES
public static final DatabaseName HSQL
public static final DatabaseName H2
public static final DatabaseName MY_SQL
public static final DatabaseName CACHE
public static DatabaseName[] values()
for (DatabaseName c : DatabaseName.values()) System.out.println(c);
public static DatabaseName valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getProductName()
public java.lang.String getProviderClass()
public static DatabaseName getDatabaseNameForProductName(java.lang.String productName)
productName - The product name of the database as provided by the
DatabaseMetaData.null if no
database is found for the designated product name.