org.compass.core.lucene.engine.store.jdbc
Class C3P0DataSourceProvider
java.lang.Object
org.compass.core.lucene.engine.store.jdbc.AbstractDataSourceProvider
org.compass.core.lucene.engine.store.jdbc.C3P0DataSourceProvider
- All Implemented Interfaces:
- DataSourceProvider
public class C3P0DataSourceProvider
- extends AbstractDataSourceProvider
A c3p0 data source provider. Creates a new C3P0 pooled data source. For configuration, use a
file called c3p0.properties and storing it as a top-level resource in the same
CLASSPATH / classloader that loads c3p0's jar file.
Will set the url, driverClass, user and password based on compass configuration settings.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C3P0DataSourceProvider
public C3P0DataSourceProvider()
doCreateDataSource
protected DataSource doCreateDataSource(String url,
CompassSettings settings)
throws CompassException
- Specified by:
doCreateDataSource in class AbstractDataSourceProvider
- Throws:
CompassException
Copyright (c) 2004-2008 The Compass Project.