期刊文献+

基于策略模式和静态工厂结合的事务管理 被引量:1

Transaction management based on combination of strategy pattern and static factory pattern
在线阅读 下载PDF
导出
摘要 针对计算机事务管理因需求改变而面临大量的代码修改,这使程序的扩展性和移植性降低问题。基于设计模式和面向对象的设计理论,提出了一种将策略模式和静态工厂模式相结合实现事务管理的设计模式。通过在应用程序的DAO层运用策略模式定义抽象的策略接口,并在策略上下文中应用静态工厂模式简化客户端的调用。这两种策略相结合由Context来具体负责维护和更新事务处理中的数据,使用JAVA作为开发支撑平台,通过应用JAVA多态技术实现了事务模块的动态加载。 Due to different requirements for computer transaction management, sometimes large amounts of program code needs to be revised. It reduces program expansibility and transferability. A new design method for transaction management, which effectively integrates strategy pattern with static factory pattern, is proposed in this paper. The method is based on design pattern and object-oriented design theory. Static state factory pattern is used in strategy contexts to simplify client's operation, which is implemented through the application of strategy instance variable at program's DAO level. The integration of two strategies is achieved by Context which is used for the maintenance and updating of data in transaction management. JAVA is used as the development platform because the dynamic load of transaction modules is implemented by applying JAVA polymorphism technique.
作者 崔丽群 宋词
出处 《辽宁工程技术大学学报(自然科学版)》 CAS 北大核心 2009年第3期427-430,共4页 Journal of Liaoning Technical University (Natural Science)
基金 国家自然科学基金资助项目(70572070)
关键词 设计模式 策略模式 静态工厂模式 DAO数据访问对象 design pattern strategy pattern static simple factory pattern DAO (data access object)
  • 相关文献

参考文献6

二级参考文献30

共引文献11

同被引文献13

引证文献1

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部