public enum DatabaseType extends Enum<DatabaseType>
| Enum Constant and Description |
|---|
H2 |
MYSQL |
POSTGRESQL |
| Modifier and Type | Method and Description |
|---|---|
String |
dialect() |
String |
jdbcDriverClasss() |
String |
jdbcUrlPattern()
Format to take is:
MessageFormat.format(DatabaseType.jdbcUrlPattern(), host, port, dbName) |
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 POSTGRESQL
public static final DatabaseType MYSQL
public static final DatabaseType H2
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 dialect()
public String jdbcDriverClasss()
public String jdbcUrlPattern()
MessageFormat.format(DatabaseType.jdbcUrlPattern(), host, port, dbName)Copyright © 2018. All rights reserved.