Examples of DataSourceFactory


Examples of org.osgi.service.jdbc.DataSourceFactory

          tracker.open();
        else
          tracker = trackerRef.get();
      }
     
      DataSourceFactory dsf = tracker.getService();
      if(dsf != null) {
        try {
          if(jta) {
            ds.compareAndSet(null, wrapXADataSource(dsf.createXADataSource(props)));
          } else {
            ds.compareAndSet(null, dsf.createDataSource(props));
          }
        } catch (SQLException e) {
          String message = NLS.MESSAGES.getMessage("datasourcefactory.sql.exception", driverName, props,
              persistenceBundle.getSymbolicName(), persistenceBundle.getVersion());
          _logger.error(message, e);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.datasource.DataSourceFactory

    }
    final DataSourceCollector fc =
        (DataSourceCollector) getRootHandler().getHelperObject
            (ReportDefinitionReadHandler.DATASOURCE_FACTORY_KEY);

    final DataSourceFactory factory = (DataSourceFactory)
        ObjectUtilities.loadAndInstantiate(className, getClass(), DataSourceFactory.class);
    if (factory != null)
    {
      factory.configure(getRootHandler().getParserConfiguration());
      fc.addFactory(factory);
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.datasource.DataSourceFactory

  private void addFactoryCollector(final DataSourceCollector cf)
  {
    final Iterator it = cf.getFactories();
    while (it.hasNext())
    {
      final DataSourceFactory cfact = (DataSourceFactory) it.next();
      if (cfact instanceof DataSourceCollector)
      {
        addFactoryCollector((DataSourceCollector) cfact);
      }
      else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.datasource.DataSourceFactory

    }
    final DataSourceCollector fc =
        (DataSourceCollector) getRootHandler().getHelperObject
            (ReportDefinitionReadHandler.DATASOURCE_FACTORY_KEY);

    final DataSourceFactory factory = (DataSourceFactory)
        ObjectUtilities.loadAndInstantiate(className, getClass(), DataSourceFactory.class);
    if (factory != null)
    {
      factory.configure(getRootHandler().getParserConfiguration());
      fc.addFactory(factory);
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.datasource.DataSourceFactory

  private void addFactoryCollector(final DataSourceCollector cf)
  {
    final Iterator it = cf.getFactories();
    while (it.hasNext())
    {
      final DataSourceFactory cfact = (DataSourceFactory) it.next();
      if (cfact instanceof DataSourceCollector)
      {
        addFactoryCollector((DataSourceCollector) cfact);
      }
      else
View Full Code Here

Examples of org.teiid.test.framework.datasource.DataSourceFactory

      //NOTE: to run this test to validate the DataSourceMgr, do the following:
      //   ---  need 3 datasources,   Oracle, SqlServer and 1 other
     
      ConfigPropertyLoader config = ConfigPropertyLoader.getInstance();
     
      new DataSourceFactory(config);

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.