com.ibm.btt.bc.common.pool
Class ConnectionPoolImpl
java.lang.Object
com.ibm.btt.bc.common.pool.ConnectionPoolImpl
- All Implemented Interfaces:
- ConnectionPool
public class ConnectionPoolImpl
- extends java.lang.Object
- implements ConnectionPool
JDBC connection pool implement. Now it is using apache ObjectPool.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pool
org.apache.commons.pool.ObjectPool pool
poolProperty
PoolProperty poolProperty
jdbcConfig
JdbcConnectionConfig jdbcConfig
disablePool
boolean disablePool
factory
JDBCConnectionPoolFactoryImpl factory
instID
java.lang.String instID
ConnectionPoolImpl
public ConnectionPoolImpl()
initialize
public void initialize()
throws java.lang.Exception
- Throws:
java.lang.Exception
borrowConnection
public java.sql.Connection borrowConnection()
throws java.lang.Exception
- Specified by:
borrowConnection
in interface ConnectionPool
- Throws:
java.lang.Exception
returnConnection
public void returnConnection(java.sql.Connection con)
throws java.lang.Exception
- Specified by:
returnConnection
in interface ConnectionPool
- Throws:
java.lang.Exception
destroy
public void destroy()
throws java.lang.Exception
- Throws:
java.lang.Exception
getJdbcConfig
public JdbcConnectionConfig getJdbcConfig()
setJdbcConfig
public void setJdbcConfig(JdbcConnectionConfig jdbcConfig)
getPoolProperty
public PoolProperty getPoolProperty()
setPoolProperty
public void setPoolProperty(PoolProperty poolProperty)
isDisablePool
public boolean isDisablePool()
setDisablePool
public void setDisablePool(boolean disablePool)
getInstID
protected java.lang.String getInstID()
(c) Copyright IBM Corporation 1998, 2011