public class PooledConnectionFactory extends ConnectionFactory
| Constructor and Description |
|---|
PooledConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Fetches a connection from the factory.
|
com.mchange.v2.c3p0.ComboPooledDataSource |
getPooledDataSource() |
void |
releaseConnection(Connection conn)
Destroys a connection.
|
void |
start(ConnectionFactoryConfig config,
ClassLoader classLoader)
Starts the connection factory.
|
void |
stop()
Closes the connection factory, including all allocated connections etc.
|
getConnectionFactorypublic void start(ConnectionFactoryConfig config, ClassLoader classLoader) throws CacheLoaderException
ConnectionFactorystart in class ConnectionFactoryCacheLoaderExceptionpublic void stop()
ConnectionFactorystop in class ConnectionFactorypublic Connection getConnection() throws CacheLoaderException
ConnectionFactorygetConnection in class ConnectionFactoryCacheLoaderExceptionpublic void releaseConnection(Connection conn)
ConnectionFactoryreleaseConnection in class ConnectionFactorypublic com.mchange.v2.c3p0.ComboPooledDataSource getPooledDataSource()
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.