org.jpox.store.rdbms.datasource.c3p0
Class C3P0DataSourceFactory
java.lang.Object
org.jpox.store.rdbms.datasource.c3p0.C3P0DataSourceFactory
- All Implemented Interfaces:
- org.jpox.store.rdbms.datasource.JPOXDataSourceFactory
public class C3P0DataSourceFactory
- extends java.lang.Object
- implements org.jpox.store.rdbms.datasource.JPOXDataSourceFactory
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
- Version:
- $Revision: 1.1 $
|
Field Summary |
static org.jpox.util.Localiser |
LOCALISER
Localisation of messages. |
|
Method Summary |
javax.sql.DataSource |
makePooledDataSource(org.jpox.OMFContext omfCtx)
Method to make a C3P0 DataSource for use internally in JPOX. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCALISER
public static final org.jpox.util.Localiser LOCALISER
- Localisation of messages.
C3P0DataSourceFactory
public C3P0DataSourceFactory()
makePooledDataSource
public javax.sql.DataSource makePooledDataSource(org.jpox.OMFContext omfCtx)
- Method to make a C3P0 DataSource for use internally in JPOX.
- Specified by:
makePooledDataSource in interface org.jpox.store.rdbms.datasource.JPOXDataSourceFactory
- Parameters:
omfCtx - OMF Context
- Returns:
- The DataSource
- Throws:
java.lang.Exception - Thrown if an error occurs during creation
Copyright © -2008 . All Rights Reserved.