• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (10): 105-110.

• 论文 • Previous Articles     Next Articles

Application of the Faade Pattern to the Data Persistence Layer

ZHANG Li1,ZHANG Weixi2   

  1. (1.School of Computer Engineering,Jiangsu Teachers College of Technology,Changzhou 213001;2.School of Electronics and Information Engineering,Jiangsu Teachers College of Technology,Changzhou 213001,China)
  • Received:2010-09-28 Revised:2011-01-09 Online:2011-10-25 Published:2011-10-25

Abstract:

Data persistence is an important problem of development in the process of designing enterprise application systems. Based on the analysis and comparison of the application of the Faade pattern, the generic DAO pattern, the Hibernate framework and the Spring framework, a universal solution is proposed for the data persistence layer based on the Faade pattern, which makes the loose coupling possible. And the data persistence layer is highly stable, flexible and expansible. Finally, the technology of the data persistence layer is applied to the information system of a telecom customer manager.

Key words: Faade pattern;generics DAO pattern;Hibernate framework;Spring framework