public enum DB extends Enum<DB>
| Modifier and Type | Field and Description |
|---|---|
String |
dbProductId |
String |
dbProductname |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDatabaseProductId(String dbProductName) |
static boolean |
isDb2(String dbProductName) |
static boolean |
isH2(String dbProductName) |
static boolean |
isPostgreSql(String dbProductName) |
static DB |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DB[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DB H2
public static final DB DB2
public static final DB POSTGRESS
public final String dbProductname
public final String dbProductId
public static DB[] values()
for (DB c : DB.values()) System.out.println(c);
public static DB 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 boolean isDb2(String dbProductName)
public static boolean isH2(String dbProductName)
public static boolean isPostgreSql(String dbProductName)
Copyright © 2020. All rights reserved.