public enum DatabaseType extends Enum<DatabaseType>
| Modifier and Type | Method and Description |
|---|---|
static DatabaseType |
valueFrom(String databaseProductName)
获取数据库类型枚举.
|
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 MySQL
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 valueFrom(String databaseProductName)
databaseProductName - 数据库类型Copyright © 2006–2018 TinyGroup. All rights reserved.