Package net.sf.minuteProject.configuration.bean

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


    return null;
  }

  public String getBeanClassName (Bean bean, Template template) {
    if (bean!=null) {
      Template templateTarget = CommonUtils.getTargetTemplate(template, BEAN_OBJECT_TEMPLATE);
      return CommonUtils.getClassName(bean, templateTarget);
    }
    return "BEAN CANNOT BE NULL";
  }
View Full Code Here


    return null;
  }
 
  public String getValidatorClassName (Validation validation, Template template) {
    if (validation!=null) {
      Template templateTarget = CommonUtils.getTargetTemplate(template, VALIDATION_WRAPPER_TEMPLATE);
      return CommonUtils.getClassName(validation, templateTarget);
    }
    return "VALIDATION CANNOT BE NULL";
  }
View Full Code Here

  public static String getJavaNameVariableFirstLetter (String string) {
    return FormatUtils.getJavaNameVariableFirstLetter(string);
  }
 
  public static String getPackageName (GeneratorBean bean, Template template, String targetTemplateName) {
    Template templateTarget = getTargetTemplate(template, targetTemplateName);
    return getPackageName(bean, templateTarget);
  }
View Full Code Here

  }
 
  public static String getRootAndTechnicalPackageName (Model model, String templateName) {
    if (model ==null || templateName==null)
      return "PACKAGENAME_ERROR";   
    Template template = getTemplate(model.getConfiguration(), templateName);
    return getPackageName (model, template);
  }
View Full Code Here

    }
    return ConvertUtils.getJavaTypeFromDBType(column);
  }

  public static String getTemplateFileName (GeneratorBean bean, Template template, String targetTemplateName) {
    Template templateTarget = getTargetTemplate(template, targetTemplateName);
    if (templateTarget==null) {
      logger.debug("ConfigFile not ok");
      return "ERROR on config file : missing "+targetTemplateName;
    }
    return getFileName(templateTarget, bean);
View Full Code Here

    }
    return getFileName(templateTarget, bean);
  }
  // TODO refactor 4 times
  protected static String getTemplateClassName (GeneratorBean bean, Template template, String targetTemplateName) {
    Template templateTarget = getTargetTemplate(template, targetTemplateName);
    if (templateTarget==null) {
      logger.debug("ConfigFile not ok");
      return "ERROR on config file : missing "+targetTemplateName;
    }
    return getClassName(bean, templateTarget);
View Full Code Here

    }
    return getClassName(bean, templateTarget);
  }
 
  protected static String getTemplateClassName (Table table, Template template, String targetTemplateName) {
    Template templateTarget = getTargetTemplate(template, targetTemplateName);
    if (templateTarget==null) {
      logger.debug("ERROR on config file : missing "+targetTemplateName);
      return "ERROR on config file : missing "+targetTemplateName;
    }
    return getClassName(table, templateTarget);
View Full Code Here

    return getClassName(table, templateTarget);
  }
 
  public static String getTemplateClassName (Table table, Model model, String targetTemplateName) {
    //Template templateTarget = getTargetTemplate(template, targetTemplateName);
    Template templateTarget = getTargetTemplate(model, targetTemplateName);
    if (templateTarget==null) {
      logger.debug("ERROR on config file : missing "+targetTemplateName);
      return "ERROR on config file : missing "+targetTemplateName;
    }
    return getClassName(table, templateTarget);
View Full Code Here

    return getClassName(table, templateTarget);
  }
 
  public static String getTemplateClassName (Table table, String targetTemplateName) {
    //Template templateTarget = getTargetTemplate(template, targetTemplateName);
    Template templateTarget = getTargetTemplate(table.getDatabase().getDataModel().getModel(), targetTemplateName);
    if (templateTarget==null) {
      logger.debug("ERROR on config file : missing "+targetTemplateName);
      return "ERROR on config file : missing "+targetTemplateName;
    }
    return getClassName(table, templateTarget);
View Full Code Here

    }
    return getClassName(table, templateTarget);
 

  protected static String getTemplateClassName (Package pack, Template template, String targetTemplateName) {
    Template templateTarget = getTargetTemplate(template, targetTemplateName);
    if (templateTarget==null) {
      logger.debug("ERROR on config file : missing "+targetTemplateName);
      return "ERROR on config file : missing "+targetTemplateName;
    }
    return getClassName(pack, templateTarget);
View Full Code Here

TOP

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

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.