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

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


    method.setName("selectCount"
        + introspectedTable.getSelectByExampleStatementId()
            .substring(6));
    method.addParameter(new Parameter(type, "example")); //$NON-NLS-1$ 
    method.addJavaDocLine("/**");
    method.addJavaDocLine(" * @Description : 根据查询条件获取总的记录数量");
    method.addJavaDocLine(" */");

    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
 
View Full Code Here


    method.setName("selectCount"
        + introspectedTable.getSelectByExampleStatementId()
            .substring(6));
    method.addParameter(new Parameter(type, "example")); //$NON-NLS-1$ 
    method.addJavaDocLine("/**");
    method.addJavaDocLine(" * @Description : 根据查询条件获取总的记录数量");
    method.addJavaDocLine(" */");

    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }
 
View Full Code Here

        + introspectedTable.getSelectByExampleStatementId()
            .substring(6));
    method.addParameter(new Parameter(type, "example")); //$NON-NLS-1$ 
    method.addJavaDocLine("/**");
    method.addJavaDocLine(" * @Description : 根据查询条件获取总的记录数量");
    method.addJavaDocLine(" */");

    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }

 
View Full Code Here

    method.setReturnType(returnType);

    method.setName("selectByMap");
    method.addParameter(new Parameter(type, "paramMap")); //$NON-NLS-1$ 
    method.addSuppressTypeWarningsAnnotation();
    method.addJavaDocLine("/**");
    method.addJavaDocLine(" * @Description : 通过map参数进行查询");
    method.addJavaDocLine(" */");

    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
 
View Full Code Here

    method.setName("selectByMap");
    method.addParameter(new Parameter(type, "paramMap")); //$NON-NLS-1$ 
    method.addSuppressTypeWarningsAnnotation();
    method.addJavaDocLine("/**");
    method.addJavaDocLine(" * @Description : 通过map参数进行查询");
    method.addJavaDocLine(" */");

    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }
 
View Full Code Here

    method.setName("selectByMap");
    method.addParameter(new Parameter(type, "paramMap")); //$NON-NLS-1$ 
    method.addSuppressTypeWarningsAnnotation();
    method.addJavaDocLine("/**");
    method.addJavaDocLine(" * @Description : 通过map参数进行查询");
    method.addJavaDocLine(" */");

    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }

 
View Full Code Here

    Method method = new Method();
    method.setReturnType(new FullyQualifiedJavaType("int"));
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("add");
    method.addParameter(new Parameter(type, "entity"))
    method.addJavaDocLine("/**\n" + "* @Description:\n" + "* @param entity\n" + "*/");
    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }

  protected void addUpdateMethod(Interface interfaze,
View Full Code Here

    Method method = new Method();
    method.setReturnType(new FullyQualifiedJavaType("int"));
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("update");
    method.addParameter(new Parameter(type, "entity"))
    method.addJavaDocLine("/**\n" + "* @Description:\n" + "* @param entity\n" + "*/");
    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }

  protected void addDeleteMethod(Interface interfaze,
View Full Code Here

    Method method = new Method();
    method.setReturnType(new FullyQualifiedJavaType("int"));
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("delete");
    method.addParameter(new Parameter(type, "entity"))
    method.addJavaDocLine("/**\n" + "* @Description:\n" + "* @param entity\n" + "*/");
    interfaze.addImportedTypes(importedTypes);
    interfaze.addMethod(method);
  }

  // Pagination findPagination(Map<String,Object> queryMap,int currentPage,int pageSize);
View Full Code Here

    method.addParameter(new Parameter(type, "queryMap"))
    method.addParameter(new Parameter(FullyQualifiedJavaType
        .getIntInstance(), "currentPage"));// int currentPage
    method.addParameter(new Parameter(FullyQualifiedJavaType
        .getIntInstance(), "pageSize"));// int pageSize
    method.addJavaDocLine("/**\n" + "* @Description:\n" + "* @param queryMap 查询参数\n"
        + "* @param currentPage 当前页\n" + "* @param pageSize 每页大小\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.