[go: up one dir, main page]

CN101989272A - Incidence and mapping system of multiple entities - Google Patents

Incidence and mapping system of multiple entities Download PDF

Info

Publication number
CN101989272A
CN101989272A CN2009100557688A CN200910055768A CN101989272A CN 101989272 A CN101989272 A CN 101989272A CN 2009100557688 A CN2009100557688 A CN 2009100557688A CN 200910055768 A CN200910055768 A CN 200910055768A CN 101989272 A CN101989272 A CN 101989272A
Authority
CN
China
Prior art keywords
type
entity object
layer
data
entity
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
Application number
CN2009100557688A
Other languages
Chinese (zh)
Inventor
王欣炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanda University
Original Assignee
Sanda University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sanda University filed Critical Sanda University
Priority to CN2009100557688A priority Critical patent/CN101989272A/en
Publication of CN101989272A publication Critical patent/CN101989272A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明揭示了一种多重实体的关联及映射系统,包括视图层、业务逻辑层和数据服务层:视图层提供交互接口,展示多重实体的关联及映射系统的处理结果;业务逻辑层包括网络层、服务层、数据访问对象层以及持久化对象层,其中的持久化对象层提供三类对象:第一类实体对象、第二类实体对象和第三类实体对象,其中第三类实体对象和第一类实体对象之间存在一对多的关联关系,第一类实体对象与第二类实体对象之间存在一对多的关联关系;第三类实体对象能操作并访问该第一类实体对象,第三类实体对象能操作该第二类实体对象;数据服务层提供关系型数据库,并将由业务逻辑层进行存取的数据保存在关系型数据库中。

Figure 200910055768

The present invention discloses a multi-entity association and mapping system, including a view layer, a business logic layer and a data service layer: the view layer provides an interactive interface to display the multi-entity association and the processing results of the mapping system; the business logic layer includes a network layer , service layer, data access object layer, and persistent object layer. The persistent object layer provides three types of objects: the first type of entity object, the second type of entity object, and the third type of entity object. The third type of entity object and There is a one-to-many relationship between the first type of entity objects, and there is a one-to-many relationship between the first type of entity objects and the second type of entity objects; the third type of entity objects can operate and access the first type of entities The third type of entity object can operate the second type of entity object; the data service layer provides a relational database, and stores the data accessed by the business logic layer in the relational database.

Figure 200910055768

Description

