›› 2016, Vol. 29 ›› Issue (7): 64-.

• 论文 • 上一篇    下一篇

通用数据访问接口中间件的设计与应用

石宾   

  1. (中国电子科技集团公司电子科学研究院 预警机系统研究所,北京100041)
  • 出版日期:2016-07-15 发布日期:2016-07-15

General DataBase Accessing Interface Middleware’s Design and Application

SHI Bin   

  1. (Research Institute of Early Warning System,Electronic Science Research Institute, China 
    Electronic Technology Group Corporation, Beijing 100041, China)
  • Online:2016-07-15 Published:2016-07-15
  • About author:database; layer; GDBAI; middleware

摘要:

目前,不同的数据库系统在高级语言的开发接口上存在较大差异,需要针对数据库系统编写相应的代码。当数据库改变时,应用代码也要相应的修改,系统灵活性会变差。针对上述问题,采用分层思想,在应用层和数据库访问层间增加中间层,即数据库访问接口中间件。通过对应用层和数据库访问层的抽象,实现应用接口与数据库访问控制分离,可至少减少20%的程序开发代码量,提高了系统的扩展性和可维护性。

关键词: 数据库, 分层, 通用数据库访问, 中间件

Abstract:

Nowadays, there is big difference of the developing interface provided by database system of the high-level language(for example: C++), We need to write the corresponding code for the specified database. While database is changed, the code should be modified accordingly, the flexibility of the system becomes worse. In view of the above problems, adopting the layered thought, that is, inserting the middle layer between the application and database access layer, called general database access interface (GDBAI) middleware. By abstracting the application and the database access layer, the application and the database access control are separated, and the amount of code is reduced at least 20%, and the ease of use and maintainability are improved.

Key words: database, layer, GDBAI, middleware

中图分类号: 

  • TP311.132