public enum DatabaseType extends Enum<DatabaseType>
DatabaseType defines the underlying database.| Enum Constant and Description |
|---|
MARIADB |
MYSQL |
ORACLE |
POSTGRESQL |
SQLSERVER |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseType |
of(String databaseName)
Get the associated
DatabaseType for the given database name. |
static DatabaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseType ORACLE
public static final DatabaseType MYSQL
public static final DatabaseType SQLSERVER
public static final DatabaseType POSTGRESQL
public static final DatabaseType MARIADB
public static final DatabaseType UNKNOWN
public static DatabaseType[] values()
for (DatabaseType c : DatabaseType.values()) System.out.println(c);
public static DatabaseType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static DatabaseType of(String databaseName)
DatabaseType for the given database name.databaseName - database nameDatabaseType for the given database nameCopyright © 2026. All rights reserved.