The association of multiple entity and mapped system
Technical field
The present invention relates to computer networking technology, especially design the association and the mapped system of multiple entity.
Background technology
The technology of internet constantly develops, and the framework technology that is applied to the internet is also ripe constantly.
Internet development makes people no longer be confined to real world for the demand of life, and begins to pay close attention to network.Virtual world on the network makes that people can carry out with real world on network similarly movable, and it is more and more popular that especially Network such as online auction, online shopping is subjected to people's common concern.
Virtual world is the reflection of real world, but the virtual world that computer technology realizes need be by realizing such as object, structure or the like special technology, and there are not these objects, combination in the real world, how could be in virtual world the things in the simulating reality world well, just need use mapping and related technology.
Summary of the invention
The present invention proposes a kind of association and mapped system of multiple entity, can correspondingly be mapped to different objects in the virtual world to entities different in the real world, and according to the pass in the real world tie up to set up between these objects related.
According to the present invention, a kind of association and mapped system of multiple entity proposed, comprise view layer, Business Logic and data service layer:
Described view layer provides interactive interface, shows the association of described multiple entity and the result of mapped system;
Described Business Logic comprises network layer, service layer, DAO layer and persistence object layer; Described network layer is used for the mutual of described view layer and Business Logic as controller, the calling of the service logic of control Business Logic, and for the data access of data service layer; Described service layer is used to realize the service logic of Business Logic, and the operational approach of data access object layer is carried out abstract or called, and isolates described network layer directly calling data access object layer; Described DAO layer is used for the persistence object layer mutual, and the operation of data is encapsulated; The persistence object layer, data map in the relevant database that data service layer is provided becomes object, wherein, described persistence object layer provides three class objects: first kind entity object, the second class entity object and the 3rd class entity object, there is the incidence relation of one-to-many in the incidence relation that wherein has one-to-many between the 3rd class entity object and the first kind entity object between the first kind entity object and the second class entity object; This first kind entity object can be operated and visit to the 3rd class entity object, and the 3rd class entity object can be operated this second class entity object;
Described data service layer provides relevant database, and will be kept in the described relevant database by the data that Business Logic carries out access.
Wherein, the 3rd class entity object comprises the operation of first kind entity object: the 3rd class entity object adds a first kind entity object, and wherein this first kind entity object is related with the 3rd class entity object; The 3rd class entity object comprises the visit of first kind entity object: the 3rd class entity object is checked a first kind entity object, and wherein this first kind entity object is related with another the 3rd class entity object; Perhaps the 3rd class entity object is checked a first kind entity object, wherein this first kind entity object the 3rd class entity object association.
The 3rd class entity object comprises the operation of the second class entity object: the 3rd class entity object adds one second class entity object, wherein this second class entity object is related with the 3rd class entity object, and, this second class entity object is related with a first kind entity object, and this first kind entity object is related with another the 3rd class entity object.
The relevant database of described data service layer comprises three data classification: user data class, product data class and behavioral data class, and wherein first kind entity object shines upon generation from the data of product data class; Mapping produces in the data of the second class entity object subordinate act data class; The 3rd class entity object shines upon generation from the data of user data class.
Adopt technical scheme of the present invention, realized user, article and the behavior mapping in virtual world well, the system that utilizes the present invention to propose can realize relating in the simulating reality world network auction system of above-mentioned three kinds of things.
Description of drawings
Fig. 1 has disclosed the association of multiple entity of the present invention and the structure of mapped system;
Fig. 2-4 has disclosed the incidence relation of three class entity objects in the association of multiple entity of the present invention and the mapped system.
Embodiment
At first with reference to figure 1, the present invention proposes a kind of association and mapped system of multiple entity, comprises view layer 10, Business Logic 20 and data service layer 30:
View layer 10 provides interactive interface, shows the association of multiple entity and the result of mapped system.In one implementation, view layer 10 can be realized (JSP and Struts1.2 tag library all are the common technologies in this area, are not described in detail) herein by JSP and Struts1.2 tag library.View layer 10 is mainly used in user interactions and result and represents to the user, and view layer 10 can be showed dynamic web page or static Web page.From user perspective, no matter be dynamic web page or static Web page, can show basic literal and pictorial information, but very big difference just be arranged from the angle of Website development, management, maintenance.Dynamic web page is preferable selection, because dynamic web page is based on database technology, carries out relevant calling based on database, can reduce programmer's workload greatly aspect website maintenance.Another advantage of dynamic web page is, uses the website of dynamic web page technique can realize more function, as user's registration, user's login, online auction, user management, order management or the like.Dynamic web page is not the web page files that is present in long since on the server in addition, but the complete webpage that the request by the user just makes server return.Business Logic 20 further comprises network layer 21, service layer 22, DAO layer 23 and persistence object layer 24.
Network layer 21 is used for the mutual of view layer 10 and Business Logic 20 as controller, the calling of the service logic of control Business Logic 20, and for the data access of data service layer 30.Network layer 21 is also referred to as the Web layer, and effect is equivalent to controller.In one implementation, the ActionServlet and the Action of network layer utilization Struts1.2 framework control forwarding, and main effect is the business procedure of describing in the application program, calls corresponding Struts1.2 framework and carries out result's control.Service layer 22 is used to realize the service logic of Business Logic 20, the operational approach of data access object layer 23 is carried out abstract or is called, directly the calling of 21 pairs of data access object of isolation network layer layer 23.Service layer 22 is also referred to as the Service layer, is the layer of being responsible for realizing service logic.The Service layer carries out the encapsulation of face model to the object in the data access object layer.The operational approach of data access object layer is carried out abstract or called, isolate the Web layer to directly the calling of data access object layer, strengthen the low coupling of high polymerization with this.Can not produce any influence even change the method for DAO layer to the Web layer yet.
DAO layer 23 is used for the persistence object layer mutual, and the operation of data is encapsulated.DAO layer 23 is also referred to as the DAO layer, and the DAO layer is responsible for the persistence object layer mutual, has encapsulated the operation of data.In one implementation, the BeanFactory mechanism of DAO layer utilization Spring2.0 is carried out the instantiation of bottom class, and carries out the corresponding database operation by the Hibernate framework.The DAO layer is a Data Access Object data access interface, so name Si Yi comes into contacts with database exactly.The DAO layer is used for encapsulation of data source Data Source, just can use getConnection () method in the Facory object to change the type of database by encapsulation, such as changing MSSQL into Oracle.Another characteristics of DAO layer are that it can all be encapsulated in the basic operation (CRUD) to database in the DAO layer.Such as adding new article, it is just passable only need to call an addItem (Item item) method to the DAO layer in the Service layer, and concrete realization then is to carry out in the DAO layer.When for the Service layer, calling the DAO layer method, only need know that addItem (Item item) is used for adding new article, and not need to know the DAO layer specifically is how to realize this function.
Data map in the relevant database that persistence object layer 24 provides data service layer 30 becomes object, wherein, persistence object layer 24 provides three class objects: first kind entity object, the second class entity object and the 3rd class entity object, there is the incidence relation of one-to-many in the incidence relation that wherein has one-to-many between the 3rd class entity object and the first kind entity object between the first kind entity object and the second class entity object; This first kind entity object can be operated and visit to the 3rd class entity object, and the 3rd class entity object can be operated this second class entity object.The persistence object layer is also referred to as the POJO layer, and the persistence object layer becomes object by entity/relationship map instrument with the data map of relevant database, and in one implementation, the persistence object layer adopts the Hibernate framework.In persistence object layer 24, come encapsulated object by add setter and getter method for the persistence object, make things convenient for allocating object, accomplish to deposit at any time attribute with reading object.Object after encapsulating can only come by other object accesses by shielded interface.The POJO layer is the OO performance of JAVA, and it can all encapsulate all properties of an object, stores by object and reads attribute.Because some thing is privately owned, encapsulation is exactly all attributes to be pinned do not check to the outside.And the main meaning of encapsulation is the attribute privatization with object, by revising the observability of attribute, limits visit and modification to attribute, uses for other classes.To introduce in the back relevant for the association between the three class entity objects in the persistence object layer.
Data service layer 30 provides relevant database, and will be kept in the relevant database by the data that Business Logic carries out access.
In conjunction with Fig. 2-Fig. 4, can understand the incidence relation between the three above-mentioned class entity objects.Sum up, the 3rd class entity object comprises the operation of first kind entity object: the 3rd class entity object adds a first kind entity object, and wherein this first kind entity object is related with the 3rd class entity object.The 3rd class entity object comprises the visit of first kind entity object: the 3rd class entity object is checked a first kind entity object, and wherein this first kind entity object is related with another the 3rd class entity object; Perhaps the 3rd class entity object is checked a first kind entity object, wherein this first kind entity object the 3rd class entity object association.
And the 3rd class entity object comprises the operation of the second class entity object: the 3rd class entity object adds one second class entity object, wherein this second class entity object is related with the 3rd class entity object, and, this second class entity object is related with a first kind entity object, and this first kind entity object is related with another the 3rd class entity object.
In one implementation, for example with reference to shown in Figure 2, the relevant database of data service layer comprises three data classification: user data class, product data class and behavioral data class, and wherein first kind entity object shines upon generation from the data of product data class; Mapping produces in the data of the second class entity object subordinate act data class; The 3rd class entity object shines upon generation from the data of user data class.
Being that example describes based on the association of multiple entity of the present invention and the auction system of mapped system, data map in the user data class produces first kind entity object, can be understood as a user of this system, the user can carry out following operation after login system: add one's own auction items, browse other people auction items, auction items that browse oneself or that oneself is won back, own interested article bidded or the like.
As described above, wherein first kind entity object shines upon generation, so article are corresponding to the second class entity object from the data of product data class.The user comprises the operation that article can carry out:
Add one's own auction items, this situation promptly is that the 3rd class entity object adds a first kind entity object, wherein this first kind entity object is related with the 3rd class entity object, because this auction items is one's own, so these article are associated in this user.
Browse other people auction items, this situation promptly is that the 3rd class entity object is checked a first kind entity object, and wherein this first kind entity object is related with another the 3rd class entity object.Because what check is others' article, and herein others must be another user in this system, and therefore in fact these article are associated with another user.
The auction items of browsing oneself or oneself is won back, promptly the 3rd class entity object is checked a first kind entity object, wherein this first kind entity object the 3rd class entity object association.Since these article have by inch of candle been won back or originally oneself, so these article belong to this user, be associated with this user.
A user can have several article, and article can not belong to a plurality of users simultaneously, so, between user and the article a kind of relation of one-to-many, promptly there is the incidence relation of one-to-many between the 3rd class entity object and the first kind entity object.
Fig. 3 has introduced user and article, i.e. incidence relation between first kind entity object and the 3rd class entity object.
Next in Fig. 4, introduce user and behavior, i.e. incidence relation between the second class entity object and the 3rd class entity object.
In the example of auction system, the user need bid to others' auction items, promptly the 3rd class entity object adds one second class entity object, wherein this second class entity object is related with the 3rd class entity object, this second class entity object is related with a first kind entity object, and this first kind entity object is related with another the 3rd class entity object.When the user bids, be to carry out at not one's own article, therefore, these article are actually with another user and are associated, and must be to propose at some article and bid, and therefore bidding is to be associated with article.For article, different bidding can be proposed by different users, therefore article are to be associated with a plurality of bidding, and promptly have the incidence relation of one-to-many between the first kind entity object and the second class entity object.Each is bidded is to be proposed by user, so this is bidded and is to be associated with corresponding user.In one implementation, the second class entity object can also comprise two subobjects, and first subobject is with relevant at the behavior of corresponding first kind entity object, and second subobject is relevant with the behavior of the 3rd corresponding class entity object.For example, for each article, its history is bidded record as first subobject, comprising all at the bidding of this article, and some users can repeatedly bid to these article, all and this user-dependent bidding as second subobject.
Introduced the association that utilizes multiple entity of the present invention and an application example of mapped system in conjunction with auction system above, but it will be appreciated that the association of multiple entity of the present invention and the application of mapped system not only are limited in auction system.
Adopt technical scheme of the present invention, realized user, article and the behavior mapping in virtual world well, the system that utilizes the present invention to propose can realize relating in the simulating reality world network auction system of above-mentioned three kinds of things.

