摘要
为了反复对出现的设计结构进行识别和抽象,得到一个通用的解决方案,实现模式的可重用性,使系统有良好的伸缩性。在详细分析持久性存储数据访问方式的基础上,提出了轻量级DAO(DataAccessObject)模式。在通用DAO模式的基础上,运用Java的反射机制,对DAO进行了深一步抽象。在满足数据库变迁松耦合问题的同时,解决了数据库设计发生改变时,DAO重新设计和编写问题,提高了系统的适应能力。模式已应用于省级电信传输资源管理系统中,缩减了项目实施周期,提高了系统开发效率。
To identify and abstract the repeating programming structure, and to get a universal solution to reuse the mode and to offer the system a good flexibility,the lightweight DAO (Data Access Object) mode is put forward based on the particular analysis of the persistent storage's access mechanisms. On the base of the general DAO patterns, the Java reflect mechanisms is used to farther abstract the DAO. While the database loose-coupling is satisdfied, the redesigning and recompiling of the DAO is solved when the database design has been changed, the response capability can also be improved. The design that the view tier to the control tier data exchange and relation data to Java object mapping is done by the mode. The work efficiency of the system can be improved and the project cycle can be reduced by applying the mode in the telecom transmission resources management system at the province level.
出处
《吉林大学学报(信息科学版)》
CAS
2004年第5期521-525,共5页
Journal of Jilin University(Information Science Edition)
关键词
J2EE框架
轻量级数据访问对象
值对象
Java数据连接
Java 2 edition enterprise(J2EE) frame
lightweight data access object(DAO)
value object
Java database connectivity(JDBC)