Package org.aoju.bus.shade.screw.dialect
Enum Class DatabaseType
- All Implemented Interfaces:
Serializable,Comparable<DatabaseType>,Constable
数据库类型
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCacheDBDB2H2MARIA DBMYSQLORACLEUNKONWN DBPOSTGRESQLSERVERSQL SERVER 2005 -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseType根据连接地址判断数据库类型static DatabaseType获取数据库类型static DatabaseTypeReturns the enum constant of this class with the specified name.static DatabaseType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CACHEDB
CacheDB -
DB2
DB2 -
H2
H2 -
MARIADB
MARIA DB -
MYSQL
MYSQL -
ORACLE
ORACLE -
POSTGRE_SQL
POSTGRE -
SQL_SERVER2005
SQL SERVER 2005 -
SQL_SERVER
SQLSERVER -
OTHER
UNKONWN DB
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getType
获取数据库类型- Parameters:
dbType-String数据库类型字符串- Returns:
DatabaseType
-
getDbType
根据连接地址判断数据库类型- Parameters:
jdbcUrl-String连接地址- Returns:
DatabaseTypeDatabaseType
-