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