Package it.eng.qbe.datasource.configuration

Examples of it.eng.qbe.datasource.configuration.FileDataSourceConfiguration


    }
   
 
    boolean isJPA = false;
    File modelJarFile;
    FileDataSourceConfiguration c;
     
    JarFileRetriever jarFileRetriever = new JarFileRetriever(QbeEngineConfig.getInstance().getQbeDataMartDir());
    List<File> modelJarFiles = new ArrayList<File>();
    for(int i = 0; i < dataMartNames.size(); i++) {
      modelJarFile = jarFileRetriever.loadDatamartJarFile(dataMartNames.get(i));
      modelJarFiles.add(modelJarFile);
      c = new FileDataSourceConfiguration(dataMartNames.get(i), modelJarFile);
      compositeConfiguration.addSubConfiguration(c);
    }
   
    isJPA = jarFileRetriever.isAJPADatamartJarFile(modelJarFiles.get(0));
    if(modelJarFiles.size() > 1) {
View Full Code Here


    setName( dataSourceName );
    dataMartModelAccessModality = new AbstractModelAccessModality();

    // validate & set configuration
    if(configuration instanceof FileDataSourceConfiguration) {
      FileDataSourceConfiguration subConf = (FileDataSourceConfiguration)configuration;
      CompositeDataSourceConfiguration c = new CompositeDataSourceConfiguration(subConf.getModelName());
      c.addSubConfiguration(subConf);
      Iterator<String> it = subConf.loadDataSourceProperties().keySet().iterator();
      while(it.hasNext()) {
        String propertyName = it.next();
        c.loadDataSourceProperties().put(propertyName, subConf.loadDataSourceProperties().get(propertyName));
      }
      this.configuration = c;
    } else if(configuration instanceof CompositeDataSourceConfiguration) {
      CompositeDataSourceConfiguration c = (CompositeDataSourceConfiguration)configuration;
      if(c.getSubConfigurations() == null || c.getSubConfigurations().size() < 1) {
View Full Code Here


  public void open() {
    File jarFile = null;
   
    FileDataSourceConfiguration configuration = getFileDataSourceConfiguration();
   
    jarFile = configuration.getFile();
    if(jarFile == null) return;
   
    if (!classLoaderExtended){
      updateCurrentClassLoader(jarFile);
   
View Full Code Here

    IDataSourceConfiguration configuration;
   
    modelName = "My Model"
   
    File file = new File(QBE_FILE);
    configuration = new FileDataSourceConfiguration(modelName, file);
    configuration.loadDataSourceProperties().put("connection", connection);
    dataSource = DriverManager.getDataSource(JPADriver.DRIVER_ID, configuration, false);
  }
View Full Code Here

    IDataSourceConfiguration configuration;
   
    modelName = "My Model"
   
    File file = new File(QBE_FILE);
    configuration = new FileDataSourceConfiguration(modelName, file);
    configuration.loadDataSourceProperties().put("connection", connection);
    dataSource = DriverManager.getDataSource(JPADriver.DRIVER_ID, configuration, false);
  }
View Full Code Here

    IDataSourceConfiguration configuration;
   
    modelName = "My Model"
   
    File file = new File(QBE_FILE);
    configuration = new FileDataSourceConfiguration(modelName, file);
    configuration.loadDataSourceProperties().put("connection", connection);
    dataSource = DriverManager.getDataSource(JPADriver.DRIVER_ID, configuration, false);
  }
View Full Code Here

    IDataSourceConfiguration configuration;
   
    modelName = "My Model"
   
    File file = new File(QBE_FILE);
    configuration = new FileDataSourceConfiguration(modelName, file);
    configuration.loadDataSourceProperties().put("connection", connection);
    dataSource = DriverManager.getDataSource(JPADriver.DRIVER_ID, configuration, false);
  }
View Full Code Here

    IDataSourceConfiguration configuration;
   
    modelName = "My Model"
   
    File file = new File(QBE_FILE);
    configuration = new FileDataSourceConfiguration(modelName, file);
    configuration.loadDataSourceProperties().put("connection", connection);
    dataSource = DriverManager.getDataSource(JPADriver.DRIVER_ID, configuration, false);
  }
View Full Code Here

    IDataSourceConfiguration configuration;
   
    modelName = "My Model"
   
    File file = new File(QBE_FILE);
    configuration = new FileDataSourceConfiguration(modelName, file);
    configuration.loadDataSourceProperties().put("connection", connection);
    dataSource = DriverManager.getDataSource(JPADriver.DRIVER_ID, configuration, false);
  }
View Full Code Here

  @Override
  public void open() {
    File jarFile = null;
   
    FileDataSourceConfiguration configuration = getFileDataSourceConfiguration();
   
    jarFile = configuration.getFile();
    if(jarFile == null) return;
   
    myClassLoader = ClassLoaderManager.updateCurrentClassLoader(jarFile);
   
    super.initEntityManagerFactory( getConfiguration().getModelName() );
View Full Code Here

TOP

Related Classes of it.eng.qbe.datasource.configuration.FileDataSourceConfiguration

Copyright © 2018 www.massapicom. 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.