类 DbConfig
- java.lang.Object
-
- com.xwl41.common.basic.helper.db.conf.DbConfig
-
- 直接已知子类:
H2Config,MySQLConfig
public abstract class DbConfig extends Object
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Charsetcharsetsstatic Stringcolonprotected StringdbNameprotected DBTypedbTypeprotected Stringhoststatic StringjdbcPrefixprotected Stringpasswordprotected Integerportprotected Stringurlprotected StringurlSuffixprotected StringurlTemplateprotected Stringusername
-
构造器概要
构造器 构造器 说明 DbConfig()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract StringbuildUrl(boolean withDbName)CharsetgetCharsets()StringgetDbName()DBTypegetDbType()StringgetHost()StringgetPassword()IntegergetPort()StringgetUrl()StringgetUrlSuffix()StringgetUrlTemplate()StringgetUsername()DbConfigsetCharsets(Charset charsets)DbConfigsetDbName(String dbName)DbConfigsetDbType(DBType dbType)DbConfigsetHost(String host)DbConfigsetPassword(String password)DbConfigsetPort(Integer port)DbConfigsetUrl(String url)DbConfigsetUrlSuffix(String urlSuffix)DbConfigsetUrlTemplate(String urlTemplate)DbConfigsetUsername(String username)
-
-
-
字段详细资料
-
host
protected String host
-
port
protected Integer port
-
username
protected String username
-
password
protected String password
-
url
protected String url
-
urlTemplate
protected String urlTemplate
-
urlSuffix
protected String urlSuffix
-
dbType
protected DBType dbType
-
dbName
protected String dbName
-
charsets
protected Charset charsets
-
-
方法详细资料
-
getHost
public String getHost()
-
getPort
public Integer getPort()
-
getUsername
public String getUsername()
-
getPassword
public String getPassword()
-
getUrl
public String getUrl()
-
getUrlTemplate
public String getUrlTemplate()
-
getUrlSuffix
public String getUrlSuffix()
-
getDbType
public DBType getDbType()
-
getDbName
public String getDbName()
-
getCharsets
public Charset getCharsets()
-
buildUrl
protected abstract String buildUrl(boolean withDbName)
-
-