Claims (4)

1.一种多重实体的关联及映射系统,其特征在于,包括视图层、业务逻辑层和数据服务层:1. A multi-entity association and mapping system, characterized in that it comprises a view layer, a business logic layer and a data service layer: 所述视图层提供交互接口,展示所述多重实体的关联及映射系统的处理结果;The view layer provides an interactive interface to display the association of the multiple entities and the processing results of the mapping system; 所述业务逻辑层包括网络层、服务层、数据访问对象层以及持久化对象层;The business logic layer includes a network layer, a service layer, a data access object layer and a persistent object layer; 所述网络层作为控制器用于所述视图层与业务逻辑层的交互,控制业务逻辑层的业务逻辑的调用,以及对于数据服务层的数据存取;The network layer is used as a controller for the interaction between the view layer and the business logic layer, to control the call of the business logic of the business logic layer, and to access the data of the data service layer; 所述服务层用于实现业务逻辑层的业务逻辑,对数据访问对象层的业务方法进行抽象或者调用,隔离所述网络层对数据访问对象层的直接调用;The service layer is used to realize the business logic of the business logic layer, abstract or call the business methods of the data access object layer, and isolate the direct call of the data access object layer by the network layer; 所述数据访问对象层用于与持久化对象层交互,对数据的操作进行封装;The data access object layer is used to interact with the persistent object layer to encapsulate data operations; 持久化对象层,将数据服务层提供的关系型数据库中的数据映射成对象,其中,所述持久化对象层提供三类对象:第一类实体对象、第二类实体对象和第三类实体对象,其中第三类实体对象和第一类实体对象之间存在一对多的关联关系,第一类实体对象与第二类实体对象之间存在一对多的关联关系;第三类实体对象能操作并访问该第一类实体对象,第三类实体对象能操作该第二类实体对象;The persistent object layer maps the data in the relational database provided by the data service layer into objects, wherein the persistent object layer provides three types of objects: the first type of entity object, the second type of entity object and the third type of entity Objects, wherein there is a one-to-many relationship between the third type of entity object and the first type of entity object, and there is a one-to-many relationship between the first type of entity object and the second type of entity object; the third type of entity object Can operate and access the first type of entity object, and the third type of entity object can operate the second type of entity object; 所述数据服务层提供关系型数据库,并将由业务逻辑层进行存取的数据保存在所述关系型数据库中。The data service layer provides a relational database, and stores the data accessed by the business logic layer in the relational database. 2.如权利要求1所述的多重实体的关联及映射系统,其特征在于,所述第三类实体对象对第一类实体对象的操作包括:2. The association and mapping system of multiple entities as claimed in claim 1, wherein the operation of the third type entity object on the first type entity object comprises: 第三类实体对象添加一个第一类实体对象,其中该第一类实体对象与该第三类实体对象关联;A first-type entity object is added to the third-type entity object, wherein the first-type entity object is associated with the third-type entity object; 所述第三类实体对象对第一类实体对象的访问包括:The access of the third type entity object to the first type entity object includes: 第三类实体对象查看一个第一类实体对象,其中该第一类实体对象与另一个第三类实体对象关联;或者a third-type entity object looks at a first-type entity object associated with another third-type entity object; or 第三类实体对象查看一个第一类实体对象,其中该第一类实体对象该第三类实体对象关联。The third type of entity object views a first type of entity object, wherein the first type of entity object is associated with the third type of entity object. 3.如权利要求1所述的多重实体的关联及映射系统,其特征在于,3. The association and mapping system of multiple entities as claimed in claim 1, wherein: 所述第三类实体对象对第二类实体对象的操作包括:The operation of the third type of entity object on the second type of entity object includes: 第三类实体对象添加一个第二类实体对象,其中该第二类实体对象与该第三类实体对象关联,并且,该第二类实体对象与一第一类实体对象关联,该第一类实体对象与另一个第三类实体对象关联。The third type of entity object adds a second type of entity object, wherein the second type of entity object is associated with the third type of entity object, and the second type of entity object is associated with a first type of entity object, the first type of entity object An entity object is associated with another entity object of the third type. 4.如权利要求3所述的多重实体的关联及映射系统,其特征在于,4. The association and mapping system of multiple entities as claimed in claim 3, wherein: 所述数据服务层的关系型数据库包括三个数据分类:用户数据类、物品数据类以及行为数据类,其中The relational database of the data service layer includes three data categories: user data, item data and behavior data, wherein 第一类实体对象从物品数据类的数据中映射产生;The first type of entity object is mapped from the data of the item data class; 第二类实体对象从行为数据类的数据中映射产生;The second type of entity object is mapped from the data of the behavior data class; 第三类实体对象从用户数据类的数据中映射产生。The third type of entity object is mapped from the data of the user data class.
CN2009100557688A 2009-07-31 2009-07-31 Incidence and mapping system of multiple entities Pending CN101989272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100557688A CN101989272A (en) 2009-07-31 2009-07-31 Incidence and mapping system of multiple entities

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100557688A CN101989272A (en) 2009-07-31 2009-07-31 Incidence and mapping system of multiple entities

