public class DbConfig extends Object
Constructor and Description |
---|
DbConfig() |
DbConfig(String url,
String user,
String pass)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
addConnProps(String key,
String value) |
Properties |
getConnProps() |
String |
getDriver() |
int |
getInitialSize() |
int |
getMaxActive() |
long |
getMaxWait() |
int |
getMinIdle() |
String |
getPass() |
String |
getUrl() |
String |
getUser() |
void |
init(String url,
String user,
String pass)
初始化
|
void |
setConnProps(Properties connProps) |
void |
setDriver(String driver) |
void |
setInitialSize(int initialSize) |
void |
setMaxActive(int maxActive) |
void |
setMaxWait(long maxWait) |
void |
setMinIdle(int minIdle) |
void |
setPass(String pass) |
void |
setUrl(String url) |
void |
setUser(String user) |
public void init(String url, String user, String pass)
url
- jdbc urluser
- 用户名pass
- 密码public String getDriver()
public void setDriver(String driver)
public String getUrl()
public void setUrl(String url)
public String getUser()
public void setUser(String user)
public String getPass()
public void setPass(String pass)
public int getInitialSize()
public void setInitialSize(int initialSize)
public int getMinIdle()
public void setMinIdle(int minIdle)
public int getMaxActive()
public void setMaxActive(int maxActive)
public long getMaxWait()
public void setMaxWait(long maxWait)
public Properties getConnProps()
public void setConnProps(Properties connProps)
Copyright © 2024. All rights reserved.