CN101989195A - Data architecture for information system and architecture method - Google Patents
Data architecture for information system and architecture method Download PDFInfo
- Publication number
- CN101989195A CN101989195A CN2009100556609A CN200910055660A CN101989195A CN 101989195 A CN101989195 A CN 101989195A CN 2009100556609 A CN2009100556609 A CN 2009100556609A CN 200910055660 A CN200910055660 A CN 200910055660A CN 101989195 A CN101989195 A CN 101989195A
- Authority
- CN
- China
- Prior art keywords
- data
- layer
- user
- persistence
- entity object
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses data architecture for an information system and an architecture method. The method comprises the following steps of: respectively establishing a data service layer for storing book- and user-related entity objects of a book management system through a database, a display layer for displaying data and generating page effect through a Java server page (JSP) page, a business logic layer for encapsulating an application which processes service data, and a persistence layer for persisting the entity objects of the data service layer; and establishing a Struts controller-based control layer to receive a user request, executing a corresponding application in the business logic layer and returning an execution result to the display layer. The information system adopting the data architecture has high flexibility, maintainability, expandability and manageability.
Description
Technical field
The present invention relates to field of information system, particularly a kind of data framework of infosystem and framework method.
Background technology
Along with popularizing of computer, shopping online has become a kind of fashion, a kind of mode of consumption.The system of buying books on the net realizes mainly that the user is home-confined and just can buy the book of oneself liking on the net that experience the preferential treatment of sending a service, the while also provides another marketing channel for the hotel owner.
In e-commerce website, internet book store is one of most widely used, the most successful at present model.By network, the user can breakthrough time and the restriction in space and realize buying books on the net.The emergence of internet book store has produced strong impact to traditional circulation of books system, has shortened circulation of books distribution link effectively, has improved annual circulation greatly.It has that operating cost is low, the stock is virtual, characteristics such as user search convenient, the region restriction is few.
Internet book store is actual to be exactly a kind of online books management system, by it can realize that the user registers, logins, the preview inquiry of the collection of identity verification and user data, books, to a series of functions such as purchase of books.And,, this system just seems more urgent for providing a kind of data framework of science in order to make the said system can more efficient work.
Summary of the invention
The data framework and the framework method that the purpose of this invention is to provide a kind of infosystem, the various operations of the high efficiency realization infosystem of its energy.
On the one hand, the invention provides a kind of data framework of infosystem, it is realized based on JavaEE, is applicable to online books management system, comprising:
Data service layer is by the entity object about books and user of the described books management system of database storing;
Display layer comes video data and generates page effect by the JSP page;
Business Logic, the application program of encapsulation process business datum;
The persistence layer, encapsulation of data visit details is carried out persistence to the entity object of described data service layer, for described Business Logic provides API towards entity object;
Key-course, receive user's request by the Struts controller, and the model component that calls the Struts controller is carried out with described user and is asked application program in the corresponding described Business Logic, the data of described data service layer are called and carried out to described application program by described persistence layer, and execution result is back to described display layer.
Entity object in the described data service layer comprises books, user, order and the dispensing mode of described books management system.
Described persistence layer adopts Hibernate as middleware, carries out persistence by the mapped file of creating expansion * .hbm.xml by name for the entity object of described data service layer.
The Struts controller of described key-course comprises: the ActionServlet assembly, in order to as the Struts central controller; The RequestProcessor assembly is in order to the request processor as each sub-application module unit; The Action assembly is in order to be responsible for handling a concrete business.
The JSP page in the described display layer uses the customization label, and described customization label is derived from StrutsHTML, Bean and Logic tag library.
On the other hand, the present invention also provides a kind of data framework method of infosystem, and it is realized based on JavaEE, is applicable to online books management system, may further comprise the steps:
Set up data service layer about books and user's entity object by the described books management system of database storing;
Foundation comes video data by the JSP page and generates the display layer of page effect;
Set up the Business Logic of the application program of encapsulation process business datum;
Set up encapsulation of data visit details, the entity object of described data service layer is carried out persistence, for described Business Logic provides persistence layer towards entity object API;
Set up key-course, make it pass through the Struts controller and receive user's request, and the model component that calls the Struts controller is carried out with described user and is asked application program in the corresponding described Business Logic, the data of described data service layer are called and carried out to described application program by described persistence layer, and execution result is back to described display layer.
Entity object in the described data service layer comprises books, user, order and the dispensing mode of described books management system.
Described persistence layer adopts Hibernate as middleware, carries out persistence by the mapped file of creating expansion * .hbm.xml by name for the entity object of described data service layer.
The Struts controller of described key-course comprises: the ActionServlet assembly, in order to as the Struts central controller; The RequestProcessor assembly is in order to the request processor as each sub-application module unit; The Action assembly is in order to be responsible for handling a concrete business.
The JSP page in the described display layer uses the customization label, and described customization label is derived from StrutsHTML, Bean and Logic tag library.
Adopt the data framework and the framework method of a kind of infosystem of the present invention, it has been set up respectively: by the data service layer about books and user's entity object of the described books management system of database storing, come video data and generate the display layer of page effect by the JSP page, the Business Logic of the application program of encapsulation process business datum, the entity object of described data service layer is carried out the persistence layer of persistence, in addition also by setting up key-course based on the Struts controller, make it receive user's request, and the application program in the execution correspondent service logic layer, at last execution result is back to described display layer.Adopt the infosystem of data framework of the present invention, have good retractility, maintainability, extensibility and manageability.
Description of drawings
Fig. 1 is the theory diagram of data framework of the present invention;
Fig. 2 is the process flow diagram of data framework method of the present invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with drawings and Examples.
With reference to Fig. 1, Fig. 1 has shown the data framework 100 of a kind of infosystem provided by the invention, it is realized based on JavaEE, be applicable to online books management system, comprise data service layer 110, display layer 120, Business Logic 130, persistence layer 140 and key-course 150, introduce these data Layers below in detail:
Data service layer 110 is by the entity object about books and user of the described books management system of database storing.
Described entity object comprises books, user, order and the dispensing mode of described books management system.Entity object comprises: Product (commodity), every book all has a type that belongs to the secretary, so type entities a: Category (kind) also will be arranged, and all functions are all driven by the user in the system, so also user subject a: Esun_Book_User (user) is being arranged, each user has the address information of oneself, so address entity a: Contactinfo (user profile) is arranged.Chosen the commodity of oneself as the user after, be necessary for him and generate a order and leave in the database, so also order entity a: orders (order) is being arranged.Each order all have it a state (such as: shipped, wait to deliver, in the delivery), so also will set up entity a: OrderStatus (order state) for the order state.One has the dissimilar books of money in the order, so also creating a clauses and subclauses entity for it: (Items) clauses and subclauses.Each order all has its dispensing mode, so also will set up entity a: PayWay (order dispensing mode) for order dispensing mode.
There are three kinds of relations between entity and the entity: one to one, one-to-many and multi-to-multi.There is following relation between the entity in the present embodiment:
Esun_Book_User (user) and Contactinfo (user profile) entity: one to one.A client can only fill in an effective address, and an effective address also can only corresponding client.
Esun_Book_User (user) and Orders (order) entity: one-to-many.A client has a plurality of orders, and an order can only belong to a client.
Category (kind) and Product (commodity) entity: one-to-many.Commodity have only a classification, and a classification can corresponding many commodity.
Item (clauses and subclauses) and Product (commodity) entity: one to one.The corresponding commodity of clauses and subclauses, the corresponding clauses and subclauses of commodity.
Item (clauses and subclauses) and Orders (order) entity: one-to-many.The corresponding order of clauses and subclauses, an order can have a plurality of clauses and subclauses.
PayWay (order dispensing mode) and Orders (order) entity: one-to-many.An order can only have a dispensing mode, and a kind of dispensing mode can corresponding many orders.
As an embodiment, the JSP page in the described display layer 120 uses the customization label, and described customization label is derived from StrutsHTML, Bean and Logic tag library.Described display layer 120 also can be referred to as presentation layer: presentation layer promptly is shown to the page that the user sees.In the JSP page, use the customization label, can separate the java program code with the JSP page, make the JSP page overweight the generation dynamic web page, and do not relate to applied logic.All pages in the present embodiment have all used the label in StrutsHTML, Bean and the Logic tag library.The customization label has following advantage: label has reusability, therefore can improve development efficiency; The attribute of customized label can be set with static or dynamic mode customization at the JSP page; Label can be visited all objects in the JSP webpage, as HttpServletRequest and HttpServletResponse etc.; Label can be mutually nested, comes completion logic; Label can make the JSP page become more succinct, improves readable.
As an embodiment, described persistence layer 140 adopts Hibernate as middleware, carries out persistence by the mapped file of creating expansion * .hbm.xml by name for the entity object of described data service layer 110.Persistence layer 140 has encapsulated the data access details, for Business Logic 130 provides OO API.Hibernate is exactly a kind of ORM software of more and more welcome development sources code.ORM software has the characteristic of middleware.Middleware is the connecting tube between application program and system.Hibernate can regard the pipeline that connects the relational database in java application and the data service layer 110 as.Hibernate can need the java application service of access relational databases for any one as middleware.The persistence layer 140 of present embodiment is exactly to adopt Hibernate as middleware, improved the reusability of code greatly, the program development personnel needn't know it is how code that how to move or the inside is write, as long as know that how to use them just passable, improve the efficient of writing code, can finish the platform that the several data storehouse was operated and can be supported in all database accesss; Have relative independentability, when the realization of persistence layer 140 changes, can not influence last layer.
For each entity object all should persistence, mention as last joint, 8 entities are arranged in the present embodiment, also just meaning must be to they whole persistence.Can create mapped file for their each classes, expansion " * .hbm.xml " by name.
Key-course 150, receive user's request by the Struts controller, and the model component that calls the Struts controller is carried out with described user and is asked application program in the corresponding described Business Logic 130, the data of described data service layer 110 are called and carried out to described application program by described persistence layer 140, and execution result is back to described display layer 120.
As an embodiment, the Struts controller of described key-course 150 comprises: the ActionServlet assembly, in order to as the Struts central controller; The RequestProcessor assembly is in order to the request processor as each sub-application module unit; The Action assembly is in order to be responsible for handling a concrete business.The Struts controller assemblies is responsible for receiving user request, new model more, and selects suitable view component to return to the user.Controller assemblies helps the infantile malnutrition due to digestive disturbances or intestinalparasites model layer to separate with the view layer, and this separation has been arranged, and just can develop polytype view on same model based handyly.
Present embodiment adopts the controller assemblies of Struts framework to come all client requests of pre-service, this centralized control can satisfy two big demands of MVC Design Mode: at first, controller serves as media translator's role between user input data and model, some general utility functionss are provided.As safely, login and other critical services at the particular user request, when the demand change appears in these general utility functionss of system, do not need to revise whole application, only need to revise a local controller assemblies and get final product.Next filters because controller is all passed through in all requests, so can reduce between the view component, and the relation of interdependence between view component and the model component, improves the relative independentability of each assembly.Decided by controller assemblies suitable view component is returned to the user, this can reduce direct between the view component, complicated linking relationship, makes application more flexible, is convenient to safeguard.
On the other hand, referring to Fig. 2, the present invention also provides a kind of data framework method 200 of infosystem, and it is realized based on JavaEE, is applicable to online books management system, may further comprise the steps:
201, set up data service layer about books and user's entity object by the described books management system of database storing.
As an embodiment, the entity object in the described data service layer comprises books, user, order and the dispensing mode of described books management system.
202, set up by the JSP page to come video data and generate the display layer of page effect.
As an embodiment, the JSP page in the described display layer uses the customization label, and described customization label is derived from StrutsHTML, Bean and Logic tag library.
203, set up the Business Logic of the application program of encapsulation process business datum.
204, set up the persistence layer that the entity object of described data service layer is carried out persistence.
Set up encapsulation of data visit details, the entity object of described data service layer is carried out persistence, for described Business Logic provides persistence layer towards entity object API.As an embodiment, described persistence layer adopts Hibernate as middleware, carries out persistence by the mapped file of creating expansion * .hbm.xml by name for the entity object of described data service layer.
205, set up the key-course that receives user's request and carry out the application program in the correspondent service logic layer.
Set up key-course, make it pass through the Struts controller and receive user's request, and the model component that calls the Struts controller is carried out with described user and is asked application program in the corresponding described Business Logic, the data of described data service layer are called and carried out to described application program by described persistence layer, and execution result is back to described display layer.The Struts controller of described key-course comprises: the ActionServlet assembly, in order to as the Struts central controller; The RequestProcessor assembly is in order to the request processor as each sub-application module unit; The Action assembly is in order to be responsible for handling a concrete business.
It is pointed out that the data framework 100 of data framework method 200 and a kind of infosystem of the present invention of a kind of infosystem of the present invention, both are identical or similar on principle and embodiment, so its repeating part repeats no more.
Those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, and be not to be used as limitation of the invention, as long as in connotation scope of the present invention, all will drop in claims scope of the present invention variation, the modification of above embodiment.
Claims (10)
1. the data framework of an infosystem, it is realized based on JavaEE, is applicable to online books management system, it is characterized in that, comprising:
Data service layer is by the entity object about books and user of the described books management system of database storing;
Display layer comes video data and generates page effect by the JSP page;
Business Logic, the application program of encapsulation process business datum;
The persistence layer, encapsulation of data visit details is carried out persistence to the entity object of described data service layer, for described Business Logic provides API towards entity object;
Key-course, receive user's request by the Struts controller, and the model component that calls the Struts controller is carried out with described user and is asked application program in the corresponding described Business Logic, the data of described data service layer are called and carried out to described application program by described persistence layer, and execution result is back to described display layer.
2. data framework as claimed in claim 1 is characterized in that, the entity object in the described data service layer comprises books, user, order and the dispensing mode of described books management system.
3. data framework as claimed in claim 2 is characterized in that, described persistence layer adopts Hibernate as middleware, carries out persistence by the mapped file of creating expansion * .hbm.xml by name for the entity object of described data service layer.
4. data framework as claimed in claim 3 is characterized in that, the Struts controller of described key-course comprises: the ActionServlet assembly, in order to as the Struts central controller; The RequestProcessor assembly is in order to the request processor as each sub-application module unit; The Action assembly is in order to be responsible for handling a concrete business.
5. data framework as claimed in claim 4 is characterized in that, the JSP page in the described display layer uses the customization label, and described customization label is derived from StrutsHTML, Bean and Logic label village, often used in village names.
6. the data framework method of an infosystem, it is realized based on JavaEE, is applicable to online books management system, it is characterized in that, may further comprise the steps:
Set up data service layer about books and user's entity object by the described books management system of database storing;
Foundation comes video data by the JSP page and generates the display layer of page effect;
Set up the Business Logic of the application program of encapsulation process business datum;
Set up encapsulation of data visit details, the entity object of described data service layer is carried out persistence, for described Business Logic provides persistence layer towards entity object API;
Set up key-course, make it pass through the Struts controller and receive user's request, and the model component that calls the Struts controller is carried out with described user and is asked application program in the corresponding described Business Logic, the data of described data service layer are called and carried out to described application program by described persistence layer, and execution result is back to described display layer.
7. data framework method as claimed in claim 6 is characterized in that, the entity object in the described data service layer comprises books, user, order and the dispensing mode of described books management system.
8. data framework method as claimed in claim 7 is characterized in that, described persistence layer adopts Hibernate as middleware, carries out persistence by the mapped file of creating expansion * .hbm.xml by name for the entity object of described data service layer.
9. data framework method as claimed in claim 8 is characterized in that, the Struts controller of described key-course comprises: the ActionServlet assembly, in order to as the Struts central controller; The RequestProcessor assembly is in order to the request processor as each sub-application module unit; The Action assembly is in order to be responsible for handling a concrete business.
10. data framework method as claimed in claim 9 is characterized in that, the JSP page in the described display layer uses the customization label, and described customization label is derived from StrutsHTML, Bean and Logic tag library.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100556609A CN101989195A (en) | 2009-07-30 | 2009-07-30 | Data architecture for information system and architecture method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100556609A CN101989195A (en) | 2009-07-30 | 2009-07-30 | Data architecture for information system and architecture method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101989195A true CN101989195A (en) | 2011-03-23 |
Family
ID=43745748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100556609A Pending CN101989195A (en) | 2009-07-30 | 2009-07-30 | Data architecture for information system and architecture method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101989195A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104270403A (en) * | 2014-09-01 | 2015-01-07 | 江苏西贝电子网络有限公司 | Cloud platform information web monitoring system based on struts2 framework |
CN104281700A (en) * | 2014-10-16 | 2015-01-14 | 北京国双科技有限公司 | Website inquiring and collecting method and device |
CN104598250A (en) * | 2015-02-04 | 2015-05-06 | 浪潮(北京)电子信息产业有限公司 | System management structure and management implementation method for same |
CN105138602A (en) * | 2015-08-06 | 2015-12-09 | 中国电力科学研究院 | Three-dimensional coordination platform architecture system and use method therefor |
CN105607906A (en) * | 2015-12-18 | 2016-05-25 | 北京金山安全软件有限公司 | Service implementation method and device and electronic equipment |
CN106126267A (en) * | 2016-07-15 | 2016-11-16 | 浪潮电子信息产业股份有限公司 | Method for embedding application system into application server based on OSGI |
CN107332861A (en) * | 2017-08-11 | 2017-11-07 | 杭州亿方云网络科技有限公司 | A kind of open platform architecture system based on OAuth agreements |
CN110069298A (en) * | 2018-08-09 | 2019-07-30 | 北京微播视界科技有限公司 | Display methods, system, electronic equipment and computer readable storage medium |
-
2009
- 2009-07-30 CN CN2009100556609A patent/CN101989195A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104270403A (en) * | 2014-09-01 | 2015-01-07 | 江苏西贝电子网络有限公司 | Cloud platform information web monitoring system based on struts2 framework |
CN104281700A (en) * | 2014-10-16 | 2015-01-14 | 北京国双科技有限公司 | Website inquiring and collecting method and device |
CN104598250B (en) * | 2015-02-04 | 2018-03-16 | 浪潮(北京)电子信息产业有限公司 | A kind of system management architecture and its method for realizing management |
CN104598250A (en) * | 2015-02-04 | 2015-05-06 | 浪潮(北京)电子信息产业有限公司 | System management structure and management implementation method for same |
CN105138602B (en) * | 2015-08-06 | 2019-07-19 | 中国电力科学研究院 | A kind of construction system and its application method of three-dimensional collaborative platform |
CN105138602A (en) * | 2015-08-06 | 2015-12-09 | 中国电力科学研究院 | Three-dimensional coordination platform architecture system and use method therefor |
CN105607906A (en) * | 2015-12-18 | 2016-05-25 | 北京金山安全软件有限公司 | Service implementation method and device and electronic equipment |
CN105607906B (en) * | 2015-12-18 | 2019-03-22 | 苏州奖多多科技有限公司 | A kind of service implementation method, device and electronic equipment |
CN106126267A (en) * | 2016-07-15 | 2016-11-16 | 浪潮电子信息产业股份有限公司 | Method for embedding application system into application server based on OSGI |
CN107332861A (en) * | 2017-08-11 | 2017-11-07 | 杭州亿方云网络科技有限公司 | A kind of open platform architecture system based on OAuth agreements |
CN107332861B (en) * | 2017-08-11 | 2020-11-10 | 杭州奇亿云计算有限公司 | Open platform architecture system based on OAuth protocol |
CN110069298A (en) * | 2018-08-09 | 2019-07-30 | 北京微播视界科技有限公司 | Display methods, system, electronic equipment and computer readable storage medium |
CN110069298B (en) * | 2018-08-09 | 2022-12-13 | 北京微播视界科技有限公司 | Display method, system, electronic device, and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101989195A (en) | Data architecture for information system and architecture method | |
CN104599153B (en) | Commodity recommendation method, commodity recommendation server and commodity recommendation terminal | |
CN102043616A (en) | Factory pattern-based information system architecture and architecture method | |
CN105745646B (en) | Native application search result | |
CN103186834A (en) | Method and device of business process configuration | |
WO2013106947A1 (en) | Web-based scan-task enabled system. and method of and apparatus for developing and deploying the same on a client-server network | |
US20140040861A1 (en) | Metadata driven software architecture | |
US9396051B2 (en) | Integration application building tool | |
CA2883941A1 (en) | Method and system for clustering similar items | |
US20130304609A1 (en) | Interactive Shopping List System | |
US20140180853A1 (en) | Framework for Generating a Personalized Item List | |
CN103049858A (en) | E-commerce service system and implementation method thereof | |
US10867337B2 (en) | Creating secure social applications with extensible types | |
CN106156972A (en) | Logistics service information providing method and device | |
US20150066672A1 (en) | Method and apparatus for providing online content management and e-commerce solution | |
WO2024109558A1 (en) | Recommendation data processing method, recommendation method, and electronic device and storage medium | |
US20130166416A1 (en) | Dynamic catalogs on mobile wireless devices | |
CN103019556A (en) | Quick help information display system and quick help information display method | |
US8051110B2 (en) | Identifying screen flows to support multiple entities and their diverse rules with a single application instance | |
CN104318382A (en) | E-commerce information management system | |
CN102375859B (en) | Method and equipment for processing information | |
KR20140031429A (en) | Item recommend system and method thereof, apparatus supporting the same | |
US9734529B1 (en) | Method, system, and computer readable medium for selection of catalog items for inclusion on a network page | |
CN101989339A (en) | On-line book control system and method | |
CN104424529A (en) | Chain hotel management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110323 |