public enum DbType extends Enum<DbType>
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCreateKeySql(List<String> keys) |
String |
getDefaultparam() |
int |
getDefaultPort() |
String |
getFormatedbstr() |
String |
getFormatestr() |
JdbcBean |
getJdbcBeanByUrl(String url) |
String |
getJdbcDriver() |
String |
geturl(String host) |
String |
geturl(String host,
int port) |
String |
geturl(String host,
int port,
String defaultdb) |
String |
geturl(String host,
int port,
String defaultdb,
String urlparam) |
String |
geturl(String sshLocalhostprot,
String host,
int port,
String defaultdb,
String urlparam) |
boolean |
testConn(Connection conn) |
static DbType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DbType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DbType mysql
public static final DbType doris
public static final DbType impala
public static final DbType sqlserver
public static DbType[] values()
for (DbType c : DbType.values()) System.out.println(c);
public static DbType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getDefaultPort()
public boolean testConn(Connection conn)
public String getDefaultparam()
public String getFormatedbstr()
public String getFormatestr()
public String geturl(String sshLocalhostprot, String host, int port, String defaultdb, String urlparam)
public String getJdbcDriver()
Copyright © 2022. All rights reserved.