public enum Database extends Enum<Database>
Enum Constant and Description |
---|
H2 |
MYSQL |
POSTGRESQL |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static boolean |
is(Database database) |
static Database |
of(EntityManager entityManager) |
static Database |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Database[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Database H2
public static final Database MYSQL
public static final Database POSTGRESQL
public static final Database UNKNOWN
public static Database[] values()
for (Database c : Database.values()) System.out.println(c);
public static Database 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 Database of(EntityManager entityManager)
public static boolean is(Database database)
Copyright © 2015–2021 OmniFaces. All rights reserved.