| 枚举常量和说明 |
|---|
DB2
DB2
|
H2
H2
|
HSQL
HSQL
|
MYSQL
MYSQL
|
ORACLE
ORACLE
|
OTHER
UNKONWN DB
|
POSTGRE
POSTGRE
|
SQLITE
SQLITE
|
SQLSERVER
SQLSERVER
|
SQLSERVER2005
SQLSERVER2005
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getDb() |
static DBType |
getDBType(java.lang.String dbType)
获取数据库类型(默认 MySql)
|
java.lang.String |
getDesc() |
java.lang.String |
getQuote() |
static DBType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DBType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DBType MYSQL
public static final DBType ORACLE
public static final DBType DB2
public static final DBType H2
public static final DBType HSQL
public static final DBType SQLITE
public static final DBType POSTGRE
public static final DBType SQLSERVER2005
public static final DBType SQLSERVER
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 - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static DBType getDBType(java.lang.String dbType)
获取数据库类型(默认 MySql)
dbType - 数据库类型字符串public java.lang.String getDb()
public java.lang.String getQuote()
public java.lang.String getDesc()