public void addSetterComment(Method method, FullyQualifiedTable table, String columnName) { StringBuilder sb = new StringBuilder(); method.addJavaDocLine("/**"); // $NON-NLS-1$ method.addJavaDocLine(" * This method was generated by Apache iBATIS ibator."); // $NON-NLS-1$ sb.append(" * This method sets the value of the database column "); // $NON-NLS-1$ sb.append(table); sb.append('.'); sb.append(columnName); method.addJavaDocLine(sb.toString()); method.addJavaDocLine(" *"); // $NON-NLS-1$ Parameter parm = method.getParameters().get(0); sb.setLength(0); sb.append(" * @param "); // $NON-NLS-1$ sb.append(parm.getName()); sb.append(" the value for "); // $NON-NLS-1$ sb.append(table); sb.append('.'); sb.append(columnName); method.addJavaDocLine(sb.toString()); addIbatorJavadocTag(method); method.addJavaDocLine(" */"); // $NON-NLS-1$ }
public void addGeneralMethodComment(Method method, FullyQualifiedTable table) { StringBuilder sb = new StringBuilder(); method.addJavaDocLine("/**"); // $NON-NLS-1$ method.addJavaDocLine(" * This method was generated by Apache iBATIS ibator."); // $NON-NLS-1$ sb.append(" * This method corresponds to the database table "); // $NON-NLS-1$ sb.append(table); method.addJavaDocLine(sb.toString()); addIbatorJavadocTag(method); method.addJavaDocLine(" */"); // $NON-NLS-1$ }
public void addGetterComment(Method method, FullyQualifiedTable table, String columnName) { StringBuilder sb = new StringBuilder(); method.addJavaDocLine("/**"); // $NON-NLS-1$ method.addJavaDocLine(" * This method was generated by Apache iBATIS ibator."); // $NON-NLS-1$ sb.append(" * This method returns the value of the database column "); // $NON-NLS-1$ sb.append(table); sb.append('.'); sb.append(columnName); method.addJavaDocLine(sb.toString()); method.addJavaDocLine(" *"); // $NON-NLS-1$ sb.setLength(0); sb.append(" * @return the value of "); // $NON-NLS-1$ sb.append(table); sb.append('.'); sb.append(columnName); method.addJavaDocLine(sb.toString()); addIbatorJavadocTag(method); method.addJavaDocLine(" */"); // $NON-NLS-1$ }