Package net.risesoft.api.utils.jdbc
Enum DataBaseType
- java.lang.Object
-
- java.lang.Enum<DataBaseType>
-
- net.risesoft.api.utils.jdbc.DataBaseType
-
- All Implemented Interfaces:
Serializable,Comparable<DataBaseType>
public enum DataBaseType extends Enum<DataBaseType>
refer:http://blog.csdn.net/ring0hx/article/details/6152528
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADSClickHouseDB2DRDSKingbaseESMySqlOracleOscarPostgreSQLRDBMSSQLServerTddl
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringappendJDBCSuffixForReader(String jdbc)StringappendJDBCSuffixForWriter(String jdbc)StringformatPk(String splitPk)StringgetDriverClassName()StringgetTypeName()static StringparseIpFromJdbcUrl(String jdbcUrl)注意:目前只实现了从 mysql/oracle 中识别出ip 信息.未识别到则返回 null.StringquoteColumnName(String columnName)StringquoteTableName(String tableName)voidsetTypeName(String typeName)static DataBaseTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DataBaseType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MySql
public static final DataBaseType MySql
-
Tddl
public static final DataBaseType Tddl
-
DRDS
public static final DataBaseType DRDS
-
Oracle
public static final DataBaseType Oracle
-
SQLServer
public static final DataBaseType SQLServer
-
PostgreSQL
public static final DataBaseType PostgreSQL
-
RDBMS
public static final DataBaseType RDBMS
-
DB2
public static final DataBaseType DB2
-
ADS
public static final DataBaseType ADS
-
ClickHouse
public static final DataBaseType ClickHouse
-
KingbaseES
public static final DataBaseType KingbaseES
-
Oscar
public static final DataBaseType Oscar
-
-
Method Detail
-
values
public static DataBaseType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataBaseType c : DataBaseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataBaseType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getDriverClassName
public String getDriverClassName()
-
parseIpFromJdbcUrl
public static String parseIpFromJdbcUrl(String jdbcUrl)
注意:目前只实现了从 mysql/oracle 中识别出ip 信息.未识别到则返回 null.
-
getTypeName
public String getTypeName()
-
setTypeName
public void setTypeName(String typeName)
-
-