Font Size: a A A

Research On Agile Refactoring Of Persistence Layer Driven By Meta-data

Posted on:2012-08-14Degree:MasterType:Thesis
Country:ChinaCandidate:J QiFull Text:PDF
GTID:2178330335961980Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Requirement changes can affect costs and efficiency of software development. It is key feature of a graceful design which can react to the requirement changes quickly. In order to implement the digital management of resources, we developed a monitoring system in this paper. This system improved the efficiency of resources and decreased the cost of labor. During the process of developing, requirements changed frequently, so we proposed a method which based on the structure of database and driven by meta-data to refactor the persistence layer to solve this problem. The proposed method creates persistence layer code automatically according to the changes of database, which is flexible to requirments revision, especially those changes to database. Moreover, we implemented a demo system to illustrate the feasibility of the proposed refactoring method.The main contribution of this paper is as follows:(1) Firstly, the hierarchical model of J2EE was summarized and analyzed, especially the data persistence layer. We also analyzed the demerits of JDBC when it is directly used for data persistence layer.(2) Based on requirement of customer, we accomplished to design and implement Power Monitoring and Management System. Based on this actual software system, We analyzed some refactoring issues caused by frequently requirement changes from customer., and summarized that some meta-data in codes has direct impact on rapid refactoring. We picked up these meta-data in both logic codes and some configuration files one by one, and labeled these meta-data with velocity variables which are finally rendered into runnable codes once our refactoring program performs.(3)Finally, we developed a demo that illustrate our rapid refactoring method of persistence layer driven by meta-data. Using this demo, when the basic structure of database changes, codes of persistence layer and control layer (including the Java code and iBATIS configuration files) can be generated automatically.
Keywords/Search Tags:Requirements Changes, intelligent energy monitoring system, Persistence Layer Quickly Reconstruct, Meta data
PDF Full Text Request
Related items