CN107357904B - Domain model data management system - Google Patents
Domain model data management system Download PDFInfo
- Publication number
- CN107357904B CN107357904B CN201710576036.8A CN201710576036A CN107357904B CN 107357904 B CN107357904 B CN 107357904B CN 201710576036 A CN201710576036 A CN 201710576036A CN 107357904 B CN107357904 B CN 107357904B
- Authority
- CN
- China
- Prior art keywords
- model data
- self
- association
- field model
- domain model
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
- G06F16/2246—Trees, e.g. B+trees
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a field model data management system, belonging to the field model data management system; the system comprises a self-association unit, a self-association unit and a self-association unit, wherein the self-association unit is used for performing self-association operation of the upper and lower level relations on the field model data to form self-association relations among different field model data; the sequencing control unit is connected with the self-association unit and is used for simultaneously carrying out corresponding editing operation on other field model data which have self-association relation with the field model data when carrying out editing operation on the field model data; the beneficial effects of the above technical scheme are: the method can carry out relevance editing and processing on the field model data, and avoid the problem of data management confusion caused by data editing.
Description
Technical Field
The invention relates to the technical field of field metafunctions, in particular to a field model data management system.
Background
In existing business systems, there are many domain model scenarios in which many domain model data are generated. The so-called domain model, or business model, is a visual representation of concept classes within a domain or objects in the real world, which focuses on analyzing the problem domain itself, exploring important business domain concepts, and building relationships between concepts (data) in the business domain.
In the existing database system, the data usually does not record the relationship or connection between the data and each other in the storage process, so that all the rest related data cannot be automatically associated and edited while single data in the database system is edited in the field of RBAC-based rights management or in a scenario that a tree structure needs to be used, and thus, the data editing is often wrong, and the data management is very confused.
Disclosure of Invention
According to the problems in the prior art, a technical scheme of a domain model data management system is provided, which aims to edit and process the relevance of domain model data and avoid the problem of data management confusion caused by data editing.
The technical scheme specifically comprises the following steps:
a domain model data management system is connected with a database system and used for managing domain model data in the database system;
the meta-function management terminal specifically comprises:
the self-association unit is used for performing self-association operation of the upper and lower level relations on the field model data to form self-association relations among different field model data;
and the sequencing control unit is connected with the self-association unit and is used for carrying out corresponding editing operation on other field model data having self-association relation with the field model data when carrying out editing operation on the field model data.
Preferably, in the domain model data management system, the self-association relationship of the domain model data obtained by performing self-association operation in the self-association unit includes hierarchical relationship information and depth information of the domain model data, and an association relationship of a tree structure is established between the domain model data;
the hierarchical relationship information is used for representing the hierarchical relationship between the domain model data;
the depth information is used to represent a node depth at which the domain model data is associated with the tree structure.
Preferably, in the domain model data management system, after the self-association unit executes the self-association operation, an association relationship of a tree structure is established between the domain model data;
the self-association unit specifically includes:
the first self-association module is used for establishing the self-association relationship between the domain model data with the tree structure and the corresponding domain model data with the node structure;
the domain model data having a tree structure is used as parent node data, and the domain model data having a node structure is used as child node data.
Preferably, in the domain model data management system, after the self-association unit executes the self-association operation, an association relationship of a tree structure is established between the domain model data;
the self-association unit specifically includes:
the second self-association module is used for establishing the self-association relationship between the domain model data with the node structure and the corresponding domain model data with the attribute structure;
the domain model data having a node structure is used as parent node data, and the domain model data having a tree structure is used as child node data.
Preferably, in the domain model data management system, after the self-association unit executes the self-association operation, an association relationship of a tree structure is established between the domain model data;
the self-association unit specifically includes:
and the third self-correlation module is used for establishing the self-correlation relationship among the field model data with the node structure.
Preferably, in the domain model data management system, after the self-association unit executes the self-association operation, an association relationship of a tree structure is established between the domain model data;
the self-association unit specifically includes:
the searching module is used for searching a set of all sub-nodes under the preset domain model data in the database system;
a removing module, configured to remove, from the database system, the field model data corresponding to a leaf node under the preset field model data;
and the adding module is used for adding the preset field model data corresponding to the child nodes under the field model data into the database system.
Preferably, the system for managing data of a domain model, wherein the sequence control unit specifically includes:
the moving module is used for simultaneously moving the corresponding other field model data according to the self-association relation of the field model data when moving the field model data;
and the editing module is used for simultaneously editing the corresponding other field model data according to the self-association relation of the field model data when the field model data is edited.
The beneficial effects of the above technical scheme are: a domain model data management system is provided, which can edit and process the relevance of domain model data and avoid the problem of data management confusion caused by data editing.
Drawings
FIG. 1 is a schematic diagram of a domain model data management system according to a preferred embodiment of the present invention;
FIG. 2 is a schematic diagram of a self-association unit according to a preferred embodiment of the present invention;
FIGS. 3-6 are schematic diagrams illustrating the design relationship of the self-association operation in the self-association unit according to the preferred embodiment of the present invention;
FIG. 7 is a schematic diagram of a sequence control unit according to a preferred embodiment of the present invention;
FIG. 8 is a diagram illustrating a design relationship for data editing in the sequencing control unit according to a preferred embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
In light of the foregoing problems in the prior art, there is now provided a domain model data management system a connected to a database system B and configured to manage domain model data stored in the database system B.
Specifically, the structure of the domain model data management system as shown in fig. 1 includes:
the self-association unit A1 is used for performing self-association operation of the upper and lower level relations on the domain model data to form self-association relations among different domain model data;
and the sequencing control unit A2 is connected with the self-association unit A1 and is used for simultaneously carrying out corresponding editing operation on other field model data having self-association relation with the field model data when carrying out editing operation on the field model data.
Specifically, in this embodiment, the domain model data management system is used as a management system independent from the database system, an independent meta-function layer is opened up outside the database system, and the corresponding domain data model object can implement interfaces of various meta-functions, thereby implementing a pluggable and universal tree structure management function, and the specific implementation manner will be described in detail below.
In this embodiment, first, the self-association unit a1 performs a top-bottom level relationship self-association operation on the domain model data stored in the database system, so as to associate different domain model data according to a top-bottom level relationship, thereby forming a self-association relationship between different domain model data.
Subsequently, the sort control unit a2 can be used to perform a data editing operation on the domain model data stored in the database system. Because the domain model data is associated with the upper-level relation and the lower-level relation in the previous self-association operation, the currently operated domain model data and the associated other domain model data can be simultaneously edited during the data editing operation, and the problem of data management confusion caused by the missed operation of the associated data is avoided.
In a preferred embodiment of the present invention, the self-association relationship of the domain model data obtained by performing the self-association operation in the self-association unit includes hierarchical relationship information and depth information of the domain model data, and the domain model data are associated with each other by establishing a tree structure;
the hierarchical relationship information is used for representing the hierarchical relationship between the field model data;
the depth information is used to represent a node depth at which the domain model data is associated with the tree structure.
Specifically, in this embodiment, a so-called hierarchical relationship, that is, a top-bottom relationship, is used to describe an interdependence relationship between the domain model data. In a tree structure, the hierarchical relationship is the relationship between a parent node and a child node. In this embodiment, the hierarchical relationship is represented by naming a specific attribute syscode _ FunPO after implementing the PO object of the self-associated meta-function interface in the self-associated unit.
In the present embodiment, the depth information is used to indicate the node depth of the tree structure associated with the domain model data. The node depth is actually used to indicate that each domain model data is located on the node of the second level in the whole tree structure. In this embodiment, the self-associated depth information is represented by stating a specific attribute depth _ FunPO behind the PO object implementing the interface.
Further, in a preferred embodiment of the present invention, as shown in fig. 2, the self-association unit a1 specifically includes:
a first self-association module a11, configured to establish a self-association relationship between domain model data having a tree structure and corresponding domain model data having a node structure;
the domain model data having a tree structure is used as parent node data, and the domain model data having a node structure is used as child node data.
Specifically, in the present embodiment, the domain model data having a tree structure may be regarded as parent in a tree form, and the domain model data having a node structure may be regarded as child in a node form, that is, after parent self-associates to form a self-associated tree structure, self-associates with a child node. The relationship of the combination is similar to the relationship of departments and persons, namely, a sub-level department is arranged under a department, persons are arranged under the department, and the persons serve as leaf nodes.
Also taking the department and person relationship as an example, in designing the relationship between the department and the person, an intermediate association entity class OrganEmpRel is designed, the roles of the IselRelParent _ PO, Ichaldren _ PO and Ichaldren _ PO interfaces are introduced to represent the relationship between the parent level and the child level, Organ is adopted to realize the IselRelParent _ PO, meanwhile the IselRelChildren _ PO inherits the self-association element function interface, and Emp realizes the Ichaldren _ PO, and the whole design relationship diagram is shown in FIG. 3.
In a preferred embodiment of the present invention, as still shown in fig. 2, the self-association unit further includes:
the second self-association module A12 is used for establishing self-association relationship between the domain model data with the node structure and the corresponding domain model data with the attribute structure;
the domain model data having a node structure is used as parent node data, and the domain model data having a tree structure is used as child node data.
Specifically, in the present embodiment, the domain model data having a node structure is a parent in a node form, and the domain model data having a tree structure is a child in a tree form, that is, the child is self-associated with the parent node after the child is self-associated to form a self-associated tree structure. The relationship of this combination is similar to the relationship of a role under which there is a menu and a sub-menu under which the menu is the final node.
Also taking roles and menus as examples, an intermediate association entity class rollemeulei can be designed, and interface roles of IParent _ PO and ISelfRelChildren _ PO are introduced to represent the relationship between a parent level and a child level, Role realizes IParent _ PO, Menu realizes ISelfRelChildren _ PO, and iselrelchildren _ PO inherits a self-association element function interface iselrelchildren, and a design relationship diagram of the intermediate association entity class rollemeulrel is shown in fig. 4.
In a preferred embodiment of the present invention, as still shown in fig. 2, the self-association unit a1 specifically includes:
and a third self-association module A13, configured to establish a self-association relationship between the domain model data having the node structure.
Specifically, in this embodiment, the third self-association module a13 is used to establish a parent-child relationship between two domain model data that are both nodes. The relationship of such a combination is relatively simple, for example a relationship of a character to a person, with no other sub-characters under the character, nor other sub-persons under the person.
Still taking the relationship between roles and people as an example, an intermediate association entity type rollerel is designed, and interface roles of IParent _ PO and IChildren _ PO are introduced to represent parent-child relationships, where Role implements IParent _ PO and Emp implements IChildren _ PO, and a design relationship diagram under this embodiment is shown in fig. 5.
In a preferred embodiment of the present invention, a self-association unit a1 may include the first self-association module a11, the second self-association module a12, and the third self-association module a13 at the same time, that is, the three self-association modes described above are provided at the same time, so as to form a relatively complete tree structure, which includes various hierarchical relationships that may exist between domain model data.
In a preferred embodiment of the present invention, as still shown in fig. 2, the self-association unit a1 may further include:
the searching module A14 is used for searching a set of all child nodes under preset domain model data in the database system;
a removing module a15, configured to remove, from the database system, domain model data corresponding to leaf nodes under preset domain model data;
the adding module a16 is configured to add, to the database system, the domain model data corresponding to the child node under the preset domain model data.
Specifically, in this embodiment, after defining the relevant operation interface, the self-association unit a1 may implement functions of searching, removing, adding, and the like.
When searching for a specific object, all subsets under the specific object, i.e. the combination of all child nodes (excluding the specific object itself), may be searched, and the search for the subsets may be performed in ascending order of depth.
When the child object of the specified object is removed, the child object is allowed to be removed if the child object is a leaf node, and is not allowed to be removed otherwise. While also supporting the addition of child objects for a given object.
The design implementation diagram of the self-correlation unit is shown in fig. 6.
In a preferred embodiment of the present invention, as shown in fig. 7, the sorting control unit a2 specifically includes:
a moving module A21, configured to, when moving the domain model data, simultaneously move the corresponding other domain model data according to the self-association relationship of the domain model data;
and the editing module A22 is used for editing the corresponding other domain model data simultaneously according to the self-association relation of the domain model data when editing the domain model data.
Specifically, in this embodiment, the PO object implementing the sort control meta-function interface must be named a specific attribute sort _ FunPO. Since the domain model data has been subjected to the self-association operation in the previous self-association unit a1, the above specific attributes can be automatically maintained at the time of sorting, thereby realizing association editing at the time of sorting control.
Specifically, for example:
1) in the sequence control process of the movement module a 21:
if the data of one domain model needs to be moved upwards, the data in all the child nodes of the domain model data can be moved upwards simultaneously according to the self-association relation of the domain model data;
if a certain field model data needs to be moved down, the data in all the child nodes of the field model data can be moved down simultaneously according to the self-association relationship of the field model data;
the "move up" and "move down" operations described above both refer to moving data to different nodes in the tree structure, i.e., changing the self-association relationship between the data.
2) In the sort control process of the editing module a 22:
data in child nodes of the domain model data can be correspondingly increased according to the self-association relation of the domain model data if certain domain model data needs to be added;
if a certain field model data is required to be deleted, the data in all the child nodes under the field model data can be correspondingly deleted according to the self-association relation of the field model data;
and if the numerical value of certain field model data needs to be modified, the numerical value of data in the sub-node in the field model data can be correspondingly modified according to the self-association relation of the field model data.
And querying certain domain model data, wherein the self-association relationship of the domain model data can be obtained.
The design implementation diagram of the sequencing control unit A2 is shown in FIG. 8.
In summary, in the technical solution of the present invention, a management system is independently arranged outside a database system, and the domain model data in the database system is subjected to self-association operation according to the hierarchical relationship thereof, so as to form a tree structure of the domain model data, and when data editing and operation are performed, association editing or operation is performed according to the tree structure, so as to implement association editing and processing on the domain model data, and avoid the problem of data management confusion caused by data editing.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.
Claims (6)
1. The field model data management system is characterized in that the field model data management system is connected with a database system and is used for managing field model data in the database system;
the domain model data management system specifically comprises:
the self-association unit is used for performing self-association operation of the upper and lower level relations on the field model data to form self-association relations among different field model data;
the sequencing control unit is connected with the self-association unit and is used for simultaneously carrying out corresponding editing operation on other field model data which have self-association relation with the field model data when carrying out editing operation on the field model data;
the self-association relationship of the field model data obtained by self-association operation in the self-association unit comprises hierarchical relationship information and depth information of the field model data, and an association relationship of a tree structure is established among the field model data;
the hierarchical relationship information is used for representing the hierarchical relationship between the domain model data, and a specific first type attribute is named after a P0 object of a self-association function interface of the self-association unit to represent the hierarchical relationship;
the depth information is used for representing the node depth of the domain model data associated with the tree structure, and a specific second type attribute is named after a P0 object of a self-association function interface of the self-association unit to represent the depth information.
2. The field model data management system according to claim 1, wherein after the self-association unit performs the self-association operation, an association relationship of a tree structure is established between the field model data;
the self-association unit specifically includes:
the first self-association module is used for establishing the self-association relationship between the domain model data with the tree structure and the corresponding domain model data with the node structure;
the domain model data having a tree structure is used as parent node data, and the domain model data having a node structure is used as child node data.
3. The field model data management system according to claim 1, wherein after the self-association unit performs the self-association operation, an association relationship of a tree structure is established between the field model data;
the self-association unit specifically includes:
the second self-association module is used for establishing the self-association relationship between the domain model data with the node structure and the corresponding domain model data with the attribute structure;
the domain model data having a node structure is used as parent node data, and the domain model data having a tree structure is used as child node data.
4. The field model data management system according to claim 1, wherein after the self-association unit performs the self-association operation, an association relationship of a tree structure is established between the field model data;
the self-association unit specifically includes:
and the third self-correlation module is used for establishing the self-correlation relationship among the field model data with the node structure.
5. The field model data management system according to claim 1, wherein after the self-association unit performs the self-association operation, an association relationship of a tree structure is established between the field model data;
the self-association unit specifically includes:
the searching module is used for searching a set of all sub-nodes under the preset domain model data in the database system;
a removing module, configured to remove, from the database system, the field model data corresponding to a leaf node under the preset field model data;
and the adding module is used for adding the preset field model data corresponding to the child nodes under the field model data into the database system.
6. The domain model data management system of claim 1, wherein the sequence control unit specifically comprises:
the moving module is used for simultaneously moving the corresponding other field model data according to the self-association relation of the field model data when moving the field model data;
and the editing module is used for simultaneously editing the corresponding other field model data according to the self-association relation of the field model data when the field model data is edited.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710576036.8A CN107357904B (en) | 2017-07-14 | 2017-07-14 | Domain model data management system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710576036.8A CN107357904B (en) | 2017-07-14 | 2017-07-14 | Domain model data management system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107357904A CN107357904A (en) | 2017-11-17 |
CN107357904B true CN107357904B (en) | 2020-12-18 |
Family
ID=60292951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710576036.8A Active CN107357904B (en) | 2017-07-14 | 2017-07-14 | Domain model data management system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107357904B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852145A (en) * | 2005-11-23 | 2006-10-25 | 华为技术有限公司 | System and method for identifying authority using relative inquire |
CN101923549A (en) * | 2009-07-29 | 2010-12-22 | 北京航天理想科技有限公司 | User-defined visual intelligent track clue analytical system and establishing method |
CN103593197A (en) * | 2013-11-26 | 2014-02-19 | 国家电网公司 | Method and device for generating codes |
CN104125219A (en) * | 2014-07-07 | 2014-10-29 | 四川中电启明星信息技术有限公司 | Centralized identity and management method aiming at electric power information system |
CN104737154A (en) * | 2012-10-18 | 2015-06-24 | 甲骨文国际公司 | Associated information propagation system |
CN105512314A (en) * | 2015-12-15 | 2016-04-20 | 宋连兴 | Separable data processing method realized in applications |
CN106874303A (en) * | 2015-12-14 | 2017-06-20 | 清华大学 | Business handling process management system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8037102B2 (en) * | 2004-02-09 | 2011-10-11 | Robert T. and Virginia T. Jenkins | Manipulating sets of hierarchical data |
-
2017
- 2017-07-14 CN CN201710576036.8A patent/CN107357904B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852145A (en) * | 2005-11-23 | 2006-10-25 | 华为技术有限公司 | System and method for identifying authority using relative inquire |
CN101923549A (en) * | 2009-07-29 | 2010-12-22 | 北京航天理想科技有限公司 | User-defined visual intelligent track clue analytical system and establishing method |
CN104737154A (en) * | 2012-10-18 | 2015-06-24 | 甲骨文国际公司 | Associated information propagation system |
CN103593197A (en) * | 2013-11-26 | 2014-02-19 | 国家电网公司 | Method and device for generating codes |
CN104125219A (en) * | 2014-07-07 | 2014-10-29 | 四川中电启明星信息技术有限公司 | Centralized identity and management method aiming at electric power information system |
CN106874303A (en) * | 2015-12-14 | 2017-06-20 | 清华大学 | Business handling process management system and method |
CN105512314A (en) * | 2015-12-15 | 2016-04-20 | 宋连兴 | Separable data processing method realized in applications |
Also Published As
Publication number | Publication date |
---|---|
CN107357904A (en) | 2017-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3200103B1 (en) | A centralized content management system with an intelligent metadata layer, and a method thereof | |
US6859217B2 (en) | System and method to display and manage data within hierarchies and polyarchies of information | |
US9015118B2 (en) | Determining and presenting provenance and lineage for content in a content management system | |
US20120143931A1 (en) | Context-aware folders | |
CN107924679A (en) | Delayed binding during inputting understanding processing in response selects | |
US9009650B2 (en) | Generating a semantic graph that allows a user to intelligently and efficiently connect with people and assets involved in projects | |
US20100211535A1 (en) | Methods and systems for management of data | |
US7885973B2 (en) | Computer method and apparatus for parameterized semantic inquiry templates with type annotations | |
JP2005004734A (en) | Computer system, method of inputting data in computer system, computer program product, and produced article | |
CA2673422C (en) | Software for facet classification and information management | |
JP2009099124A (en) | Method and system for data construction | |
KR20220097956A (en) | Method and apparatus for managing IOT devices, and server and storage medium thereof | |
CN108228846B (en) | Resource file management method and device | |
US20150058363A1 (en) | Cloud-based enterprise content management system | |
CN106462933A (en) | Using content structure to socially connect users | |
CN107590189B (en) | Intelligent contract execution method, device, equipment and storage medium | |
CN114138246A (en) | Topology automatic generation method and device, computing equipment and storage medium | |
US20090049066A1 (en) | Method and System for Establishing Tree File Structure in Computer | |
CN113553458A (en) | Data export method and device in graph database | |
CN107357904B (en) | Domain model data management system | |
CN115169891B (en) | Method for realizing workflow engine comprising multi-start-point multi-branch flow | |
US9542457B1 (en) | Methods for displaying object history information | |
CN112488642B (en) | Cloud file management method based on structured labels and taking object as core | |
CN108399188A (en) | A kind of general foundation of the strong business object based on genre metadata and processing method | |
CN112860725A (en) | SQL automatic generation method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |