一种基于泛型DAO模式的数据持久化层模型  被引量:4

A Data Persistence Layer Model Based on Generic DAO Pattern

在线阅读下载全文

作  者:欧阳宏基[1] 张琳娜 葛萌[1] 

机构地区:[1]咸阳师范学院信息工程学院 [2]咸阳礼泉实验中学

出  处:《微型电脑应用》2013年第9期21-23,共3页Microcomputer Applications

基  金:咸阳师范学院专项科研计划项目(09XSYK211;12XSYK070)

摘  要:提出了一种基于泛型DAO与模板设计模式相结合的数据持久化层模型,解决了传统DAO模式中普遍存在的强制类型转换和重复性开发的问题,应用于某矿业集团生产统计管理系统的开发中,以回采工作面管理为例,详细描述了其实现过程。实践表明,具有提供类型安全、节省重复代码量和易于扩展等优点。This paper brings a kind of data persistence layer model based on genetic DAO and template design pattern,the model solves problem of type casting and repetitive development which generally existing in the traditional DAO model.Applied the model to the development of production & statistical management system on a certain mining group,with the example of working face management to describe implementation process of the model. Practice shows that the model has the advantages of providing type safety, saving the duplication of code and easy extension.

关 键 词:泛型DAO 模板模式 类型安全 数据持久化 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象