org.datanucleus.store.rdbms.datasource
Class C3P0DataSourceFactory
java.lang.Object
org.datanucleus.store.rdbms.datasource.AbstractDataSourceFactory
org.datanucleus.store.rdbms.datasource.C3P0DataSourceFactory
- All Implemented Interfaces:
- DataNucleusDataSourceFactory
public class C3P0DataSourceFactory
- extends AbstractDataSourceFactory
- implements DataNucleusDataSourceFactory
Plugin for the creation of a C3P0 connection pool.
Note that all C3P0 classes are named explicitly in the code to avoid loading
them at class initialisation.
See http://www.mchange.com/projects/c3p0/index.html
See http://www.sf.net/projects/c3p0
|
Method Summary |
DataSource |
makePooledDataSource(org.datanucleus.store.StoreManager storeMgr)
Method to make a C3P0 DataSource for use internally in DataNucleus. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C3P0DataSourceFactory
public C3P0DataSourceFactory()
makePooledDataSource
public DataSource makePooledDataSource(org.datanucleus.store.StoreManager storeMgr)
- Method to make a C3P0 DataSource for use internally in DataNucleus.
- Specified by:
makePooledDataSource in interface DataNucleusDataSourceFactory
- Parameters:
storeMgr - Context
- Returns:
- The DataSource
- Throws:
Exception - Thrown if an error occurs during creation
Copyright © 2012. All Rights Reserved.