Class DataSourceFactoryImpl

Object
com.liferay.portal.dao.jdbc.DataSourceFactoryImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.jdbc.DataSourceFactory

public class DataSourceFactoryImpl extends Object implements com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
Author:
Brian Wing Shun Chan, Shuyang Zhou
  • Constructor Details

    • DataSourceFactoryImpl

      public DataSourceFactoryImpl()
  • Method Details

    • destroyDataSource

      public void destroyDataSource(DataSource dataSource) throws Exception
      Specified by:
      destroyDataSource in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
      Throws:
      Exception
    • initDataSource

      public DataSource initDataSource(Properties properties) throws Exception
      Specified by:
      initDataSource in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
      Throws:
      Exception
    • initDataSource

      public DataSource initDataSource(String driverClassName, String url, String userName, String password, String jndiName) throws Exception
      Specified by:
      initDataSource in interface com.liferay.portal.kernel.dao.jdbc.DataSourceFactory
      Throws:
      Exception
    • initDataSourceHikariCP

      protected DataSource initDataSourceHikariCP(Properties properties) throws Exception
      Throws:
      Exception
    • isPropertyLiferay

      protected boolean isPropertyLiferay(String key)
    • testDatabaseClass

      protected void testDatabaseClass(String driverClassName) throws Exception
      Throws:
      Exception