摘要
在以多层架构实现的数据库应用系统中,大量程序代码与其关系数据模型直接相关,采用一种以关系数据模型为输入的自动代码生成工具,可以大幅度地降低编程工作量,提高软件质量.现有基于模板的代码生成工具具有良好的设计框架,但其脚本语言由于与关系数据模型关联不紧密,导致代码模板编写和维护比较困难,难以快速应用.文中设计一种与关系数据模型紧密结合的迭代式代码脚本语言RDM CodeMark,保留基于模板的代码生成技术通用性的同时,简化代码模板编写难度.结果表明:基于RDM CodeMark语言的代码生成工具在针对J2EE平台和.Net平台的软件项目开发实践中能取得较为理想的效果.
In the multi-tier architecture software development for database application system,a large number of program codes are directly related to their relational data models.Using a code generation tools for relational data models as input,can significantly reduce the programming work and improve software quality.The existed template-based code generation tool has a well designed framework,but its scripting language is not closely related to the relational data models,resulting in difficulty of the code templates to write、 maintain and rapid application.We designed the iterative source scripting language(RDM CodeMark) of a closely integrated with the relational data model,can reducing difficulty for the realization of code template and retaining generability for the template-based code-generation.The code generation tool based on the RDM CodeMark language has gained a more satisfactory results for the software development of the J2EE platform and.Net platform.
出处
《湖北大学学报(自然科学版)》
CAS
北大核心
2010年第2期151-156,169,共7页
Journal of Hubei University:Natural Science