public class DbC3p0PoolServiceImpl extends DbPoolServiceImpl<ComboPooledDataSource> implements DbPoolService<ComboPooledDataSource>
DbPoolService using C3P0 as connection pool.| Constructor and Description | 
|---|
| DbC3p0PoolServiceImpl(EntityDiffService entityDiffService,
                     ConfigService configService,
                     JdbcService jdbcService) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.concurrent.Future<java.sql.Connection> | getConnection(ConnectionPoolConfig poolConfig)Retrieves a  Futurethat contains a connection config for the pool
 specified by the suppliedConnectionPoolConfigobject. | 
| java.util.concurrent.Future<java.sql.Connection> | getConnection(ConnectionPoolConfig poolConfig,
             ConnectionConfig connConfig)Retrieves a  Futurethat contains a connection object for the pool
 specified by the suppliedConnectionPoolConfigobject. | 
| java.util.Map<ConnectionPoolConfig,ComboPooledDataSource> | getPoolMap()Returns a map of all active pools. | 
| boolean | isActive()Returns true if an active pool exists. | 
| void | shutdownAll()Asks all available connection pools to be closed | 
| void | shutdownPool(ConnectionPoolConfig poolConfig)Shuts down the pool identified by the  ConnectionPoolConfigobject. | 
getDataSource, getDataSourceequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataSource, getDataSourcepublic DbC3p0PoolServiceImpl(EntityDiffService entityDiffService, ConfigService configService, JdbcService jdbcService)
public java.util.concurrent.Future<java.sql.Connection> getConnection(ConnectionPoolConfig poolConfig) throws java.sql.SQLException
DbPoolServiceFuture that contains a connection config for the pool
 specified by the supplied ConnectionPoolConfig object.getConnection in interface DbPoolService<ComboPooledDataSource>poolConfig - The config object specifying the connection poolFuturejava.sql.SQLExceptionpublic java.util.concurrent.Future<java.sql.Connection> getConnection(ConnectionPoolConfig poolConfig, ConnectionConfig connConfig) throws java.sql.SQLException
DbPoolServiceFuture that contains a connection object for the pool
 specified by the supplied ConnectionPoolConfig object. The connection
 is configured as specified by the ConnectionConfig.getConnection in interface DbPoolService<ComboPooledDataSource>poolConfig - The config object specifying the poolconnConfig - A config object specifying connection propertiesFuturejava.sql.SQLExceptionpublic java.util.Map<ConnectionPoolConfig,ComboPooledDataSource> getPoolMap()
DbPoolServicegetPoolMap in interface DbPoolService<ComboPooledDataSource>public void shutdownAll()
DbPoolServiceshutdownAll in interface DbPoolService<ComboPooledDataSource>public void shutdownPool(ConnectionPoolConfig poolConfig)
DbPoolServiceConnectionPoolConfig object.shutdownPool in interface DbPoolService<ComboPooledDataSource>poolConfig - The pool identifierpublic boolean isActive()
DbPoolServiceisActive in interface DbPoolService<ComboPooledDataSource>