Package org.mybatis.generator.api.dom.java

Examples of org.mybatis.generator.api.dom.java.Method.addJavaDocLine()


    method.setReturnType(returnType);
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("findById");
    method.addParameter(new Parameter(
        new FullyQualifiedJavaType("long"), "id"))
    method.addJavaDocLine("/**\n" + "* @Description:\n" + "* @param id\n" + "*/");
    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }

  protected void addFindAllMethod(Interface interfaze,
View Full Code Here


    importedTypes.add(returnType);
    Method method = new Method();
    method.setReturnType(returnType);
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("findAll");
    method.addJavaDocLine("/**\n" + "* @Description:\n" + "*/");
    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }

  protected void addFindByCriteriaMethod(Interface interfaze,
View Full Code Here

    method.setName("findByCriteria");
    FullyQualifiedJavaType pType = new FullyQualifiedJavaType(
        introspectedTable.getExampleType());
    importedTypes.add(pType);
    method.addParameter(new Parameter(pType, "criteria"));
    method.addJavaDocLine("/**\n" + "* @Description:\n" + "*/");
    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }
 
  protected void addGetExportDataMethod(Interface interfaze,
View Full Code Here

    Method method = new Method();
    method.addSuppressTypeWarningsAnnotation();
    method.setReturnType(returnType);
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("getExportData");
    method.addJavaDocLine("/**\n" + "* @Description: 获取导出到Excel的数据\n" + "*/");
    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }
}
 
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.