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

java.lang.Object
  extended by org.compass.core.lucene.engine.store.jdbc.AbstractDataSourceProvider
      extended by org.compass.core.lucene.engine.store.jdbc.JndiDataSourceProvider
All Implemented Interfaces:
DataSourceProvider

public class JndiDataSourceProvider
extends AbstractDataSourceProvider

A JNDI based data source provider. Uses any additional jndi settings to get the JNDI initial context. The data source jndi name is the url set (without the jdbc:// prefix).

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.lucene.engine.store.jdbc.AbstractDataSourceProvider
autoCommit, driverClass, externalAutoCommit, password, username
 
Constructor Summary
JndiDataSourceProvider()
           
 
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

JndiDataSourceProvider

public JndiDataSourceProvider()
Method Detail

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.