public class DataSourceFactoryImpl
extends Object
implements com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
Modifier and Type | Class and Description |
---|---|
static interface |
DataSourceFactoryImpl.PACL |
Constructor and Description |
---|
DataSourceFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
destroyDataSource(javax.sql.DataSource dataSource) |
javax.sql.DataSource |
initDataSource(Properties properties) |
javax.sql.DataSource |
initDataSource(String driverClassName,
String url,
String userName,
String password,
String jndiName) |
protected javax.sql.DataSource |
initDataSourceC3PO(Properties properties) |
protected javax.sql.DataSource |
initDataSourceDBCP(Properties properties) |
protected javax.sql.DataSource |
initDataSourceHikariCP(Properties properties) |
protected javax.sql.DataSource |
initDataSourceTomcat(Properties properties) |
protected boolean |
isPropertyC3PO(String key) |
protected boolean |
isPropertyDBCP(String key) |
protected boolean |
isPropertyHikariCP(String key) |
protected boolean |
isPropertyLiferay(String key) |
protected boolean |
isPropertyTomcat(String key) |
protected void |
registerConnectionPoolMetrics(com.liferay.portal.kernel.dao.jdbc.pool.metrics.ConnectionPoolMetrics connectionPoolMetrics) |
protected void |
testDatabaseClass(Properties properties) |
protected void |
testLiferayPoolProviderClass(String className) |
public void destroyDataSource(javax.sql.DataSource dataSource) throws Exception
destroyDataSource
in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
Exception
public javax.sql.DataSource initDataSource(Properties properties) throws Exception
initDataSource
in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
Exception
public javax.sql.DataSource initDataSource(String driverClassName, String url, String userName, String password, String jndiName) throws Exception
initDataSource
in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
Exception
protected javax.sql.DataSource initDataSourceC3PO(Properties properties) throws Exception
Exception
protected javax.sql.DataSource initDataSourceDBCP(Properties properties) throws Exception
Exception
protected javax.sql.DataSource initDataSourceHikariCP(Properties properties) throws Exception
Exception
protected javax.sql.DataSource initDataSourceTomcat(Properties properties) throws Exception
Exception
protected boolean isPropertyC3PO(String key)
protected boolean isPropertyDBCP(String key)
protected boolean isPropertyHikariCP(String key)
protected boolean isPropertyLiferay(String key)
protected boolean isPropertyTomcat(String key)
protected void registerConnectionPoolMetrics(com.liferay.portal.kernel.dao.jdbc.pool.metrics.ConnectionPoolMetrics connectionPoolMetrics)
protected void testDatabaseClass(Properties properties) throws Exception
Exception
protected void testLiferayPoolProviderClass(String className) throws Exception
Exception