Examples of ModuleConfModel


Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

    {
    }

    public Object visitTemplateElement(TemplateElement element)
    {
        ModuleConfModel moduleConf = element.getModuleConf();
        String voFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmVoFields")).getValues();
        String voFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("qmVoFieldsTypes")).getValues();
        StringBuffer buffer = new StringBuffer("");
        for(int i = 0; i < voFields.length; i++)
            if(voFields[i] != null && voFields[i].trim().length() != 0)
                buffer.append((new StringBuilder("private ")).append(voFieldsTypes[i]).append(" ").append(voFields[i]).append(";\n\t").toString());
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

public class UpdateSetSql implements Visitor {

  @Override
  public Object visitTemplateElement(TemplateElement element) {
   
    ModuleConfModel moduleConf = element.getModuleConf();
    String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
    StringBuffer buffer = new StringBuffer("");
   
    for(int i = 0; i < domainFields.length; i++) {
      buffer.append(domainFields[i] + "=#{" + domainFields[i] + "}");
      if(i < domainFields.length - 1) {
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

public class InsertIntoValues implements Visitor {

  @Override
  public Object visitTemplateElement(TemplateElement element) {
   
    ModuleConfModel moduleConf = element.getModuleConf();
    String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
    StringBuffer buffer = new StringBuffer("");
   
    for(int i = 0; i < domainFields.length; i++) {
      buffer.append("#{" + domainFields[i] + "}");
      if(i < domainFields.length - 1) {
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class QueryJspFields implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
        String domainFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFieldsTypes")).getValues();
        String domainFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFieldsNames")).getValues();
        StringBuffer buffer = new StringBuffer("");
       
        int count = 0;
        for(int i = 0; i < domainFields.length; i++) {
                if(count == 0) {
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class QueryJspJson implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();       
        StringBuffer buffer = new StringBuffer("var json = '{");
       
        for(int i = 0; i < domainFields.length; i++) {
          if(i == 0) {
            buffer.append("\"" + domainFields[i] + "\":\"' + $(\"#" + domainFields[i] + "\").val() + '\"'");
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class QueryModelPropertyGetterSetter implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("queryModelForDomainFields")).getValues();
        String domainFieldsTypes[] = ((ExtendConfModel)moduleConf.getMapExtends().get("queryModelForDomainFieldsTypes")).getValues();
        StringBuffer buffer = new StringBuffer("");
       
        for(int i = 0; i < domainFields.length; i++) {
          if(domainFields[i] != null && domainFields[i].trim().length() != 0) {
                buffer.append((new StringBuilder("public void set")).append(domainFields[i].substring(0, 1).toUpperCase()).append(domainFields[i].substring(1)).append("(").append(domainFieldsTypes[i]).append(" obj) {\n\t\t").toString());
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class DomainToString implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
        StringBuffer buffer = new StringBuffer("\"Model\"+this.getClass().getName()+\": [");
       
        for(int i = 0; i < domainFields.length; i++)
        {
            String fieldName = domainFields[i];
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class AddJspFields implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String moduleName = ((ExtendConfModel)moduleConf.getMapExtends().get("moduleName")).getValue();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFields")).getValues();
        String domainFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFieldsNames")).getValues();
        StringBuffer buffer = new StringBuffer("");
       
        for(int i = 0; i < domainFields.length; i += 2)
        {
            buffer.append("<tr>\n\t");
View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class ListJspHeadFields implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFieldsNames[] = ((ExtendConfModel)moduleConf.getMapExtends().get("domainFieldsNames")).getValues();
        StringBuffer buffer = new StringBuffer("");
       
        for(int i = 0; i < domainFieldsNames.length; i++)
            buffer.append((new StringBuilder("<td>")).append(domainFieldsNames[i]).append("</td>\n\t").toString());

View Full Code Here

Examples of cn.javass.xgen.genconf.vo.ModuleConfModel

*/
public class QueryModelToString implements Visitor {

    public Object visitTemplateElement(TemplateElement element) {
     
        ModuleConfModel moduleConf = element.getModuleConf();
        String domainFields[] = ((ExtendConfModel)moduleConf.getMapExtends().get("queryModelForDomainFields")).getValues();
        StringBuffer buffer = new StringBuffer("\"Model\"+this.getClass().getName()+\",\"+super.toString()+\" ,[");
       
        for(int i = 0; i < domainFields.length; i++) {
          if(domainFields[i] != null && domainFields[i].trim().length() != 0)
            {
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.