public enum EnumDB extends Enum<EnumDB>
| Enum Constant and Description |
|---|
MYSQL |
| Modifier and Type | Field and Description |
|---|---|
private String |
driverClass
数据库驱动.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDriverClass()
获取驱动.
|
static EnumDB |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumDB[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumDB MYSQL
private String driverClass
public static EnumDB[] values()
for (EnumDB c : EnumDB.values()) System.out.println(c);
public static EnumDB 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 String getDriverClass()
Copyright © 2015. All rights reserved.