Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 1997-2013, tinygroup.org (luo_guo@live.cn). Licensed under the GPL, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/gpl.html Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -------------------------------------------------------------------------- 版权 (c) 1997-2013, tinygroup.org (luo_guo@live.cn). 本开源软件遵循 GPL 3.0 协议; 如果您不遵循此协议,则不被允许使用此文件。 你可以从下面的地址获取完整的协议文本 http://www.gnu.org/licenses/gpl.html
 
 package org.tinygroup.mda.javabean.impl;
 
 
 
 	private final String DEFAULT_SERVICE_TEMPLATE_PATH = "/javatemplate/javaBizService.mdatemplate";
 	private final String SERVICE_TEMPLATE_PATH = "service_template";
 	private final String DEFAULT_SERVICE_INTERFACE_TEMPLATE_PATH = "/javatemplate/javaBizServiceInterface.mdatemplate";
 	private final String SERVICE_INTERFACE_TEMPLATE_PATH = "service_interface_template";
 	private final String DEFAULT_SERVICE_XML_TEMPLATE_PATH = "/javatemplate/javaBizServiceXml.mdatemplate";
 	private final String SERVICE_XML_TEMPLATE_PATH = "service_xml_template";
 	private static Logger logger = LoggerFactory
 
 	private void createServiceInterface(EntityModel modelBeanDetial beanDetial,
 			FileUtil fileUtil){
 		try {
 			// 写service interface文件
 			String javaContent = ModelTransUtil.parseFile(,
 					javaContent);
 		} catch (Exception e) {
 					"模型[package:{0},name:{1}]生成java serviceinterface时出错",
 					e,
 		}
 	}
 	
 	private void createServiceImpl(EntityModel modelBeanDetial beanDetial,
 			FileUtil fileUtil){
 		try {
 			// 写service文件
 			String javaContent = ModelTransUtil.parseFile(,
 			fileUtil.writeJavaFile(
 					javaContent);
 		} catch (Exception e) {
 			.errorMessage("模型[package:{0},name:{1}]生成java service时出错"e,
 		}
 
 	}
 
 	private void createServiceXml(EntityModel model,BeanDetial beanDetialFileUtil fileUtil) {
 		try {
 			String serviceConent = ModelTransUtil.parseFile(,
 			// 写service文件
 			fileUtil.writeServiceFile(
 					serviceConent);
 
 		} catch (Exception e) {
 					"模型[package:{0},name:{1}]生成javadao的Service配置文件时出错"e,
		}
	}
	protected void initTemplate() {
	}
	protected void doCreateFile(EntityModel modelBeanDetial beanDetial,
			FileUtil fileUtil) {
		createServiceInterface(model,beanDetial,fileUtil);
		createServiceImpl(modelbeanDetialfileUtil);
		createServiceXml(modelbeanDetialfileUtil);
	}
New to GrepCode? Check out our FAQ X