Publications (1)

Publication Number Publication Date
CN101989272A true CN101989272A (en) 2011-03-23

Family

ID=43745809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100557688A Pending CN101989272A (en) 2009-07-31 2009-07-31 Incidence and mapping system of multiple entities

Country Status (1)

Country Link
CN (1) CN101989272A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649865A (en) * 2016-12-31 2017-05-10 深圳市优必选科技有限公司 Distributed server system and data processing method
CN108510368A (en) * 2018-03-30 2018-09-07 联想(北京)有限公司 A kind of method and device obtaining object information for reality scene
CN112163049A (en) * 2020-09-29 2021-01-01 北京中电普华信息技术有限公司 Method and device for mapping business object into data entity
CN112685379A (en) * 2019-10-18 2021-04-20 北京博超时代软件有限公司 Data organization method, system and device and storage medium
CN114003604A (en) * 2021-11-02 2022-02-01 杭州数澜科技有限公司 A data storage system and method for processing data with a computer

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649865A (en) * 2016-12-31 2017-05-10 深圳市优必选科技有限公司 Distributed server system and data processing method
CN108510368A (en) * 2018-03-30 2018-09-07 联想(北京)有限公司 A kind of method and device obtaining object information for reality scene
CN112685379A (en) * 2019-10-18 2021-04-20 北京博超时代软件有限公司 Data organization method, system and device and storage medium
CN112685379B (en) * 2019-10-18 2024-06-07 北京博超时代软件有限公司 Data organization method, system and equipment and storage medium
CN112163049A (en) * 2020-09-29 2021-01-01 北京中电普华信息技术有限公司 Method and device for mapping business object into data entity
CN112163049B (en) * 2020-09-29 2024-04-09 北京中电普华信息技术有限公司 Method and device for mapping business object into data entity
CN114003604A (en) * 2021-11-02 2022-02-01 杭州数澜科技有限公司 A data storage system and method for processing data with a computer

