Package net.sf.minuteProject.configuration.bean

Examples of net.sf.minuteProject.configuration.bean.Configuration


 
  // method

  public String getTechnicalPackage(Template template) {
    TemplateTarget templateTarget = template.getTemplateTarget();
    Configuration configuration = (Configuration)templateTarget.getTarget().getAbstractConfigurationRoot();
      StringBuffer sb = new StringBuffer(
        templateTarget.getPackageRoot()+"."+
        configuration.getModel().getName()+"."+
        template.getTechnicalPackage());
    return sb.toString();
  }
View Full Code Here


  }
 
    protected String getTemplatePath (Template template) {
      if ((templatePath==null || templatePath.equals("")) && isTemplatePathToReset) {
        isTemplatePathToReset = false;
        Configuration c = (Configuration)template.getTemplateTarget().getTarget().getAbstractConfigurationRoot();
        Hashtable<String, String> ht = new Hashtable<String, String>();
          TemplateTarget templateTarget = template.getTemplateTarget();
          Target target = templateTarget.getTarget();
       
        for (TemplateTarget templateTarget2 : target.getTemplateTargets()) {
View Full Code Here

    }
   
    private String getTemplateRelativeLibPath (Template template) {
      if (templateLibPath==null && isTemplateLibPathToReset) {
        isTemplateLibPathToReset = false;
        Configuration c = (Configuration)template.getTemplateTarget().getTarget().getAbstractConfigurationRoot();
        Hashtable<String, String> ht = new Hashtable<String, String>();
          TemplateTarget templateTarget = template.getTemplateTarget();
          Target target = templateTarget.getTarget();
//        StringBuffer sb = new StringBuffer();
        for (TemplateTarget templateTarget2 : target.getTemplateTargets()) {
View Full Code Here

    super(configurationFile);
  }

  @Override
  public AbstractConfiguration getConfigurationRoot() {
    return new Configuration();
  }
View Full Code Here

    if (args.length < 1) {
      System.exit(1);
    }
    config = args[0];
    XmlGenerator generator = new XmlGenerator(config);
    Configuration configuration = (Configuration) generator.load();
    Model model = configuration.getModel();
    generator.setModel(model);
    generator.loadModel(model);
    generator.loadTarget(model.getConfiguration(), model.getConfiguration()
        .getTarget());
    generator.setBaseElement (configuration);
View Full Code Here

  private List<Convention> conventions, kernelConventions;
  private Boolean areTablesIncluded, areViewsIncluded, enableUpdatableAreaConvention, isPkConventionSet=false;
  private WebServiceModel webServiceModel;
 
  public Configuration getConfiguration () {
    Configuration configuration = new Configuration();
    configuration.setModel(getModel());
    configuration.setTargets(getTargets());
    configuration.setCatalogDir(getCatalogDir());
    configuration.setConventions(getKernelConventions());
    return configuration;
  }
View Full Code Here

    super(bic);
  }

  @Override
  public AbstractConfiguration getConfigurationRoot() {
    return new Configuration();
  }
View Full Code Here

    logger.info("time taken : "+(endDate.getTime()-startDate.getTime())/1000+ "s.");
  }


  public void generate() throws MinuteProjectException {
    Configuration configuration = (Configuration) load();
    generate(configuration);   
  }
View Full Code Here

    applyTargetConventionAndGenerate(model.getConfiguration().getTarget());   
  }

  protected void loadAndGenerate (Targets targets) throws MinuteProjectException {
    Target targetFinal = new Target();
    Configuration configuration = model.getConfiguration();
    for (Target target : targets.getTargets()) {
//      TargetHolder targetHolder = new TargetHolder();
      loadTarget(configuration, target);
      configuration.getTarget().setIsGenerable(target.isGenerable());
//      generate(configuration.getTarget());
//      targetHolder.setTarget(model.getConfiguration().getTarget());
     
      targetFinal.complement(configuration.getTarget());
      targetFinal.complementAdditional (target);
      configuration.setTarget(new Target());
   
    configuration.setTarget(targetFinal);
    applyTargetConventionAndGenerate(configuration.getTarget());
//    for (Target target : targets.getTargets()) {
//      complementWithTargetInfo(configuration, target);
//      System.out.println("---");
//      generate(configuration.getTarget());
//    }
View Full Code Here

    super(bic);
  }

  @Override
  public AbstractConfiguration getConfigurationRoot() {
    return new Configuration();
  }
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.configuration.bean.Configuration

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.