IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.bc.common.pool
Class ConnectionPoolImpl

java.lang.Object
  extended by 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.


Field Summary
(package private)  boolean disablePool
           
(package private)  JDBCConnectionPoolFactoryImpl factory
           
(package private)  java.lang.String instID
           
(package private)  JdbcConnectionConfig jdbcConfig
           
(package private)  org.apache.commons.pool.ObjectPool pool
           
(package private)  PoolProperty poolProperty
           
 
Constructor Summary
ConnectionPoolImpl()
           
 
Method Summary
 java.sql.Connection borrowConnection()
           
 void destroy()
           
protected  java.lang.String getInstID()
           
 JdbcConnectionConfig getJdbcConfig()
           
 PoolProperty getPoolProperty()
           
 void initialize()
           
 boolean isDisablePool()
           
 void returnConnection(java.sql.Connection con)
           
 void setDisablePool(boolean disablePool)
           
 void setJdbcConfig(JdbcConnectionConfig jdbcConfig)
           
 void setPoolProperty(PoolProperty poolProperty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pool

org.apache.commons.pool.ObjectPool pool

poolProperty

PoolProperty poolProperty

jdbcConfig

JdbcConnectionConfig jdbcConfig

disablePool

boolean disablePool

factory

JDBCConnectionPoolFactoryImpl factory

instID

java.lang.String instID
Constructor Detail

ConnectionPoolImpl

public ConnectionPoolImpl()
Method Detail

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()

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010