public enum DatabaseProduct extends Enum<DatabaseProduct>
| Enum Constant and Description |
|---|
H2 |
MYSQL |
ORACLE |
OTHER |
POSTGRESQL |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseProduct |
fromMetaData(DatabaseMetaData metaData) |
static DatabaseProduct |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseProduct[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseProduct ORACLE
public static final DatabaseProduct MYSQL
public static final DatabaseProduct POSTGRESQL
public static final DatabaseProduct H2
public static final DatabaseProduct OTHER
public static DatabaseProduct[] values()
for (DatabaseProduct c : DatabaseProduct.values()) System.out.println(c);
public static DatabaseProduct 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 DatabaseProduct fromMetaData(DatabaseMetaData metaData) throws SQLException
SQLExceptionCopyright © 2012–2018 Emory University. All rights reserved.