All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.koubei.abator.KoubeiCommentGenerator Maven / Gradle / Ivy

The newest version!
/**
 * Project: ibator_koubei
 * 
 * File Created at 2009-10-12
 */
package com.koubei.abator;

import java.text.SimpleDateFormat;
import java.util.Properties;

import org.apache.ibatis.ibator.api.CommentGenerator;
import org.apache.ibatis.ibator.api.FullyQualifiedTable;
import org.apache.ibatis.ibator.api.dom.java.CompilationUnit;
import org.apache.ibatis.ibator.api.dom.java.InnerClass;
import org.apache.ibatis.ibator.api.dom.java.InnerEnum;
import org.apache.ibatis.ibator.api.dom.xml.TextElement;
import org.apache.ibatis.ibator.api.dom.xml.XmlElement;

public class KoubeiCommentGenerator implements CommentGenerator {

	@Override
	public void addClassComment(InnerClass innerClass, FullyQualifiedTable table) {
	}

	@Override
	public void addComment(XmlElement xmlElement) {
//		xmlElement.addElement(new TextElement("")); //$NON-NLS-1$
	}

	@Override
	public void addConfigurationProperties(Properties properties) {
	}

	@Override
	public void addEnumComment(InnerEnum innerEnum, FullyQualifiedTable table) {
	}

	@Override
	public void addFieldComment(
			org.apache.ibatis.ibator.api.dom.java.Field field,
			FullyQualifiedTable table, String columnName) {
	}

	@Override
	public void addFieldComment(
			org.apache.ibatis.ibator.api.dom.java.Field field,
			FullyQualifiedTable table) {
	}

	@Override
	public void addGeneralMethodComment(
			org.apache.ibatis.ibator.api.dom.java.Method method,
			FullyQualifiedTable table) {
	}

	@Override
	public void addGetterComment(
			org.apache.ibatis.ibator.api.dom.java.Method method,
			FullyQualifiedTable table, String columnName) {
	}

	@Override
	public void addRootComment(XmlElement rootElement) {

	}

	@Override
	public void addSetterComment(
			org.apache.ibatis.ibator.api.dom.java.Method method,
			FullyQualifiedTable table, String columnName) {
	}

	private static final SimpleDateFormat dateformat = new SimpleDateFormat(
			"yyyy-MM-dd HH:mm:ss");

	@Override
	public void addJavaFileComment(CompilationUnit compilationUnit) {
		// compilationUnit
		// .addFileCommentLine("//===================================================================================");
		// compilationUnit
		// .addFileCommentLine("// Copyright (c) 2004-2008 by www.koubei.com, All rights reserved.");
		// compilationUnit
		// .addFileCommentLine("// 8F., HuaXing technology building, 477# wensan road, HangZhou, China");
		// compilationUnit.addFileCommentLine("// ");
		// compilationUnit
		// .addFileCommentLine("// This software is the confidential and proprietary information of ");
		// compilationUnit
		// .addFileCommentLine("// Koubei.com, Inc. (\"Confidential Information\"). You shall not disclose ");
		// compilationUnit
		// .addFileCommentLine("// such Confidential Information and shall use it only in accordance ");
		// compilationUnit
		// .addFileCommentLine("// with the terms of the license agreement you entered into with Koubei.com, Inc.");
		// compilationUnit
		// .addFileCommentLine("//===================================================================================");
		// compilationUnit.addFileCommentLine("// File name: "
		// + compilationUnit.getType().getShortName() + ".java");
		// compilationUnit
		// .addFileCommentLine("// Author: \u6728\u74dc\uff08\u83ab\u6b63\u534e\uff09 [email protected]	");
		// compilationUnit.addFileCommentLine("// Date: "
		// + dateformat.format(new Date()));
		// compilationUnit.addFileCommentLine("// Description: 	");
		// compilationUnit.addFileCommentLine("// 		\u65e0");
		// compilationUnit.addFileCommentLine("// Function List: 	");
		// compilationUnit.addFileCommentLine("// 		1. \u65e0");
		// compilationUnit.addFileCommentLine("// History: ");
		// compilationUnit.addFileCommentLine("// 		1. \u65e0");
		// compilationUnit
		// .addFileCommentLine("//===================================================================================");

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy