public interface DataSourceAdapter
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
javax.sql.DataSource |
get()
获取真正的datasource
|
java.lang.String |
getDriverClassName() |
int |
getMaxActive() |
int |
getMaxIdle() |
int |
getNumActive() |
int |
getNumIdle() |
void |
setDriverClassName(java.lang.String driverClassName) |
void |
setInitialSize(int initialSize) |
void |
setMaxActive(int maxActive) |
void |
setMaxIdle(int maxIdle) |
void |
setMaxWait(long maxWait) |
void |
setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis) |
void |
setMinIdle(int minIdle) |
void |
setNumTestsPerEvictionRun(int numTestsPerEvictionRun) |
void |
setPassword(java.lang.String password) |
void |
setTestOnBorrow(boolean testOnBorrow) |
void |
setTestOnReturn(boolean testOnReturn) |
void |
setTestWhileIdle(boolean testWhileIdle) |
void |
setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) |
void |
setUrl(java.lang.String url) |
void |
setUsername(java.lang.String username) |
void |
setValidationQuery(java.lang.String validationQuery) |
void setDriverClassName(java.lang.String driverClassName)
void setUrl(java.lang.String url)
void setUsername(java.lang.String username)
void setPassword(java.lang.String password)
void setInitialSize(int initialSize)
void setMaxActive(int maxActive)
void setMaxIdle(int maxIdle)
void setMinIdle(int minIdle)
void setMaxWait(long maxWait)
void setTestOnBorrow(boolean testOnBorrow)
void setTestOnReturn(boolean testOnReturn)
void setTestWhileIdle(boolean testWhileIdle)
void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
void setNumTestsPerEvictionRun(int numTestsPerEvictionRun)
void setValidationQuery(java.lang.String validationQuery)
void close() throws java.sql.SQLException
java.sql.SQLException
javax.sql.DataSource get()
java.lang.String getDriverClassName()
int getMaxActive()
int getMaxIdle()
int getNumActive()
int getNumIdle()