Liferay 6.2-ce-ga5

com.liferay.portal.dao.jdbc
Class DataSourceFactoryImpl

java.lang.Object
  extended by com.liferay.portal.dao.jdbc.DataSourceFactoryImpl
All Implemented Interfaces:
DataSourceFactory

public class DataSourceFactoryImpl
extends Object
implements DataSourceFactory


Nested Class Summary
static interface DataSourceFactoryImpl.PACL
           
 
Constructor Summary
DataSourceFactoryImpl()
           
 
Method Summary
 void destroyDataSource(DataSource dataSource)
           
 DataSource initDataSource(Properties properties)
           
 DataSource initDataSource(String driverClassName, String url, String userName, String password, String jndiName)
           
protected  DataSource initDataSourceC3PO(Properties properties)
           
protected  DataSource initDataSourceDBCP(Properties properties)
           
protected  DataSource initDataSourceTomcat(Properties properties)
           
protected  boolean isPropertyC3PO(String key)
           
protected  boolean isPropertyDBCP(String key)
           
protected  boolean isPropertyLiferay(String key)
           
protected  boolean isPropertyTomcat(String key)
           
protected  void testClassForName(Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceFactoryImpl

public DataSourceFactoryImpl()
Method Detail

destroyDataSource

public void destroyDataSource(DataSource dataSource)
                       throws Exception
Specified by:
destroyDataSource in interface DataSourceFactory
Throws:
Exception

initDataSource

public DataSource initDataSource(Properties properties)
                          throws Exception
Specified by:
initDataSource in interface DataSourceFactory
Throws:
Exception

initDataSource

public DataSource initDataSource(String driverClassName,
                                 String url,
                                 String userName,
                                 String password,
                                 String jndiName)
                          throws Exception
Specified by:
initDataSource in interface DataSourceFactory
Throws:
Exception

initDataSourceC3PO

protected DataSource initDataSourceC3PO(Properties properties)
                                 throws Exception
Throws:
Exception

initDataSourceDBCP

protected DataSource initDataSourceDBCP(Properties properties)
                                 throws Exception
Throws:
Exception

initDataSourceTomcat

protected DataSource initDataSourceTomcat(Properties properties)
                                   throws Exception
Throws:
Exception

isPropertyC3PO

protected boolean isPropertyC3PO(String key)

isPropertyDBCP

protected boolean isPropertyDBCP(String key)

isPropertyLiferay

protected boolean isPropertyLiferay(String key)

isPropertyTomcat

protected boolean isPropertyTomcat(String key)

testClassForName

protected void testClassForName(Properties properties)
                         throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5