Package it.eng.qbe.model.properties

Examples of it.eng.qbe.model.properties.SimpleModelProperties


    setLocale(locale);
    setDatamartModel(dataSource);
    //setDatamartLabels( QbeCacheManager.getInstance().getLabels( getDataSource() , getLocale() ) );
    setDatamartLabels( dataSource.getModelI18NProperties( getLocale() ) );
    if( getDatamartLabels() == null) {
      setDatamartLabels( new SimpleModelProperties() );
    }
    return buildQbeTree(datamartName);
  }
View Full Code Here


      } catch (Exception e2) {
        logger.error("Error closing the jar file",e2);
      }
    } 
   
    return new SimpleModelProperties(properties);
  }
View Full Code Here

      list = new ArrayList();
      this.dataSource = dataSource;
      //setDatamartLabels( QbeCacheManager.getInstance().getLabels( dataSource , locale ) );
      setDatamartLabels( dataSource.getModelI18NProperties(locale) );
      if( getDatamartLabels() == null) {
        setDatamartLabels( new SimpleModelProperties() );
      }
    }
View Full Code Here

  public String getModelName() {
    return modelName;
  }

  public IModelProperties loadModelProperties() {
    return new SimpleModelProperties(new Properties());
  }
View Full Code Here

  public IModelProperties loadModelProperties() {
    return new SimpleModelProperties(new Properties());
  }

  public IModelProperties loadModelI18NProperties() {
    return new SimpleModelProperties(new Properties());
  }
View Full Code Here

  public IModelProperties loadModelI18NProperties() {
    return new SimpleModelProperties(new Properties());
  }

  public IModelProperties loadModelI18NProperties(Locale locale) {
    return new SimpleModelProperties(new Properties());
  }
View Full Code Here

 
  /* (non-Javadoc)
   * @see it.eng.qbe.datasource.configuration.IDataSourceConfiguration#getModelProperties()
   */
  public IModelProperties loadModelProperties() {
    SimpleModelProperties properties = new SimpleModelProperties();
    Iterator<IDataSourceConfiguration> it = subConfigurations.iterator();
    while (it.hasNext()) {
      IDataSourceConfiguration configuration = it.next();
      IModelProperties props = configuration.loadModelProperties();
      properties.putAll(props);
    }
   
    return properties;
  }
View Full Code Here

  /* (non-Javadoc)
   * @see it.eng.qbe.datasource.configuration.IDataSourceConfiguration#getModelLabels(java.util.Locale)
   */
  public SimpleModelProperties loadModelI18NProperties(Locale locale) {
    SimpleModelProperties properties = new SimpleModelProperties();
    Iterator<IDataSourceConfiguration> it = subConfigurations.iterator();
    while (it.hasNext()) {
      IDataSourceConfiguration subModelConfiguration = it.next();
      IModelProperties subModelProperties = subModelConfiguration.loadModelI18NProperties(locale);
      properties.putAll(subModelProperties);
    }
   
    return properties;
  }
View Full Code Here

 
  public IModelProperties loadModelI18NProperties() {
    return loadModelI18NProperties(null);
  }
  public IModelProperties loadModelI18NProperties(Locale locale) {
    SimpleModelProperties properties = modelLabelsDAOFileImpl.loadProperties(locale);
    return properties;
  }
View Full Code Here

 
  /* (non-Javadoc)
   * @see it.eng.qbe.dao.DatamartPropertiesDAO#loadDatamartProperties(java.lang.String)
   */
  public IModelProperties loadModelProperties() {
    SimpleModelProperties properties;
   
    JarFile jf = null;
    try {
      jf = new JarFile( modelJarFile );
      properties = loadQbePropertiesFormJarFile(jf);
    } catch (IOException e) {
      logger.error("Error loadin properties",e);
      return new SimpleModelProperties();
    }finally{
      try {
        if(jf!=null){
          jf.close()
        }
View Full Code Here

TOP

Related Classes of it.eng.qbe.model.properties.SimpleModelProperties

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.