Class DatasourceProperties
java.lang.Object
com.blueriq.component.api.datasource.DatasourceProperties
- All Implemented Interfaces:
IDatasourceProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDataSource
(String dataSourceName) long
int
int
int
int
long
int
long
getType()
getUrl()
int
boolean
boolean
boolean
void
setDriverClassName
(String driverClassName) void
setJndiName
(String jndiName) void
setMinEvictableIdleTimeMillis
(long minEvictableIdleTimeMillis) void
setNumTestsPerEvictionRun
(int numTestsPerEvictionRun) void
setPassword
(String password) void
setPoolInitialSize
(int poolInitialSize) void
setPoolMaxIdle
(int poolMaxIdle) void
setPoolMaxTotal
(int poolMaxTotal) void
setPoolMaxWait
(long poolMaxWait) void
setPoolMinIdle
(int poolMinIdle) void
setTestOnBorrow
(boolean testOnBorrow) void
setTestOnReturn
(boolean testOnReturn) void
setTestWhileIdle
(boolean testWhileIdle) void
setTimeBetweenEvictionRunsMillis
(long timeBetweenEvictionRunsMillis) void
void
void
setUsername
(String username) void
setValidationQuery
(String validationQuery) void
setValidationQueryTimeout
(int validationQueryTimeout)
-
Constructor Details
-
DatasourceProperties
public DatasourceProperties()
-
-
Method Details
-
getUrl
- Specified by:
getUrl
in interfaceIDatasourceProperties
-
setUrl
-
getUsername
- Specified by:
getUsername
in interfaceIDatasourceProperties
-
setUsername
-
getPassword
- Specified by:
getPassword
in interfaceIDatasourceProperties
-
setPassword
-
getDriverClassName
- Specified by:
getDriverClassName
in interfaceIDatasourceProperties
-
setDriverClassName
-
getJndiName
- Specified by:
getJndiName
in interfaceIDatasourceProperties
-
setJndiName
-
getPoolInitialSize
public int getPoolInitialSize()- Specified by:
getPoolInitialSize
in interfaceIDatasourceProperties
-
setPoolInitialSize
public void setPoolInitialSize(int poolInitialSize) -
getPoolMaxTotal
public int getPoolMaxTotal()- Specified by:
getPoolMaxTotal
in interfaceIDatasourceProperties
-
setPoolMaxTotal
public void setPoolMaxTotal(int poolMaxTotal) -
getPoolMaxIdle
public int getPoolMaxIdle()- Specified by:
getPoolMaxIdle
in interfaceIDatasourceProperties
-
setPoolMaxIdle
public void setPoolMaxIdle(int poolMaxIdle) -
getPoolMinIdle
public int getPoolMinIdle()- Specified by:
getPoolMinIdle
in interfaceIDatasourceProperties
-
setPoolMinIdle
public void setPoolMinIdle(int poolMinIdle) -
getPoolMaxWait
public long getPoolMaxWait()- Specified by:
getPoolMaxWait
in interfaceIDatasourceProperties
-
setPoolMaxWait
public void setPoolMaxWait(long poolMaxWait) -
getValidationQuery
- Specified by:
getValidationQuery
in interfaceIDatasourceProperties
-
setValidationQuery
-
getValidationQueryTimeout
public int getValidationQueryTimeout()- Specified by:
getValidationQueryTimeout
in interfaceIDatasourceProperties
-
setValidationQueryTimeout
public void setValidationQueryTimeout(int validationQueryTimeout) -
isTestOnBorrow
public boolean isTestOnBorrow()- Specified by:
isTestOnBorrow
in interfaceIDatasourceProperties
-
setTestOnBorrow
public void setTestOnBorrow(boolean testOnBorrow) -
isTestOnReturn
public boolean isTestOnReturn()- Specified by:
isTestOnReturn
in interfaceIDatasourceProperties
-
setTestOnReturn
public void setTestOnReturn(boolean testOnReturn) -
isTestWhileIdle
public boolean isTestWhileIdle()- Specified by:
isTestWhileIdle
in interfaceIDatasourceProperties
-
setTestWhileIdle
public void setTestWhileIdle(boolean testWhileIdle) -
getTimeBetweenEvictionRunsMillis
public long getTimeBetweenEvictionRunsMillis()- Specified by:
getTimeBetweenEvictionRunsMillis
in interfaceIDatasourceProperties
-
setTimeBetweenEvictionRunsMillis
public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis) -
getNumTestsPerEvictionRun
public int getNumTestsPerEvictionRun()- Specified by:
getNumTestsPerEvictionRun
in interfaceIDatasourceProperties
-
setNumTestsPerEvictionRun
public void setNumTestsPerEvictionRun(int numTestsPerEvictionRun) -
getMinEvictableIdleTimeMillis
public long getMinEvictableIdleTimeMillis()- Specified by:
getMinEvictableIdleTimeMillis
in interfaceIDatasourceProperties
-
setMinEvictableIdleTimeMillis
public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis) -
getType
- Specified by:
getType
in interfaceIDatasourceProperties
-
setType
-
buildDataSource
-
buildJndiDataSource
-