Class DataSourceProviderImpl

java.lang.Object
org.exoplatform.services.jdbc.impl.DataSourceProviderImpl
All Implemented Interfaces:
DataSourceProvider

public class DataSourceProviderImpl extends Object implements DataSourceProvider
The default implementation of DataSourceProvider. It allows you to define a data source as managed thanks to the configuration of this component. When the data source is declared as managed, the DataSource object will be wrap into a ManagedDataSource.
Version:
$Id$
Author:
Nicolas Filotto
  • Field Details

    • PARAM_CHECK_TX

      protected static final String PARAM_CHECK_TX
      The name of the parameter to know if the tx has to be checked or not.
      See Also:
    • PARAM_ALWAYS_MANAGED

      protected static final String PARAM_ALWAYS_MANAGED
      The name of the parameter to know if the data sources are always managed.
      See Also:
    • PARAM_MANAGED_DS

      protected static final String PARAM_MANAGED_DS
      The name of the parameter of all the managed data sources.
      See Also:
    • tm

      protected final javax.transaction.TransactionManager tm
      The transaction manager
    • checkIfTxActive

      protected boolean checkIfTxActive
      Indicates if the data source needs to check if a tx is active to decide if the provided connection needs to be managed or not. If it is set to false, the data source will provide only managed connections if the data source itself is managed.
    • alwaysManaged

      protected boolean alwaysManaged
      Indicates that all the data sources are managed
    • managedDS

      protected final Set<String> managedDS
      A set of all the data sources that are managed
  • Constructor Details

    • DataSourceProviderImpl

      public DataSourceProviderImpl(org.exoplatform.container.xml.InitParams params)
      The default constructor
    • DataSourceProviderImpl

      public DataSourceProviderImpl(org.exoplatform.container.xml.InitParams params, TransactionService tService)
      The default constructor
  • Method Details