Similar Documents

Publication Publication Date Title
US20220058187A1 (en) Managed materialized views created from heterogenous data sources
US10754513B2 (en) Updating assets rendered in a virtual world environment based on detected user interactions in another world
US7991800B2 (en) Object oriented system and method for optimizing the execution of marketing segmentations
Vossen Big data as the new enabler in business and other intelligence
US20190102447A1 (en) System and method for metadata sandboxing and what-if analysis in a multidimensional database environment
WO2019067077A1 (en) System and method for enabling multiple parents with weights in a multidimensional database environment
WO2012160381A2 (en) Platform for the delivery of content and services to networked connected computing devices
CN104102702A (en) Software and hardware combined application-oriented big data system and method
Alam et al. Cloud database management system architecture
CN111552728B (en) Data processing method, system, terminal and storage medium of block chain
CN105447051A (en) Database operation method and device
CN115422169B (en) Data warehouse construction method and device based on commercial advertisement scene
CN101989272A (en) Incidence and mapping system of multiple entities
CN107679065A (en) Method for exhibiting data, device and computer-readable recording medium
CN108805383A (en) A kind of user's portrait platform and application for washing shield big data based on clothes
CN115544183A (en) Data visualization method and device, computer equipment and storage medium
US20140019555A1 (en) Systems and methods for a service based social network using tagging technology
US10210001B2 (en) Automatic execution of objects in a user interface
CN101593176B (en) Web-based parameterized cross-platform part library system
Huang et al. [Retracted] Construction of Virtual Marketing Interactive Platform for Digital Twin Innovation and Entrepreneurship Based on Blockchain
CN102236673B (en) AJAX (Asynchronous JavaScript and XML)-based resource multi-page distribution method
Miao et al. A Web 2.0‐based science gateway for massive remote sensing image processing
Museth DB+ Grid: A novel dynamic blocked grid for sparse high-resolution volumes and level sets
Bejeck Kafka Streams in Action: Event-driven Applications and Microservices
CN109150938A (en) Satellite application public service platform based on cloud service

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