com.liferay.portal.dao.jdbc
Class DataSourceFactoryImpl
java.lang.Object
com.liferay.portal.dao.jdbc.DataSourceFactoryImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
public class DataSourceFactoryImpl
- extends java.lang.Object
- implements com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
- Author:
- Brian Wing Shun Chan, Shuyang Zhou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceFactoryImpl
public DataSourceFactoryImpl()
destroyDataSource
public void destroyDataSource(javax.sql.DataSource dataSource)
throws java.lang.Exception
- Specified by:
destroyDataSource in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
- Throws:
java.lang.Exception
initDataSource
public javax.sql.DataSource initDataSource(java.util.Properties properties)
throws java.lang.Exception
- Specified by:
initDataSource in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
- Throws:
java.lang.Exception
initDataSource
public javax.sql.DataSource initDataSource(java.lang.String driverClassName,
java.lang.String url,
java.lang.String userName,
java.lang.String password)
throws java.lang.Exception
- Specified by:
initDataSource in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
- Throws:
java.lang.Exception
initDataSourceC3PO
protected javax.sql.DataSource initDataSourceC3PO(java.util.Properties properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
initDataSourceDBCP
protected javax.sql.DataSource initDataSourceDBCP(java.util.Properties properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
initDataSourcePrimrose
protected javax.sql.DataSource initDataSourcePrimrose(java.util.Properties properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
initDataSourceTomcat
protected javax.sql.DataSource initDataSourceTomcat(java.util.Properties properties)
throws java.lang.Exception
- Throws:
java.lang.Exception
isPropertyC3PO
protected boolean isPropertyC3PO(java.lang.String key)
isPropertyDBCP
protected boolean isPropertyDBCP(java.lang.String key)
isPropertyLiferay
protected boolean isPropertyLiferay(java.lang.String key)
isPropertyPrimrose
protected boolean isPropertyPrimrose(java.lang.String key)
isPropertyTomcat
protected boolean isPropertyTomcat(java.lang.String key)