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

java.lang.Object
  extended by org.compass.core.lucene.engine.store.jdbc.AbstractDataSourceProvider
All Implemented Interfaces:
DataSourceProvider
Direct Known Subclasses:
C3P0DataSourceProvider, DbcpDataSourceProvider, DriverManagerDataSourceProvider, ExternalDataSourceProvider, JndiDataSourceProvider

public abstract class AbstractDataSourceProvider
extends Object
implements DataSourceProvider

Author:
kimchy

Field Summary
protected  boolean autoCommit
           
protected  String driverClass
           
protected  String password
           
protected  String username
           
 
Constructor Summary
AbstractDataSourceProvider()
           
 
Method Summary
 void closeDataSource()
           
 void configure(String url, CompassSettings settings)
           
protected abstract  DataSource doCreateDataSource(String url, CompassSettings settings)
           
 DataSource getDataSource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driverClass

protected String driverClass

username

protected String username

password

protected String password

autoCommit

protected boolean autoCommit
Constructor Detail

AbstractDataSourceProvider

public AbstractDataSourceProvider()
Method Detail

configure

public void configure(String url,
                      CompassSettings settings)
               throws CompassException
Specified by:
configure in interface DataSourceProvider
Throws:
CompassException

getDataSource

public DataSource getDataSource()
Specified by:
getDataSource in interface DataSourceProvider

closeDataSource

public void closeDataSource()
Specified by:
closeDataSource in interface DataSourceProvider

doCreateDataSource

protected abstract DataSource doCreateDataSource(String url,
                                                 CompassSettings settings)
                                          throws CompassException
Throws:
CompassException


Copyright (c) 2004-2006 The Compass Project.