The Design of Purchasing-Selling-Stocking System Base on IoC & ORM Framework
- Author
- ZhangYouPeng
- Advisor
- HongXiaoGuang , ChengXiaoLei
- School
- Shandong University
- Major
- Computer technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 104
- Citations
- 1
- Inversion of Control
- IoC
- Object Relation Mapping
- ORM
- SpringFramework
- Hibernate
- Declarable Transaction
Abstract
Object-oriented programming method greatly improved the efficiency of software development,but with the scope of software increase very fast,the business logic become more complicated,and the relations of object also became more close,so it is very difficult for software’s testing and modification because coupling among classes is too tight.To avoid this phenomenon,we need to make these coupling classes become enough relax.There are many methods to solve this proglem.The basic precondition is Interface-oriented programming so that the caller only need to be concerned about the appearance of the functions of the caller without the need for the realization of specific concern.In accordance with the manner in the past,we often used similar factory patterns to create this function,a better way is IoC(Inversion of Control) programming methods.There are two forms of control reversal,one is dependent on a finding that could be called pull mode,such as the use of JNDI:Object obj=(Object) initContext.find ("…"),so by it the caller can look for the target needed,and the specific path to achieve JNDI hidden in the back.The other is to rely on injection can be called push mode,in accordance with the caller in definition interface was the caller,such as: CalledInterface x,and then need a method or constructor to assign x,the assignment of work to the IoC container to be completed in this way will not cause related to the API(such as JNDI) dependence.At present,most of us use of the database to relational database.Business model in the relational database is in the form of tables,and in the object-oriented programming languages are reflected in the form of the object,they are so different between the two forms of performance data.In object-oriented languages,when relational database access,the traditional way is to write code in the SQL statement, which is the most flexible,but very easy to go wrong,and there will be unusually large section of the code such as try…catch…,and it is not easy to achieve independence of database.In order to achieve the programming language used in object-oriented approach to operations in the relational database,there have been ORM (Object-Relation-Mapping) this new method of programming By ORM framework,it is one-mapping between the object and the data in relational database,there will be no SQL statement.Some ORM framework also achieved in a totally transparent persistence function,can automatically monitor the changes of the objects removed from the database,write these changes to the database automatically when commited to the database.In the application of occasions,ORM framework that can greatly improve the process of expansibility and maintainability.In this paper,by example of popular IoC framework:SpringFramework and ORM framework:Hibernate,and with the combination of Purchasing Selling Stocking System,I discussed the Inversion of control and object-relational mapping design method when use it on the WEB system which on the JavaEE platformFirst of all,the paper combined with SpringFramework and Hibernate framework,discussed on IoC and ORM framework’s origin,function and use,and then introduced the Purchasing Selling Stocking System on that basis to complete, respectively,described the system’s overall technical architecture,business model,the establishment of the operational functions of the modules,system development tools and environment,system design and discussed in detail,but also gives the database design.Finally,summed up the advantages of the system and the need to improve.
Table of contents
Abstract 8-10
Abstract 10-12
Chapter 1 Introduction 12-16
1.1 Background 12-13
the 1.1.1 complex application procedures excessive coupling between objects 12
1.1.2 object-oriented programming and relational database does not match 12-13
1.2 Research 13
1.2.1 object decoupling 13
1.2.1 Data access 13
1.3 research 13-14
1.4 This paper is structured arrangements 14-16
Chapter 2 IoC framework and ORM framework 16-28
2.1 IoC Overview 16-20
2.2 SpringFramework framework Introduction 20-21
2.3 configuration SpringFramework framework IoC 21-23
2.4 ORM Overview 23-24
2.5 Hibernate framework 24-27
2.6 Summary 27-28
Chapter 3 Invoicing System architecture and function 28-48
3.1 Invoicing System Introduction 28
3.2 system architecture and function 28-30
3.2.1 System Architecture 28-29
3.2.2 system functional modules 29-30
3.3 system modeling 30-47
3.3.1 configuration management module 30-34
3.3.2 basic information module 34-38
3.3.3 Procurement Management Module 38-41
3.3.4 Sales Management module 41-42
3.3.5 Inventory Management module 42-47
3.4 Summary 47-48
Chapter 4 Invoicing System Design and Implementation 48-86
4.1 framework integrated 48-64
4.1.1 basic framework SpringFramework configuration 48
4.1.2 integrated database the connection pool Proxool 48-49
the 4.1.3 integration ORM framework Hibernate 49-62
4.1.3.1 configure Hibernate database connection by proxool been 49-50
4.1.3.2 configure Hibernate through Spring's AOP declarative transaction 50-51
4.1.3.3 domain classes and database tables mapping configuration file 51-53
4.1.3.4 DAO class configuration 53-54
4.1.3.5 generic HibernateDao 54-62
4.1.4 integrated logging framework Log4j 62-64
4.2 database design 64-76
4.3 interface to achieve 76-77
4.4 a complete request and response process 77-83
4.5 Summary 83-86
Chapter 5 Conclusion 86-87
5.1 Summary and Review 86
5.2 further work outlook 86-87
the
References 87-88
Acknowledgements 88-89
the
Dissertation reviewers and the respondent table 89
Related dissertations
- Research on E-government Foundation Platform Based on Spring and JPA
- The Application of Struts in Cooperative Office System Based on MVC Pattern
- Design and Implementation of the Logistic and Transportation Management System
- Application and Study of Ssh Frame Techlology in the Supermarket Management System
- Web Application System Research Based on Struts and Hibernate
- Research and Application of Lightweight Framework Based on J2EE
- Research on the Design and Performance of Alert Center System
- The Research and Design of the Teachers Testing and Evaluating System of LiaoNing Information Vocational Technical College
- Research and Realization of Educational Administration System Based on Struts and Hibernate
- Research and Implementation of Lightweight and Reusable Technique for Data Persistence
- Design and Implementation of the IIP lightweight J2EE - based the CRBT integration platform
- Research and Application of Java Lightweight Framework in Occupational Skill Testing Authority System
- Development and application of research -based lightweight J2EE container
- Design of Enterprise Software Foundation Platform Based on Smart Client
- Design and Implement of Lightweight MTIoC Container
- Financial software reengineering practices in GTSS
- The Research of Developing J2EE Web Application in Lightweight Container
- Design and implementation of object-relational mapping hardware encoding
- Research -based the SSH2 research project management systems and
- Non negative pressure water pump monitoring system design and implementation of SCADA software