Examples of addGeneralMethodComment()


Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

      method.addBodyLine("oredCriteria = new ArrayList<Criteria>();"); //$NON-NLS-1$
    } else {
      method.addBodyLine("oredCriteria = new ArrayList();"); //$NON-NLS-1$
    }

    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    // add shallow copy constructor if the update by
    // example methods are enabled - because the parameter
    // class for update by example methods will subclass this class
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

      method.setName(type.getShortName());
      method.addParameter(new Parameter(type, "example")); //$NON-NLS-1$
      method.addBodyLine("this.orderByClause = example.orderByClause;"); //$NON-NLS-1$
      method.addBodyLine("this.oredCriteria = example.oredCriteria;"); //$NON-NLS-1$
      method.addBodyLine("this.distinct = example.distinct;"); //$NON-NLS-1$
      commentGenerator.addGeneralMethodComment(method, introspectedTable);
      topLevelClass.addMethod(method);
    }

    // add field, getter, setter for orderby clause
    Field field = new Field();
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("setOrderByClause"); //$NON-NLS-1$
    method.addParameter(new Parameter(FullyQualifiedJavaType.getStringInstance(), "orderByClause")); //$NON-NLS-1$
    method.addBodyLine("this.orderByClause = orderByClause;"); //$NON-NLS-1$
    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setReturnType(FullyQualifiedJavaType.getStringInstance());
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setReturnType(FullyQualifiedJavaType.getStringInstance());
    method.setName("getOrderByClause"); //$NON-NLS-1$
    method.addBodyLine("return orderByClause;"); //$NON-NLS-1$
    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    // add field, getter, setter for distinct
    field = new Field();
    field.setVisibility(JavaVisibility.PROTECTED);
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("setDistinct"); //$NON-NLS-1$
    method.addParameter(new Parameter(FullyQualifiedJavaType.getBooleanPrimitiveInstance(), "distinct")); //$NON-NLS-1$
    method.addBodyLine("this.distinct = distinct;"); //$NON-NLS-1$
    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setReturnType(FullyQualifiedJavaType.getBooleanPrimitiveInstance());
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setReturnType(FullyQualifiedJavaType.getBooleanPrimitiveInstance());
    method.setName("isDistinct"); //$NON-NLS-1$
    method.addBodyLine("return distinct;"); //$NON-NLS-1$
    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    // add field and methods for the list of ored criteria
    field = new Field();
    field.setVisibility(JavaVisibility.PROTECTED);
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setReturnType(fqjt);
    method.setName("getOredCriteria"); //$NON-NLS-1$
    method.addBodyLine("return oredCriteria;"); //$NON-NLS-1$
    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("or"); //$NON-NLS-1$
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("or"); //$NON-NLS-1$
    method.addParameter(new Parameter(FullyQualifiedJavaType.getCriteriaInstance(), "criteria")); //$NON-NLS-1$
    method.addBodyLine("oredCriteria.add(criteria);"); //$NON-NLS-1$
    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("or"); //$NON-NLS-1$
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

    method.setName("or"); //$NON-NLS-1$
    method.setReturnType(FullyQualifiedJavaType.getCriteriaInstance());
    method.addBodyLine("Criteria criteria = createCriteriaInternal();"); //$NON-NLS-1$
    method.addBodyLine("oredCriteria.add(criteria);"); //$NON-NLS-1$
    method.addBodyLine("return criteria;"); //$NON-NLS-1$
    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    method = new Method();
    method.setVisibility(JavaVisibility.PUBLIC);
    method.setName("createCriteria"); //$NON-NLS-1$
View Full Code Here

Examples of org.mybatis.generator.api.CommentGenerator.addGeneralMethodComment()

    method.addBodyLine("Criteria criteria = createCriteriaInternal();"); //$NON-NLS-1$
    method.addBodyLine("if (oredCriteria.size() == 0) {"); //$NON-NLS-1$
    method.addBodyLine("oredCriteria.add(criteria);"); //$NON-NLS-1$
    method.addBodyLine("}"); //$NON-NLS-1$
    method.addBodyLine("return criteria;"); //$NON-NLS-1$
    commentGenerator.addGeneralMethodComment(method, introspectedTable);
    topLevelClass.addMethod(method);

    method = new Method();
    method.setVisibility(JavaVisibility.PROTECTED);
    method.setName("createCriteriaInternal"); //$NON-NLS-1$
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.