| 限定符和类型 | 方法和说明 |
|---|---|
static DBType |
typeOf(java.lang.String value)
通过type字符串获取对应的类型
|
static DBType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DBType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DBType MYSQL
public static final DBType SQLSERVER
public static final DBType POSTGRESQL
public static final DBType ORACLE
public static final DBType SQLITE
public static final DBType DB2
public static final DBType SYBASE
public static final DBType OTHER
public static DBType[] values()
for (DBType c : DBType.values()) System.out.println(c);
public static DBType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public static DBType typeOf(java.lang.String value)
value - type字符串,如:mysql、mssql、oracle、postgre等数据库种类名称