当前位置: 首页>>代码示例>>Java>>正文


Java Field.addJavaDocLine方法代码示例

本文整理汇总了Java中org.mybatis.generator.api.dom.java.Field.addJavaDocLine方法的典型用法代码示例。如果您正苦于以下问题:Java Field.addJavaDocLine方法的具体用法?Java Field.addJavaDocLine怎么用?Java Field.addJavaDocLine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.mybatis.generator.api.dom.java.Field的用法示例。


在下文中一共展示了Field.addJavaDocLine方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
public void addFieldComment(Field field, IntrospectedTable introspectedTable) {
    if (suppressAllComments) {
        return;
    }

    StringBuilder sb = new StringBuilder();

    field.addJavaDocLine("/**"); //$NON-NLS-1$
    field
            .addJavaDocLine(" * This field was generated by MyBatis Generator."); //$NON-NLS-1$

    sb.append(" * This field corresponds to the database table "); //$NON-NLS-1$
    sb.append(introspectedTable.getFullyQualifiedTable());
    field.addJavaDocLine(sb.toString());

    addJavadocTag(field, false);

    field.addJavaDocLine(" */"); //$NON-NLS-1$
}
 
开发者ID:DomKing,项目名称:springbootWeb,代码行数:20,代码来源:DefaultCommentGenerator.java

示例2: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
public void addFieldComment(Field field, IntrospectedTable introspectedTable) {
    if (suppressAllComments) {
        return;
    }

    StringBuilder sb = new StringBuilder();

    field.addJavaDocLine("/**"); 
    field
            .addJavaDocLine(" * This field was generated by MyBatis Generator."); 

    sb.append(" * This field corresponds to the database table "); 
    sb.append(introspectedTable.getFullyQualifiedTable());
    field.addJavaDocLine(sb.toString());

    addJavadocTag(field, false);

    field.addJavaDocLine(" */"); 
}
 
开发者ID:xiachengwei5,项目名称:org.mybatis.generator.core-1.3.5,代码行数:20,代码来源:DefaultCommentGenerator.java

示例3: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
@Override
public void addFieldComment(Field field, IntrospectedTable introspectedTable) {
    if (suppressAllComments) {
        return;
    }

    StringBuilder sb = new StringBuilder();

    field.addJavaDocLine("/**"); //$NON-NLS-1$
    field
            .addJavaDocLine(" * This field was generated by MyBatis Generator."); //$NON-NLS-1$

    sb.append(" * This field corresponds to the database table "); //$NON-NLS-1$
    sb.append(introspectedTable.getFullyQualifiedTable());
    field.addJavaDocLine(sb.toString());

    addJavadocTag(field, false);

    field.addJavaDocLine(" */"); //$NON-NLS-1$
}
 
开发者ID:nextyu,项目名称:summer-mybatis-generator,代码行数:21,代码来源:DefaultCommentGenerator.java

示例4: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
public void addFieldComment(Field field, IntrospectedTable introspectedTable,
        IntrospectedColumn introspectedColumn) {
    if (suppressAllComments) {
        return;
    }
    StringBuilder sb = new StringBuilder();
    field.addJavaDocLine("/**");
    sb.append(" * ");
    sb.append(introspectedColumn.getRemarks());
    field.addJavaDocLine(sb.toString().replace("\n", " "));
    field.addJavaDocLine(" */");
}
 
开发者ID:xiachuanshou,项目名称:shop-manager,代码行数:13,代码来源:MyCommentGenerator.java

示例5: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
public void addFieldComment(Field field,
        IntrospectedTable introspectedTable,
        IntrospectedColumn introspectedColumn) {
    if (suppressAllComments) {
        return;
    }

    field.addJavaDocLine("/**"); //$NON-NLS-1$

    String remarks = introspectedColumn.getRemarks();
    if (addRemarkComments && StringUtility.stringHasValue(remarks)) {
        field.addJavaDocLine(" * Database Column Remarks:");
        String[] remarkLines = remarks.split(System.getProperty("line.separator"));  //$NON-NLS-1$
        for (String remarkLine : remarkLines) {
            field.addJavaDocLine(" *   " + remarkLine);  //$NON-NLS-1$
        }
    }

    field.addJavaDocLine(" *"); //$NON-NLS-1$
    field
            .addJavaDocLine(" * This field was generated by MyBatis Generator."); //$NON-NLS-1$

    StringBuilder sb = new StringBuilder();
    sb.append(" * This field corresponds to the database column "); //$NON-NLS-1$
    sb.append(introspectedTable.getFullyQualifiedTable());
    sb.append('.');
    sb.append(introspectedColumn.getActualColumnName());
    field.addJavaDocLine(sb.toString());

    addJavadocTag(field, false);

    field.addJavaDocLine(" */"); //$NON-NLS-1$
}
 
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:34,代码来源:DefaultCommentGenerator.java

示例6: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
@Override
public void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {
	super.addFieldComment(field, introspectedTable, introspectedColumn);
	if (introspectedColumn.getRemarks() != null && !introspectedColumn.getRemarks().equals("")) {
		field.addJavaDocLine("/**");
		field.addJavaDocLine(" * " + introspectedColumn.getRemarks());
		addJavadocTag(field, false);
		field.addJavaDocLine(" */");
	}
}
 
开发者ID:jmdhappy,项目名称:xxpay-master,代码行数:11,代码来源:CommentGenerator.java

示例7: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
@Override
public void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {
	super.addFieldComment(field, introspectedTable, introspectedColumn);
	if (introspectedColumn.getRemarks() != null && !"".equals(introspectedColumn.getRemarks())) {
		field.addJavaDocLine("/**");
		field.addJavaDocLine(" * " + introspectedColumn.getRemarks());
		addJavadocTag(field, false);
		field.addJavaDocLine(" */");
	}
}
 
开发者ID:ChangyiHuang,项目名称:shuzheng,代码行数:11,代码来源:CommentGenerator.java

示例8: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
public void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {
    if (StringUtility.stringHasValue(introspectedColumn.getRemarks())) {
        field.addJavaDocLine("/**");
        StringBuilder sb = new StringBuilder();
        sb.append(" * ");
        sb.append(introspectedColumn.getRemarks());
        field.addJavaDocLine(sb.toString());
        field.addJavaDocLine(" */");
    }
}
 
开发者ID:ling49043171,项目名称:mark-mybatis-generator,代码行数:11,代码来源:MyCommentGenerator.java

示例9: addFieldComment

import org.mybatis.generator.api.dom.java.Field; //导入方法依赖的package包/类
@Override
public void addFieldComment(Field field, IntrospectedTable introspectedTable,
		IntrospectedColumn introspectedColumn) {
	field.addJavaDocLine("/**");
	field.addJavaDocLine(" * " + introspectedColumn.getRemarks());
	field.addJavaDocLine(" */");
}
 
开发者ID:RuanHR,项目名称:Spring-Boot-Generater,代码行数:8,代码来源:CustomCommentGenerator.java


注:本文中的org.mybatis.generator.api.dom.java.Field.addJavaDocLine方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。