public enum DatabaseType extends Enum<DatabaseType>
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseType.Driver |
Enum Constant and Description |
---|
AURORA_POSTGRES |
H2 |
HSQL |
MY_SQL57 |
MY_SQL8 |
ORACLE |
POSTGRES |
SQL_SERVER |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Collection<DatabaseType> |
allTypes() |
static DatabaseType |
forDatabaseTypeName(String typeName) |
static Optional<DatabaseType> |
forJdbcDriverClassName(String jdbcDriverClass) |
List<DatabaseType.Driver> |
getAllDrivers() |
List<String> |
getDeprecatedJdbcDriverClassNames() |
String |
getDisplayName() |
String |
getInstanceFieldName() |
String |
getJdbcDriverClassName() |
JdbcUrlParser |
getJdbcUrlParser() |
JdbcUrlParser |
getJdbcUrlParser(String driverClassName) |
String |
getTypeName() |
Boolean |
isMySQLCompatible() |
Boolean |
isPostgreSQlCompatible() |
static Collection<DatabaseType> |
knownTypes() |
static String |
noMatchingDriverClassNameErrorMessage(String className) |
String |
toString() |
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 H2
public static final DatabaseType HSQL
public static final DatabaseType SQL_SERVER
public static final DatabaseType MY_SQL57
public static final DatabaseType MY_SQL8
public static final DatabaseType ORACLE
public static final DatabaseType POSTGRES
public static final DatabaseType AURORA_POSTGRES
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 String toString()
toString
in class Enum<DatabaseType>
public String getDisplayName()
public String getTypeName()
public String getJdbcDriverClassName()
public List<DatabaseType.Driver> getAllDrivers()
public static Collection<DatabaseType> knownTypes()
public static Collection<DatabaseType> allTypes()
public static Optional<DatabaseType> forJdbcDriverClassName(String jdbcDriverClass)
public static DatabaseType forDatabaseTypeName(String typeName)
public JdbcUrlParser getJdbcUrlParser()
public JdbcUrlParser getJdbcUrlParser(String driverClassName)
public static String noMatchingDriverClassNameErrorMessage(String className)
public String getInstanceFieldName()
public Boolean isPostgreSQlCompatible()
public Boolean isMySQLCompatible()
Copyright © 2002-2022 Atlassian. All Rights Reserved.