Computer Science · Computer Networks and Communications
A Solution of Data Persistence Based on Lightweight J2EE Framework
See on the mapAbstract
The data persistence layer's design plays an important role in the J2EE development environment.It provides business logic layer with the operation data interface,the performance of date persistence layer influences the performance of business logic layer and presentation layer directly.Based on the research of several current mainstream solutions of data persistence,presents the method of lightweight encapsulation JDBC and applies the DAO pattern to achieve transparent access to database,reduces coupling degree.The method uses the method of reflection and proxy mechanism of the Java language,follows the mature software engineering hierarchical structure design specifications,takes into account the reliable,safe and scalability requirements during framework design.Then gives the design and implementation process of the framework.Finally,according to a real example,it shows the advantages of applying this framework.