用户名: 密码: 验证码:
基于J2EE平台的代码生成器
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
现今除金融和电信较早的实施信息化外,电子政务、企业信息化、电子商务等,各行业的信息化建设迅速展开;同时计算机技术的日新月异,信息系统更新的速度也越来越快,并且项目往往集中出现而且时间要求严格。目前国内有很多应用软件是遵循J2EE(JAVA 2 Enterprise Edition)规范开发的,而且基于J2EE平台的应用现在呈上升趋势。其中大都是基于关系数据库系统的B/S结构的WEB应用系统。应用软件的目的是解决某一领域的业务问题,然而在开发过程中,除了业务需求要关注,技术方面也会有大量的问题。在软件开发维护过程中任何一个信息系统中都存在大量的基础数据对象维护,大部分只是简单的维护功能,很少有业务逻辑,但是由于数量很多,既便是复制、粘贴也需要较多工作量去调试、维护程序代码;而一个复杂的软件系统中有几百上千个业务对象。如何帮助开发人员从烦琐的编码的技术细节中解脱出来,减少开发的工作量,把主要精力用力关注业务问题,并提高开发效率和质量,这正是本文关注点。
     本人几年中参与了多个基于J2EE平台(platform)的应用软件项目的开发,体会到很多针对数据库的访问的代码是有固定规律的,比如说单表的增删改,主从表结构的增删改。开发基于关系数据库的企业应用系统时,如果在前后台的实现上,开发组织有自己的框架(framework),组件(component)等等,一旦得到数据结构模型,就可以生成大部分的java代码,jsp代码,sql脚本和配置文件(configuration files)等。可以加快开发速度,提高代码质量。
     本文的目标就是实现基于关系数据库的J2EE应用的设计成果到实现代码的快速转化,并且实现由非J2EE的基于关系数据库的应用到先进的J2EE的平台的快速升级。帮助开发人员从烦琐的编码的技术细节中解脱出来,把更多的时间和精力投入到业务问题的分析和研究上,提高软件的质量。因此代码机是给程序员使用的,其定位是辅助程序员快速开发,可以算是半MDA。
     另外,出于技术以及成本两方面的考虑,为降低软件开发项目的风险,开源技术在现在的软件开发项目中,被广泛应用。各种开源软件使开发人员从底层功能中解脱出来,并且由于开源软件的代码已经通过了充分的测试,系统的成本降低了,周期缩短了,风险减少了。
Besides finance and telecommunication, informationization is being carried out in many industries, such as e-government, ERP and e-commerce. The faster and faster renewal demand caused by the development of computer technology usually results in project convergence and time limitation. Most domestic modern business application development projects use object technology and follow the criterion of J2EE. The applications based on J2EE platform are increasing, most of which are WEB applications based on B/S (Browser/Server) structure running on RDBMS. The target of application software is solving professional problems in some field. However, while concerning about the business demands, many attentions also should be paid on technical details during the development process. The maintenance of basic data is required of the development and maintenance process of any information system. Most of which are elementary functions. However, as the amounts are huge, even copy and paste costs a lot workload. As we know, a complex software system often contains hundreds of business objects. This paper concerns about how to release the developer from boring coding and technical details, reduce workload, pay more attention to business and increase the efficiency and quality of development.
    With my experiences of application software development based J2EE platform, many rules could be abstracted about the code of access of database, such as the insert delete and update of single table and master-slave table. If the development group had its own framework and components while developing enterprise application system based on relational databases, most java code, jsp code and sql script will be generated automatically. All of above fasten the develop speed and enhance code quality.
    The purpose of this paper is to realize the fast transform of J2EE application based on relational database from design to practical code and the quick update of non-J2EE based application of relational database to application running on advanced J2EE platform. This effort releases the developer from boring coding and technical details, so that they could pay more attention to the analysis and research of business and increase
引文
[1] 《设计模式:可复用面向对象软件的基础》愿收名: Design Patterns: Elements of Reusable Object-Oriented software Addison Wesley/Pearson作者:Erich Gamma等 译者:李英军 马晓星 蔡敏 刘建中 机械工业出版 2005-6-1
    [2] 《敏捷软件开发:原则、模式与实践》原书名: Agile Software Development: Principles, Patterns, and Practices Pearson Education 作者:Robert C.Martin 译者:邓辉 清华大学出版社 2003-9-1
    [3] 《Hibernate开发指南》作者:夏听 http://www.redsaga.com/
    [4] 《精通Spring》作者:罗时飞 电子工业出版
    [5] 《J2EE设计模式》 原书名:J2EE Design Patterns 作者:William Crawford,Jonathan Kaolan 译者:刘绍华 毛天露
    [6] 《Refactoring:Improving the Design of Existing Code》 作者:(美)Martin Fowler 中国电力出版社
    [7] 《Core J2EE Patterns:Best Practices and Design Strategies》作者:(美)Deepak Alur,John Crupi,Dan Malks 科学出版社
    [8] 《UML与模式应用》 作者:(美)Craig Larman 译者:方梁 机械工业出版社
    [9] 《基于开源软件的J2EE企业级应用开发》作者:赵强 电子工业出版
    [10] 《面向模式的软件体系结构 卷1:模式系统》原书名:《Pattern-Oriented Software Architecture, Volume 1: A System of Patterns》作者: Frank Buschmann, Regine meunier, Hans Rohnert, Peter Sommerlad, Michael Stal
    [11] 《软件体系结构的原理,组成与应用》作者:万建成 卢雷
    [12] 《Mapping Objects To Tables》作者:Wolfgang Keller

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700