|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.dbcp.BasicDataSource
biz.hammurapi.jdbc.BasicDataSourceComponent
public class BasicDataSourceComponent
Invokes close() in stop() method.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.dbcp.BasicDataSource |
|---|
connectionPool, connectionProperties, dataSource, defaultAutoCommit, defaultCatalog, defaultReadOnly, defaultTransactionIsolation, driverClassName, initialSize, logWriter, maxActive, maxIdle, maxOpenPreparedStatements, maxWait, minEvictableIdleTimeMillis, minIdle, numTestsPerEvictionRun, password, poolPreparedStatements, testOnBorrow, testOnReturn, testWhileIdle, timeBetweenEvictionRunsMillis, url, username, validationQuery |
| Constructor Summary | |
|---|---|
BasicDataSourceComponent()
|
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()
|
void |
setInitConnectionStatement(java.lang.String initConnectionStatement)
Statement which is invoked every time connection is obtained from the data source. |
void |
setOwner(java.lang.Object owner)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.commons.dbcp.BasicDataSource |
|---|
addConnectionProperty, close, createDataSource, getConnection, getDefaultAutoCommit, getDefaultCatalog, getDefaultReadOnly, getDefaultTransactionIsolation, getDriverClassName, getInitialSize, getLogAbandoned, getLoginTimeout, getLogWriter, getMaxActive, getMaxIdle, getMaxOpenPreparedStatements, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getPassword, getRemoveAbandoned, getRemoveAbandonedTimeout, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getValidationQuery, isAccessToUnderlyingConnectionAllowed, isPoolPreparedStatements, removeConnectionProperty, setAccessToUnderlyingConnectionAllowed, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultTransactionIsolation, setDriverClassName, setInitialSize, setLogAbandoned, setLoginTimeout, setLogWriter, setMaxActive, setMaxIdle, setMaxOpenPreparedStatements, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setPassword, setPoolPreparedStatements, setRemoveAbandoned, setRemoveAbandonedTimeout, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUsername, setValidationQuery |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicDataSourceComponent()
| Method Detail |
|---|
public void setOwner(java.lang.Object owner)
setOwner in interface biz.hammurapi.config.Component
public void start()
throws biz.hammurapi.config.ConfigurationException
start in interface biz.hammurapi.config.Componentbiz.hammurapi.config.ConfigurationException
public void stop()
throws biz.hammurapi.config.ConfigurationException
stop in interface biz.hammurapi.config.Componentbiz.hammurapi.config.ConfigurationExceptionpublic void setInitConnectionStatement(java.lang.String initConnectionStatement)
initConnectionStatement -
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcegetConnection in class org.apache.commons.dbcp.BasicDataSourcejava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||