The Design and Implementation of Common Query
Abstract
Along with the development of computer technology, software become more and more complex, and the development of software become more and more difficult. Software developers find that according to past development method, it is impossible to create a high quality software production within defined time and cost. So developers think out many methods to improve software development process and software quality. Software reuse is absolutely one of the most important methods. Software reuse improve the efficiency of software development greatly, and reduce the development time and cost.
According to the analysis of the structure of SQL query sentence, this paper introduces the design and implement of common query. This common query is made up of four parts, data description, modules management, data query, and multilanguage interface. These four parts allow user to describe data table and field, to use templates created before, to search useful data.
The common query is created as a module, and use XML files to store data, create SQL sentence dynamic. With them, the common query is easy to transplant and maintenance, and is easy to build into other information system. It is a very good attempt of software reuse.
At the end, we test it. The results show that the common query can create correct SQL query sentence according to user’s input, and give useful data to user who need it. As to working with other information system, it need further confirm.