Package org.mybatis.generator.api

Examples of org.mybatis.generator.api.GeneratedJavaFile


    addFindAllMethod(topLevelClass, introspectedTable);
    addFindByCriteriaMethod(topLevelClass, introspectedTable);
    addGetExportDataMethod(topLevelClass, introspectedTable);

    List<GeneratedJavaFile> answer = new ArrayList<GeneratedJavaFile>();
    GeneratedJavaFile gjf = new GeneratedJavaFile(interfaze, targetProject);
    GeneratedJavaFile serviceImpl = new GeneratedJavaFile(topLevelClass,
        targetProject);
    answer.add(gjf);
    answer.add(serviceImpl);
    return answer;
  }
View Full Code Here


    addDeleteMethod(topLevelClass, introspectedTable);
    addShowUpdateMethod(topLevelClass, introspectedTable);
    addUpdateMethod(topLevelClass, introspectedTable);

    List<GeneratedJavaFile> answer = new ArrayList<GeneratedJavaFile>();
    GeneratedJavaFile action = new GeneratedJavaFile(topLevelClass,
        targetProject);
    answer.add(action);
    return answer;
  }
View Full Code Here

      method = getOtherInsertboolean("insertSelective", introspectedTable, tableName);
      method.removeAllBodyLines();
      interface1.addMethod(method);
    }

    GeneratedJavaFile file = new GeneratedJavaFile(interface1, project);
    files.add(file);
  }
View Full Code Here

    }
    if (enableInsertSelective) {
      topLevelClass.addMethod(getOtherInsertboolean("insertSelective", introspectedTable, tableName));
    }
    // 生成文件
    GeneratedJavaFile file = new GeneratedJavaFile(topLevelClass, project);
    files.add(file);
  }
View Full Code Here

      method = getOtherInsertboolean("insertSelective", introspectedTable, tableName);
      method.removeAllBodyLines();
      interface1.addMethod(method);
    }

    GeneratedJavaFile file = new GeneratedJavaFile(interface1, project);
    files.add(file);
  }
View Full Code Here

    }
    if (enableInsertSelective) {
      topLevelClass.addMethod(getOtherInsertboolean("insertSelective", introspectedTable, tableName));
    }
    // 生成文件
    GeneratedJavaFile file = new GeneratedJavaFile(topLevelClass, project);
    files.add(file);
  }
View Full Code Here

        if (compilationUnit.getFormattedContent().contains("oredCriteria")) {
          if (!isExample) {
            break;
          }
        }
        GeneratedJavaFile gjf = new GeneratedJavaFile(compilationUnit, context
            .getJavaModelGeneratorConfiguration().getTargetProject());
        answer.add(gjf);
      }
    }

    for (AbstractJavaGenerator javaGenerator : daoGenerators) {
      List<CompilationUnit> compilationUnits = javaGenerator.getCompilationUnits();
      for (CompilationUnit compilationUnit : compilationUnits) {
        GeneratedJavaFile gjf = new GeneratedJavaFile(compilationUnit, context
            .getJavaClientGeneratorConfiguration().getTargetProject());
        answer.add(gjf);
      }
    }
View Full Code Here

        if(compilationUnit.getFormattedContent().contains("oredCriteria")){
          if(!isExample){
            break;
          }
        }
        GeneratedJavaFile gjf = new GeneratedJavaFile(compilationUnit, context
            .getJavaModelGeneratorConfiguration().getTargetProject());
        answer.add(gjf);
      }
    }

    for (AbstractJavaGenerator javaGenerator : clientGenerators) {
      List<CompilationUnit> compilationUnits = javaGenerator.getCompilationUnits();
      for (CompilationUnit compilationUnit : compilationUnits) {
        GeneratedJavaFile gjf = new GeneratedJavaFile(compilationUnit, context
            .getJavaClientGeneratorConfiguration().getTargetProject());
        answer.add(gjf);
      }
    }
View Full Code Here

    method.addParameter(new Parameter(FullyQualifiedJavaType.getInteger(), "start")); //$NON-NLS-1$
    method.addBodyLine("this.start = start;"); //$NON-NLS-1$
    addSetterComment(method, OutputUtilities.lineSeparator+"\t *            开始行数,即mysql中的offset", "start");
    topLevelClass.addMethod(method);

    GeneratedJavaFile file = new GeneratedJavaFile(topLevelClass, context.getJavaModelGeneratorConfiguration()
        .getTargetProject());
    files.add(file);
    return files;
  }
View Full Code Here

    method.addParameter(new Parameter(FullyQualifiedJavaType.getInteger(), "start")); //$NON-NLS-1$
    method.addBodyLine("this.start = start;"); //$NON-NLS-1$
    addSetterComment(method, "开始行数,即mysql中的offset", "start");
    topLevelClass.addMethod(method);

    GeneratedJavaFile file = new GeneratedJavaFile(topLevelClass, context.getJavaModelGeneratorConfiguration()
        .getTargetProject());
    files.add(file);
    return files;
  }
View Full Code Here

TOP

Related Classes of org.mybatis.generator.api.GeneratedJavaFile

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.