@ComponentProfile(summary="Build a connection pool using C3P0") public class DefaultPoolFactory extends java.lang.Object implements JdbcPoolFactory, ConnectionPoolBuilder
JdbcPooledConnection
and
PluggableJdbcPooledConnection
.In the adapter configuration file this class is aliased as jdbc-default-pool-factory which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
DefaultPoolFactory() |
Modifier and Type | Method and Description |
---|---|
C3P0PooledDataSource |
build(PluggableJdbcPooledConnection conn)
Build a
PooledDataSource . |
com.mchange.v2.c3p0.ComboPooledDataSource |
create() |
public com.mchange.v2.c3p0.ComboPooledDataSource create() throws java.lang.Exception
create
in interface JdbcPoolFactory
java.lang.Exception
public C3P0PooledDataSource build(PluggableJdbcPooledConnection conn) throws java.lang.Exception
ConnectionPoolBuilder
PooledDataSource
.build
in interface ConnectionPoolBuilder
java.lang.Exception