org.compass.core.lucene.engine.store.jdbc
Class C3P0DataSourceProvider

java.lang.Object
  extended by org.compass.core.lucene.engine.store.jdbc.AbstractDataSourceProvider
      extended by 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

Field Summary
 
Fields inherited from class org.compass.core.lucene.engine.store.jdbc.AbstractDataSourceProvider
autoCommit, driverClass, externalAutoCommit, password, username
 
Constructor Summary
C3P0DataSourceProvider()
           
 
Method Summary
protected  DataSource doCreateDataSource(String url, CompassSettings settings)
           
 
Methods inherited from class org.compass.core.lucene.engine.store.jdbc.AbstractDataSourceProvider
closeDataSource, configure, getDataSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

C3P0DataSourceProvider

public C3P0DataSourceProvider()
Method Detail

doCreateDataSource

protected DataSource doCreateDataSource(String url,
                                        CompassSettings settings)
                                 throws CompassException
Specified by:
doCreateDataSource in class AbstractDataSourceProvider
Throws:
CompassException


Copyright (c) 2004-2009 The Compass Project.