Examples of DataSourceFactory


Examples of br.net.woodstock.rockframework.jdbc.DataSourceFactory

      if (inputStream == null) {
        throw new PersistenceException("File " + JDBCPersistenceHelper.PROPERTIES_FILE + " not found in classpath");
      }

      Properties properties = PropertiesReader.getPlainTextInstance().getProperties(inputStream);
      DataSourceFactory factory = new BasicDataSourceFactory();
      this.dataSource = factory.getDataSource(properties);
    } catch (Exception e) {
      throw new PersistenceException(e);
    }
  }
View Full Code Here

Examples of cc.concurrent.mango.DataSourceFactory

        }
        return new RuntimeContextImpl(parameters);
    }

    protected DataSource getDataSource() {
        final DataSourceFactory dataSourceFactory = dataSourceFactoryHolder.get();
        return dataSourceFactory.getDataSource(dataSourceName, sqlType);
    }
View Full Code Here

Examples of com.clarkparsia.empire.ds.DataSourceFactory

  /**
   * @inheritDoc
   */
    @Override
    public EntityManagerFactory createEntityManagerFactory(final String theUnitName, final Map theMap) {
        DataSourceFactory aFactory = selectFactory(theUnitName, theMap);

    if (aFactory != null) {
      return new EntityManagerFactoryImpl(aFactory, createUnitConfig(theUnitName, theMap));
        }
    else {
View Full Code Here

Examples of com.ibatis.sqlmap.engine.datasource.DataSourceFactory

        String type = attributes.getProperty("type");
        type = vars.typeHandlerFactory.resolveAlias(type);

        try {
          vars.errorCtx.setMoreInfo("Check the data source type or class.");
          DataSourceFactory dsFactory = (DataSourceFactory) Resources.instantiate(type);
          vars.errorCtx.setMoreInfo("Check the data source properties or configuration.");
          dsFactory.initialize(vars.dsProps);
          vars.dataSource = dsFactory.getDataSource();
          vars.errorCtx.setMoreInfo(null);
        } catch (Exception e) {
          if (e instanceof SqlMapException) {
            throw (SqlMapException) e;
          } else {
View Full Code Here

Examples of com.ibatis.sqlmap.engine.datasource.DataSourceFactory

        String type = attributes.getProperty("type");
        type = vars.typeHandlerFactory.resolveAlias(type);

        try {
          vars.errorCtx.setMoreInfo("Check the data source type or class.");
          DataSourceFactory dsFactory = (DataSourceFactory) Resources.instantiate(type);
          vars.errorCtx.setMoreInfo("Check the data source properties or configuration.");
          dsFactory.initialize(vars.dsProps);
          vars.dataSource = dsFactory.getDataSource();
          vars.errorCtx.setMoreInfo(null);
        } catch (Exception e) {
          if (e instanceof SqlMapException) {
            throw (SqlMapException) e;
          } else {
View Full Code Here

Examples of com.ibatis.sqlmap.engine.datasource.DataSourceFactory

  @NodeEvent("/sqlMapConfig/transactionManager/dataSource/end()")
  public void sqlMapConfigtransactionManagerdataSourceend(XNode context) throws Exception {
    String type = context.getStringAttribute("type");
    Class dataSourceClass = config.getTypeAliasRegistry().resolveAlias(type);
    DataSourceFactory dsFactory = (DataSourceFactory) dataSourceClass.newInstance();
    dsFactory.initialize(dataSourceProps);
    config.setDataSource(dsFactory.getDataSource());
  }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.datasource.DataSourceFactory

        String type = attributes.getProperty("type");
        type = vars.typeHandlerFactory.resolveAlias(type);

        try {
          vars.errorCtx.setMoreInfo("Check the data source type or class.");
          DataSourceFactory dsFactory = (DataSourceFactory) Resources.instantiate(type);
          vars.errorCtx.setMoreInfo("Check the data source properties or configuration.");
          dsFactory.initialize(vars.dsProps);
          vars.dataSource = dsFactory.getDataSource();
          vars.errorCtx.setMoreInfo(null);
        } catch (Exception e) {
          if (e instanceof SqlMapException) {
            throw (SqlMapException) e;
          } else {
View Full Code Here

Examples of com.sun.star.report.DataSourceFactory

            if ( mimetype == null )
            {
                mimetype = PentahoReportEngineMetaData.OPENDOCUMENT_TEXT;
            }

            final DataSourceFactory dataFactory = new SDBCReportDataFactory(m_cmpCtx, activeConnection);
            final StorageRepository storageRepository = new StorageRepository(input, output);

            final String inputName = "content.xml";
            final String outputName = "content.xml";
View Full Code Here

Examples of com.sun.star.report.DataSourceFactory

            if ( mimetype == null )
            {
                mimetype = PentahoReportEngineMetaData.OPENDOCUMENT_TEXT;
            }

            final DataSourceFactory dataFactory = new SDBCReportDataFactory(m_cmpCtx, activeConnection);
            final StorageRepository storageRepository = new StorageRepository(input, output);

            final String inputName = "content.xml";
            final String outputName = "content.xml";
View Full Code Here

Examples of com.sun.star.report.DataSourceFactory

            }

            final XChild child = UnoRuntime.queryInterface(XChild.class, activeConnection);
            final XDocumentDataSource docSource = UnoRuntime.queryInterface(XDocumentDataSource.class, child.getParent());
            final XModel model = UnoRuntime.queryInterface(XModel.class, docSource.getDatabaseDocument());
            final DataSourceFactory dataFactory = new SDBCReportDataFactory(m_cmpCtx, activeConnection);
            final StorageRepository storageRepository = new StorageRepository(input, output, model.getURL());

            final String inputName = "content.xml";
            final String outputName = "content.xml";
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.