A Java EE Data Persistence Layer Model Based on Design Pattern and DbUtils

Hongji Ouyang, T. Palaoag
{"title":"A Java EE Data Persistence Layer Model Based on Design Pattern and DbUtils","authors":"Hongji Ouyang, T. Palaoag","doi":"10.1109/ICMSS56787.2023.10117975","DOIUrl":null,"url":null,"abstract":"Aiming at the shortcomings of low development efficiency and high code redundancy of traditional JDBC and improved JDBC in the development of data persistence layer, a new Java EE data persistence layer development model is proposed. The model uses factory design pattern to separate the creation and use of DAO, uses single instance pattern to encapsulate the database connection pool, uses dynamic proxy and reflection to create the implementation class object of DAO interface, uses annotation to mark the mapping relationship between entity class and data table, and uses DbUtils tool class to complete the interaction with database. The design idea and components of the model are described in detail. Taking the data persistence layer of the target assessment system as an application case, the implementation process of the model is described in detail. The test results show that this model can improve the development efficiency and reduce the redundancy of code, and its performance is almost the same as that of traditional JDBC.","PeriodicalId":115225,"journal":{"name":"2023 7th International Conference on Management Engineering, Software Engineering and Service Sciences (ICMSS)","volume":"24 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-01-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 7th International Conference on Management Engineering, Software Engineering and Service Sciences (ICMSS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICMSS56787.2023.10117975","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Aiming at the shortcomings of low development efficiency and high code redundancy of traditional JDBC and improved JDBC in the development of data persistence layer, a new Java EE data persistence layer development model is proposed. The model uses factory design pattern to separate the creation and use of DAO, uses single instance pattern to encapsulate the database connection pool, uses dynamic proxy and reflection to create the implementation class object of DAO interface, uses annotation to mark the mapping relationship between entity class and data table, and uses DbUtils tool class to complete the interaction with database. The design idea and components of the model are described in detail. Taking the data persistence layer of the target assessment system as an application case, the implementation process of the model is described in detail. The test results show that this model can improve the development efficiency and reduce the redundancy of code, and its performance is almost the same as that of traditional JDBC.
基于设计模式和DbUtils的Java EE数据持久层模型
针对传统JDBC和改进JDBC在数据持久层开发中存在的开发效率低、代码冗余大的缺点,提出了一种新的Java EE数据持久层开发模型。该模型采用工厂设计模式将DAO的创建和使用分离,采用单实例模式封装数据库连接池,采用动态代理和反射方式创建DAO接口的实现类对象,采用标注方式标注实体类与数据表之间的映射关系,采用DbUtils工具类完成与数据库的交互。详细介绍了模型的设计思想和组成。以目标评估系统的数据持久层为应用案例,详细描述了模型的实现过程。测试结果表明,该模型可以提高开发效率,减少代码冗余,性能与传统JDBC基本相同。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信