CN110308895A - The project development method that Project Development Platform and application item development platform are carried out - Google Patents
The project development method that Project Development Platform and application item development platform are carried out Download PDFInfo
- Publication number
- CN110308895A CN110308895A CN201910559160.2A CN201910559160A CN110308895A CN 110308895 A CN110308895 A CN 110308895A CN 201910559160 A CN201910559160 A CN 201910559160A CN 110308895 A CN110308895 A CN 110308895A
- Authority
- CN
- China
- Prior art keywords
- data
- node
- structure tree
- target
- storage medium
- 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.)
- Granted
Links
- 238000011161 development Methods 0.000 title claims abstract description 115
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000013500 data storage Methods 0.000 claims abstract description 72
- 238000013507 mapping Methods 0.000 claims abstract description 59
- 238000010276 construction Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 abstract description 11
- 238000012423 maintenance Methods 0.000 abstract description 6
- 238000003860 storage Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 20
- 238000013461 design Methods 0.000 description 13
- 238000007726 management method Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 230000008859 change Effects 0.000 description 8
- 238000013439 planning Methods 0.000 description 8
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 239000012141 concentrate Substances 0.000 description 5
- 238000013024 troubleshooting Methods 0.000 description 5
- 230000008520 organization Effects 0.000 description 4
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000013486 operation strategy Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of project development methods that Project Development Platform and application item development platform are carried out.Wherein, the Project Development Platform, the configuration data of current exploration project is obtained by configuration module, and module is constructed to the configuration data in configuration module by structure tree, construct the corresponding object structure tree of current exploration project, then, module, which is obtained, by mapping ruler obtains mapping ruler corresponding with preset data storaging medium type, and mapping block is according to mapping ruler, by object structure tree each back end and its corresponding object information be mapped in data storage medium corresponding with preset data storaging medium type.This method allows developer to focus more on service logic realization, and the functions of relying on coding realization a large amount of before is allowed to realize that, so that total system is disposed, maintenance cost is greatly reduced by configuring.
Description
Technical Field
The invention relates to the technical field of computer software development, in particular to a project development platform, a project development method and a computer readable storage medium.
Background
With the rapid development of the information-based society, modules and data related to a software system are more and more complex, and the importance of a good programming idea and structural design is more and more important.
The programming idea of 'process-oriented' provides a flow programming mode, and the structural design of the whole system is similar to that of flowing on a production line, and data is input, processed and output continuously.
In the related art, C, Fortran is the mainstream "procedure-oriented" programming language. The object-oriented programming idea provides a thinking and a method for organizing objects, and data and logic in actual problems are organized into one object through methods such as encapsulation, abstraction, inheritance and the like, so that the efficiency is improved, and the method is very suitable for the design of a large-scale software system. However, the idea of "object-oriented" has no unified thinking rule, and particularly there is no criterion for "organizing objects" and planning "relationships between objects", so that the part mainly depends on the professional degree and related experience of personnel, a better design can achieve the effect of twice as much as half the effort, but the problems brought by a poorer design may be at a disaster level. Therefore, how to implement the object-oriented unified thinking rule has become an urgent problem to be solved.
Disclosure of Invention
The present invention has been made to solve at least one of the technical problems of the related art to some extent.
Therefore, one objective of the present invention is to provide a project development platform, which solves the problems that the object-oriented programming idea has no unified criterion for organizing the relationship between objects and planning the objects, and the design and implementation completely depend on the professional level of personnel, so that developers can concentrate more on the implementation of business logic without getting in detailed technical details, the operating environment is very independent, no other third-party plug-ins are needed, and the language itself provides technical means such as system deployment, problem troubleshooting, etc., so that the functions previously implemented by relying on a large amount of codes can be implemented by configuration, the whole system deployment is enabled, and the maintenance cost is greatly reduced.
The second purpose of the invention is to provide a project development method performed by the project development platform.
To achieve the above object, a project development platform according to an embodiment of the first aspect of the present invention includes:
the configuration module is used for acquiring configuration data of the current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object and relationship data between each data object and other data objects;
the structure tree construction module is used for constructing an object structure tree corresponding to the current development project according to object information corresponding to each data and relationship data between each data object and other data objects, wherein each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and the corresponding data node also comprises object information of the corresponding data object;
the mapping rule obtaining module is used for obtaining a mapping rule corresponding to a preset data storage medium type;
and the mapping module is used for mapping each data node in the object structure tree and the object information corresponding to each data node to the data storage medium corresponding to the preset data storage medium type according to the mapping rule.
According to the project development platform provided by the embodiment of the invention, the configuration data of the current development project can be acquired, wherein the configuration data comprises a plurality of data objects, object information of each data object and relationship data between each data object and other data objects, then an object structure tree corresponding to the current development project is constructed according to the object information corresponding to each data and the relationship data between each data object and other data objects, each data node in the object structure tree is each data object in the configuration data, the associated edge between each data node is the relationship data between corresponding data objects, the corresponding data node also comprises the object information of the corresponding data object, then a mapping rule corresponding to a preset data storage medium type is acquired, and finally each data node in the object structure tree and the object information corresponding to each data node are mapped to the preset data object according to the mapping rule The storage medium type corresponds to the data storage medium. Therefore, the problem that the object-oriented programming idea has no unified criterion for the relationship between the organization object and the planning object and the design and implementation completely depend on the professional degree of personnel is solved, developers can concentrate on the implementation of business logic more without trapping detailed technical details, the operating environment is very independent and does not depend on any other third-party plug-in, meanwhile, the language provides technical means such as system deployment, problem troubleshooting and the like, so that the function realized by a large amount of code can be realized by configuration, the whole system is deployed, and the maintenance cost is greatly reduced.
According to one embodiment of the invention, the project development platform further comprises: a providing module for providing candidate data storage media types; and the selection module is used for taking the candidate data storage medium type corresponding to the user selection operation as the preset data storage medium type.
According to an embodiment of the present invention, the object information includes an object name and an object attribute, when the data storage medium type is a database type, the data storage medium is a database, and the mapping module is specifically configured to: and establishing a data table with an object name corresponding to the current data node as a table name in the database aiming at each data node in the object structure tree, and setting an object field in the data table, wherein the object field corresponds to the object attribute corresponding to the current data node.
According to an embodiment of the present invention, the configuration data further includes a logical relationship between a first target data object and a control object, where the first target data object is one or more of the plurality of data objects, and the structure tree building module is specifically configured to: according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in the object structure tree and associated edges between the data nodes; and constructing a logic node in the object structure tree according to a logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
According to one embodiment of the invention, the project development platform further comprises: a data object adding module, configured to obtain object information and object relationship data of a first newly added data object, where the object relationship data includes relationship data between the first data object and a second target data object, and the second target data object is one or more of the multiple data objects; a first structure tree updating module, configured to update the object structure tree according to object information of the first data object and relationship data between the first data object and the second target data object, where the updated object structure tree includes a second target data node corresponding to the first data object, the second target data node further includes the object information of the first data object, and a correlation edge is formed between the second target data node and a data node corresponding to the second target data object.
According to one embodiment of the invention, the project development platform further comprises: the data object adding module is used for acquiring a second data object to be deleted; and the second structure tree updating module is used for deleting the target data node corresponding to the second data object in the object structure tree.
According to one embodiment of the invention, the project development platform further comprises: the data access module is used for determining a third data object corresponding to the data access request, determining a third target data point corresponding to the third data object according to the object structure tree, and acquiring target object data matched with the data access request from the data storage medium according to the third target data point; and the display module is used for displaying the target object data.
In order to achieve the above object, a project development method performed by a project development platform according to an embodiment of a second aspect of the present invention includes:
acquiring configuration data of a current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects;
according to object information corresponding to each data and relationship data between each data object and other data objects, constructing an object structure tree corresponding to the current development project, wherein each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and the corresponding data node also comprises object information of the corresponding data object;
acquiring a mapping rule corresponding to a preset data storage medium type;
and mapping each data node in the object structure tree and the object information corresponding to each data node into a data storage medium corresponding to the preset data storage medium type according to the mapping rule.
According to the project development method performed by the project development platform of the embodiment of the present invention, the configuration data of the current development project may be obtained, where the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects, then an object structure tree corresponding to the current development project is constructed according to the object information corresponding to each data object and the relationship data between each data object and other data objects, each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, the corresponding data node further includes object information of the corresponding data object, then a mapping rule corresponding to a preset data storage medium type is obtained, and finally according to the mapping rule, and mapping each data node in the object structure tree and the object information corresponding to each data node into a data storage medium corresponding to the preset data storage medium type. Therefore, the problem that the object-oriented programming idea has no unified criterion for the relationship between the organization object and the planning object and the design and implementation completely depend on the professional degree of personnel is solved, developers can concentrate on the implementation of business logic more without trapping detailed technical details, the operating environment is very independent and does not depend on any other third-party plug-in, meanwhile, the language provides technical means such as system deployment, problem troubleshooting and the like, so that the function realized by a large amount of code can be realized by configuration, the whole system is deployed, and the maintenance cost is greatly reduced.
According to an embodiment of the present invention, the project development method performed by the project development platform further includes: providing candidate data storage media types; and taking the candidate data storage medium type corresponding to the user selection operation as the preset data storage medium type.
According to an embodiment of the present invention, the mapping of the object information to the data storage medium corresponding to the preset data storage medium type includes: and establishing a data table with an object name corresponding to the current data node as a table name in the database aiming at each data node in the object structure tree, and setting an object field in the data table, wherein the object field corresponds to the object attribute corresponding to the current data node.
According to an embodiment of the present invention, the configuration data further includes a logical relationship between a first target data object and a control object, where the first target data object is one or more of the plurality of data objects, and the object structure tree corresponding to the current development project is constructed according to object information corresponding to each data and relationship data between each data object and other data objects, including; according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in the object structure tree and associated edges between the data nodes; and constructing a logic node in the object structure tree according to a logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
According to an embodiment of the present invention, the project development method performed by the project development platform further includes: acquiring object information and object relation data of a first newly added data object, wherein the object relation data comprises relation data between the first data object and a second target data object, and the second target data object is one or more of the data objects; and updating the object structure tree according to the object information of the first data object and the relationship data between the first data object and the second target data object, wherein the updated object structure tree comprises a second target data node corresponding to the first data object, the second target data node also comprises the object information of the first data object, and a correlation edge is arranged between the second target data node and the data node corresponding to the second target data object.
According to an embodiment of the present invention, the project development method performed by the project development platform further includes: acquiring a second data object to be deleted; and deleting the target data node corresponding to the second data object in the object structure tree.
According to an embodiment of the present invention, the project development method performed by the project development platform further includes: determining a third data object corresponding to the data access request; determining a third target data point corresponding to the third data object from the object structure tree; acquiring target object data matched with the data access request from the data storage medium according to the third target data point; and displaying the target object data.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a schematic structural diagram of a project development platform according to one embodiment of the invention.
FIG. 2 is a diagram of a relational data structure between each data object and other data objects, according to one embodiment of the invention.
FIG. 3 is a structural diagram of an object structure tree for managing projects for employees according to the current development project of the present invention.
FIG. 4 is a schematic diagram of another object structure tree for managing projects for employees according to the current development project of the present invention.
Fig. 5 is a schematic structural diagram of a mapping rule of a storage medium type database according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a mapping rule of a storage medium type being a file according to an embodiment of the present invention.
FIG. 7 is a schematic structural diagram of a project development platform according to another embodiment of the invention.
FIG. 8 is a schematic structural diagram of a project development platform according to another embodiment of the invention.
FIG. 9 is a schematic structural diagram of a project development platform according to another embodiment of the invention.
FIG. 10 is a flow diagram of a project development method performed by an application project development platform, according to one embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related art, C, Fortran is the mainstream "procedure-oriented" programming language. The object-oriented programming idea provides a thinking and a method for organizing objects, and data and logic in actual problems are organized into one object through methods such as encapsulation, abstraction, inheritance and the like, so that the efficiency is improved, and the method is very suitable for the design of a large-scale software system. However, the idea of "object-oriented" has no unified thinking rule, and particularly there is no criterion for "organizing objects" and planning "relationships between objects", so that the part mainly depends on the professional degree and related experience of personnel, a better design can achieve the effect of twice as much as half the effort, but the problems brought by a poorer design may be at a disaster level. Therefore, how to implement the object-oriented unified thinking rule has become an urgent problem to be solved. In order to solve the technical problems in the prior art, the invention provides a project development platform and a project development method performed by the application project development platform.
Fig. 1 is a schematic structural diagram of a project development platform according to an embodiment of the present invention, and as shown in fig. 1, the project development platform 100 may include: a configuration module 110, a structure tree construction module 120, a mapping rule obtaining module 130 and a mapping module 140. Wherein,
the configuration module 110 is configured to obtain configuration data of a current development project, where the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects;
the structure tree construction module 120 is configured to construct an object structure tree corresponding to the current development project according to object information corresponding to each data and relationship data between each data object and other data objects, where each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and each corresponding data node further includes object information of the corresponding data object;
the mapping rule obtaining module 130 is configured to obtain a mapping rule corresponding to a preset data storage medium type;
the mapping module 140 is configured to map each data node in the object structure tree and its corresponding object information to a data storage medium corresponding to the preset data storage medium type according to the mapping rule.
Specifically, the configuration module 110 is configured to obtain configuration data of the current development project, where the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects.
In the embodiment of the present invention, configuration data may be respectively selected according to data types generated by each service applicable to the current development project system, and the configuration data is sent to the configuration module 110, so that the configuration module 110 is configured to obtain the configuration data of the current development project, where the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects.
It should be noted that any data object can access other objects through a direct or indirect association relationship, and does not necessarily need to be a direct association relationship, a strong association relationship is associated through a direct association relationship, and a weak association relationship is associated through an indirect relationship, so as to obtain relationship data between each data object and other data objects. For example, FIG. 2 is a diagram of a relational data structure between each data object and other data objects, according to one embodiment of the invention. As shown in fig. 2, although there is no direct association relationship between "enterprise a" and "citizen B", indirect association can be performed through the path of "enterprise a" < - > "province a" < - > "country" < - > "province B" < - > "citizen B", so that any object is associated.
The structure tree building module 120 is configured to build an object structure tree corresponding to the current development project according to object information corresponding to each data and relationship data between each data object and other data objects, where each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and each corresponding data node further includes object information of the corresponding data object.
In the embodiment of the present application, a current development project is taken as an example of an employee management project, and fig. 3 is a schematic structural diagram of an object structure tree of which the current development project is an employee management project according to the present invention, and as shown in fig. 3, it is assumed that one configuration data includes departments, and the departments include "department 1" and "department 2", where "department 1" includes "department of project 1" and "department of project 2", and an object structure tree of which the employee management project is constructed according to a relationship between the corresponding department and department of the configuration data and "department 1" and "department 2".
In an embodiment of the present invention, the configuration data further comprises a logical relationship between a first target data object and the control object, wherein the first target data object is one or more of the plurality of data objects.
It should be noted that the logical relationship is understood that a change in one object causes a change in another object, "and the process is likely to be" recursive, "i.e.," a change in another object causes another change in the object.
The structure tree building module 120 is specifically configured to: according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in an object structure tree and associated edges between the data nodes; and constructing a logic node in the object structure tree according to the logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
Continuing with the employee management project as an example, fig. 4 is a schematic structural diagram of another object structure tree for the employee management project according to the current development project of the present invention, as shown in fig. 4, assuming that the configuration data includes a department and an office hall, wherein the department includes "department 1" and "department 2", wherein "department 1" includes "project 1 department" and "project 2 department"; the office includes "office 1" and "office 2". And setting a display logic relationship on the page, so as to construct a logic node in an object structure tree of the employee management project.
The mapping rule obtaining module 130 is configured to obtain a mapping rule corresponding to a preset data storage medium type.
Optionally, the candidate data storage medium type corresponding to the user selection operation may be used as the preset data storage medium type according to the provided candidate data storage medium type, so as to obtain the mapping rule corresponding to the preset data storage medium type.
That is, the project development stage starts with the steps of establishing the related structure of the storage medium after determining the object definitions and the relationships between the objects, configuring the related operation strategies of the storage medium according to the characteristics of the storage medium, and implementing the modification of different media and the specific method of querying data according to the types and codes of different storage media. The mapping rules of the storage medium type database and the storage medium type file will be described below.
In the embodiment of the present invention, fig. 5 is a schematic structural diagram of a mapping rule in which a storage medium type is a database according to the embodiment of the present invention, and as shown in fig. 5, when the storage medium is a database, it is necessary to create a database according to definitions, construct a related table and specific attributes, define a related table, add a data index, create a backup scheme, and other related technical details.
In the embodiment of the present invention, fig. 6 is a schematic structural diagram of a mapping rule in which a storage medium type is a file according to the embodiment of the present invention, and as shown in fig. 6, when a storage medium is a file, it is generally necessary to construct a corresponding directory structure and related file formats and contents according to a hierarchy, including attributes such as planning related operation permissions of the file, sharing permissions, and the like. And different versions of the same storage medium, or policies and methods related to different platforms (Windows, Linux, etc.) may be completely different.
The mapping module 140 is configured to map each data node in the object structure tree and its corresponding object information to a data storage medium corresponding to a preset data storage medium type according to a mapping rule.
Optionally, the object information includes an object name and an object attribute, when the data storage medium type is a database type, the data storage medium is a database, a data table with the object name corresponding to the current data node as a table name may be established in the database for each data node in the object structure tree, and an object field is set in the data table, where the object field corresponds to the object attribute corresponding to the current data node.
In the process of a current development project, sometimes a data object is added according to a business requirement of the current development project, for example, the current development project is an employee management project, and it is assumed that the employee management project currently includes a configuration module 110, a structure tree building module 120, a mapping rule obtaining module 130, and a mapping module 140. In order to facilitate adding data objects in a development platform by developers, as an exemplary implementation manner, on the basis of the embodiment shown in fig. 1, fig. 7 is a schematic structural diagram of a project development platform according to another embodiment of the present invention, as shown in fig. 7, the project development platform may further include a data object adding module 710 and a first structural tree updating module 720, where the data object adding module 710 is configured to obtain object information and object relationship data of a newly added first data object, the object relationship data includes relationship data between the first data object and a second target data object, and the second target data is one or more of the plurality of data objects;
the first structure tree updating module 720 is configured to update the object structure tree according to the object information of the first data object and the relationship data between the first data object and the second target data object, where the updated object structure tree includes a second target data node corresponding to the first data object, the second target data node further includes the object information of the first data object, and an associated edge is formed between the second target data node and the data node corresponding to the second target data object.
In the embodiment of the present invention, the object attribute further includes an object attribute modification module, so that a user can modify the object attribute of the corresponding data object through the object attribute modification module conveniently.
The object attribute modification module modifies the object attribute of the corresponding data object, so that the object attribute of the corresponding data object can be added, deleted and modified.
In the process of a current development project, a data object may be deleted according to a business requirement of the current development project, for example, the current development project is an employee management project, and it is assumed that the employee management project currently includes a configuration module 110, a structure tree building module 120, a mapping rule obtaining module 130, and a mapping module 140. In order to facilitate a developer to delete a data object in a development platform, as an exemplary implementation manner, on the basis of the embodiment shown in fig. 1, fig. 8 is a schematic structural diagram of a project development platform according to another embodiment of the present invention, as shown in fig. 8, the project development platform may further include a data object deletion module 810 and a second structure tree deletion module 820, where the data object deletion module 810 is configured to obtain a second data object to be deleted; the second structure tree deleting module 820 is configured to delete a target data node in the object structure tree corresponding to the second data object.
As an exemplary implementation manner, on the basis of the embodiment shown in fig. 7 or fig. 8, fig. 9 is a schematic structural diagram of a project development platform according to another embodiment of the present invention, as shown in fig. 9, the project development platform may further include a data access module 910 and a display module 920, where the data access module 910 is configured to determine a third data object corresponding to a data access request, determine a third target data point corresponding to the third data object according to the object structure tree, and obtain target object data matching the data access request from the data storage medium according to the third target data point; the display module 920 is configured to display the target object data.
The method of accessing the object includes, but is not limited to, a relative path access method and an absolute path access method.
According to the project development platform provided by the embodiment of the invention, the configuration data of the current development project can be acquired, wherein the configuration data comprises a plurality of data objects, object information of each data object and relationship data between each data object and other data objects, then an object structure tree corresponding to the current development project is constructed according to the object information corresponding to each data and the relationship data between each data object and other data objects, each data node in the object structure tree is each data object in the configuration data, the associated edge between each data node is the relationship data between corresponding data objects, the corresponding data node also comprises the object information of the corresponding data object, then a mapping rule corresponding to a preset data storage medium type is acquired, and finally each data node in the object structure tree and the object information corresponding to each data node are mapped to the preset data object according to the mapping rule The storage medium type corresponds to the data storage medium. Therefore, the problem that the object-oriented programming idea has no unified criterion for the relationship between the organization object and the planning object and the design and implementation completely depend on the professional degree of personnel is solved, developers can concentrate on the implementation of business logic more without trapping detailed technical details, the operating environment is very independent and does not depend on any other third-party plug-in, meanwhile, the language provides technical means such as system deployment, problem troubleshooting and the like, so that the function realized by a large amount of code can be realized by configuration, the whole system is deployed, and the maintenance cost is greatly reduced.
In order to implement the above embodiments, the present application further provides a project development method performed by the application project development platform.
FIG. 10 is a flow diagram of a project development method performed by an application project development platform, according to one embodiment of the invention. The project development method performed by the application project development platform according to the embodiment of the present application may be the project development described in any of the above embodiments of the present application.
S1010, obtaining configuration data of the current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects.
In the embodiment of the invention, the configuration data can be respectively selected according to the data types generated by each service applicable to the current development project system, and the configuration data is sent to the configuration module, so that the configuration module obtains the configuration data of the current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects.
It should be noted that any data object can access other objects through a direct or indirect association relationship, and does not necessarily need to be a direct association relationship, a strong association relationship is associated through a direct association relationship, and a weak association relationship is associated through an indirect relationship, so as to obtain relationship data between each data object and other data objects.
And S1020, constructing an object structure tree corresponding to the current development project according to the object information corresponding to each data and the relationship data between each data object and other data objects, wherein each data node in the object structure tree is each data object in the configuration data, the association edge between each data node is the relationship data between the corresponding data objects, and the corresponding data node also comprises the object information of the corresponding data object.
In an embodiment of the present invention, the configuration data further comprises a logical relationship between a first target data object and the control object, wherein the first target data object is one or more of the plurality of data objects.
It should be noted that the logical relationship is understood that a change in one object causes a change in another object, "and the process is likely to be" recursive, "i.e.," a change in another object causes another change in the object.
According to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in an object structure tree and associated edges between the data nodes; and constructing a logic node in the object structure tree according to the logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
S1030, acquiring a mapping rule corresponding to the preset data storage medium type.
Optionally, the candidate data storage medium type corresponding to the user selection operation may be used as the preset data storage medium type according to the provided candidate data storage medium type, so as to obtain the mapping rule corresponding to the preset data storage medium type.
That is, the project development stage starts with the steps of establishing the related structure of the storage medium after determining the object definitions and the relationships between the objects, configuring the related operation strategies of the storage medium according to the characteristics of the storage medium, and implementing the modification of different media and the specific method of querying data according to the types and codes of different storage media.
And S1040, according to the mapping rule, mapping each data node in the object structure tree and the object information corresponding to each data node into the data storage medium corresponding to the preset data storage medium type.
Optionally, the object information includes an object name and an object attribute, when the data storage medium type is a database type, the data storage medium is a database, a data table with the object name corresponding to the current data node as a table name may be established in the database for each data node in the object structure tree, and an object field is set in the data table, where the object field corresponds to the object attribute corresponding to the current data node.
In the process of developing a current development project, sometimes, data objects are added according to business requirements of the current development project, and in order to facilitate addition of the data objects in a development platform by developers, optionally, in an embodiment of the present invention, object information and object relationship data of a first data object newly added may be obtained, where the object relationship data includes relationship data between the first data object and a second target data object, and the second target data object is one or more of a plurality of data objects; and updating the object structure tree according to the object information of the first data object and the relation data between the first data object and the second target data object, wherein the updated object structure tree comprises a second target data node corresponding to the first data object, the second target data node also comprises the object information of the first data object, and a correlation edge is arranged between the second target data node and the data node corresponding to the second target data object.
In the process of the current development project, sometimes a situation that a data object is deleted according to a service requirement of the current development project occurs, and in order to facilitate a developer to delete the data object in a development platform, optionally, in the embodiment of the present invention, a second data object to be deleted is obtained; and deleting the target data node corresponding to the second data object in the object structure tree.
In the process of the current development project, accessing a data object in the current development project, optionally, in an embodiment of the present invention, determining a third data object corresponding to the data access request; determining a third target data point corresponding to a third data object according to the object structure tree; acquiring target object data matched with the data access request from the data storage medium according to the third target data point; and displaying the target object data.
According to the project development method performed by the project development platform of the embodiment of the present invention, the configuration data of the current development project may be obtained, where the configuration data includes a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects, then an object structure tree corresponding to the current development project is constructed according to the object information corresponding to each data object and the relationship data between each data object and other data objects, each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, the corresponding data node further includes object information of the corresponding data object, then a mapping rule corresponding to a preset data storage medium type is obtained, and finally according to the mapping rule, and mapping each data node in the object structure tree and the object information corresponding to each data node into a data storage medium corresponding to the preset data storage medium type. Therefore, the problem that the object-oriented programming idea has no unified criterion for the relationship between the organization object and the planning object and the design and implementation completely depend on the professional degree of personnel is solved, developers can concentrate on the implementation of business logic more without trapping detailed technical details, the operating environment is very independent and does not depend on any other third-party plug-in, meanwhile, the language provides technical means such as system deployment, problem troubleshooting and the like, so that the function realized by a large amount of code can be realized by configuration, the whole system is deployed, and the maintenance cost is greatly reduced.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (14)
1. A project development platform, comprising:
the configuration module is used for acquiring configuration data of the current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object and relationship data between each data object and other data objects;
the structure tree construction module is used for constructing an object structure tree corresponding to the current development project according to object information corresponding to each data and relationship data between each data object and other data objects, wherein each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and the corresponding data node also comprises object information of the corresponding data object;
the mapping rule obtaining module is used for obtaining a mapping rule corresponding to a preset data storage medium type;
and the mapping module is used for mapping each data node in the object structure tree and the object information corresponding to each data node to the data storage medium corresponding to the preset data storage medium type according to the mapping rule.
2. The platform of claim 1, further comprising:
a providing module for providing candidate data storage media types;
and the selection module is used for taking the candidate data storage medium type corresponding to the user selection operation as the preset data storage medium type.
3. The platform of claim 1, wherein the object information comprises an object name and an object attribute, wherein when the data storage medium type is a database type, the data storage medium is a database, and the mapping module is specifically configured to:
and establishing a data table with an object name corresponding to the current data node as a table name in the database aiming at each data node in the object structure tree, and setting an object field in the data table, wherein the object field corresponds to the object attribute corresponding to the current data node.
4. The platform of claim 1, wherein the configuration data further comprises a logical relationship between a first target data object and a control object, wherein the first target data object is one or more of the plurality of data objects,
the structure tree building module is specifically configured to:
according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in the object structure tree and associated edges between the data nodes;
and constructing a logic node in the object structure tree according to a logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
5. The platform of claim 1, wherein the platform further comprises:
a data object adding module, configured to obtain object information and object relationship data of a first newly added data object, where the object relationship data includes relationship data between the first data object and a second target data object, and the second target data object is one or more of the multiple data objects;
a first structure tree updating module, configured to update the object structure tree according to object information of the first data object and relationship data between the first data object and the second target data object, where the updated object structure tree includes a second target data node corresponding to the first data object, the second target data node further includes the object information of the first data object, and a correlation edge is formed between the second target data node and a data node corresponding to the second target data object.
6. The platform of claim 1, wherein the platform further comprises:
the data object deleting module is used for acquiring a second data object to be deleted;
and the second structure tree deleting module is used for deleting the target data node corresponding to the second data object in the object structure tree.
7. The platform of any one of claims 1-6, wherein the platform further comprises:
the data access module is used for determining a third data object corresponding to the data access request, determining a third target data point corresponding to the third data object according to the object structure tree, and acquiring target object data matched with the data access request from the data storage medium according to the third target data point;
and the display module is used for displaying the target object data.
8. A project development method applied to the project development platform according to any one of claims 1 to 7, comprising:
acquiring configuration data of a current development project, wherein the configuration data comprises a plurality of data objects, object information of each data object, and relationship data between each data object and other data objects;
according to object information corresponding to each data and relationship data between each data object and other data objects, constructing an object structure tree corresponding to the current development project, wherein each data node in the object structure tree is each data object in the configuration data, an association edge between each data node is relationship data between corresponding data objects, and the corresponding data node also comprises object information of the corresponding data object;
acquiring a mapping rule corresponding to a preset data storage medium type;
and mapping each data node in the object structure tree and the object information corresponding to each data node into a data storage medium corresponding to the preset data storage medium type according to the mapping rule.
9. The method of claim 8, further comprising:
providing candidate data storage media types;
and taking the candidate data storage medium type corresponding to the user selection operation as the preset data storage medium type.
10. The method of claim 8, wherein the object information includes an object name and an object attribute, when the data storage medium type is a database type, the data storage medium is a database, and the mapping each data node in the object structure tree and its corresponding object information to the data storage medium corresponding to the preset data storage medium type according to the mapping rule comprises:
and establishing a data table with an object name corresponding to the current data node as a table name in the database aiming at each data node in the object structure tree, and setting an object field in the data table, wherein the object field corresponds to the object attribute corresponding to the current data node.
11. The method of claim 8, wherein the configuration data further comprises a logical relationship between a first target data object and a control object, wherein the first target data object is one or more of the plurality of data objects,
constructing an object structure tree corresponding to the current development project according to the object information corresponding to each data and the relation data between each data object and other data objects, wherein the object structure tree comprises the data objects;
according to the object information corresponding to each data and the relation data between each data object and other data objects, constructing data nodes in the object structure tree and associated edges between the data nodes;
and constructing a logic node in the object structure tree according to a logic relationship between the first target data object and the control object, wherein the logic node corresponds to the control object, a logic edge between the logic node and the first target data node is the logic relationship between the first target data object and the control object, and the first target data node is a data node corresponding to the first target data object.
12. The method of claim 8, wherein the method further comprises:
acquiring object information and object relation data of a first newly added data object, wherein the object relation data comprises relation data between the first data object and a second target data object, and the second target data object is one or more of the data objects;
and updating the object structure tree according to the object information of the first data object and the relationship data between the first data object and the second target data object, wherein the updated object structure tree comprises a second target data node corresponding to the first data object, the second target data node also comprises the object information of the first data object, and a correlation edge is arranged between the second target data node and the data node corresponding to the second target data object.
13. The method of claim 8, wherein the method further comprises:
acquiring a second data object to be deleted;
and deleting the target data node corresponding to the second data object in the object structure tree.
14. The method of any one of claims 8-13, further comprising:
determining a third data object corresponding to the data access request;
determining a third target data point corresponding to the third data object from the object structure tree;
acquiring target object data matched with the data access request from the data storage medium according to the third target data point;
and displaying the target object data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910559160.2A CN110308895B (en) | 2019-06-26 | 2019-06-26 | Project development platform and project development method performed by application project development platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910559160.2A CN110308895B (en) | 2019-06-26 | 2019-06-26 | Project development platform and project development method performed by application project development platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110308895A true CN110308895A (en) | 2019-10-08 |
CN110308895B CN110308895B (en) | 2023-03-24 |
Family
ID=68076323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910559160.2A Active CN110308895B (en) | 2019-06-26 | 2019-06-26 | Project development platform and project development method performed by application project development platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110308895B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111694618A (en) * | 2020-06-04 | 2020-09-22 | 北京字节跳动网络技术有限公司 | Object processing method, device, equipment and storage medium |
CN112698819A (en) * | 2019-10-22 | 2021-04-23 | 北京信普飞科科技有限公司 | Method, device and storage medium for designing tree-oriented object programming program |
CN114489497A (en) * | 2022-01-14 | 2022-05-13 | 深圳市汇川技术股份有限公司 | Data mapping method, server and computer readable storage medium |
CN117539884A (en) * | 2024-01-10 | 2024-02-09 | 湖南科研云信息科技有限公司 | Method and related device for associating and storing research and development process data of enterprise project |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6609129B1 (en) * | 2000-10-26 | 2003-08-19 | Hon Hai Precision Ind. Co., Ltd. | Method for integrating various information objects among different databases into a system structure |
US20060293939A1 (en) * | 2005-06-23 | 2006-12-28 | Wei Sun | Design managing means, design tool and method for work breakdown structure |
CN103631596A (en) * | 2013-12-05 | 2014-03-12 | 用友软件股份有限公司 | Configuration device and configuration method of business object data entry and updating rule |
CN104111826A (en) * | 2013-04-19 | 2014-10-22 | 杭州新世纪电子科技有限公司 | Software project development method and device |
CN104572833A (en) * | 2014-12-10 | 2015-04-29 | 南车青岛四方机车车辆股份有限公司 | Mapping rule establishing method and device |
CN106294409A (en) * | 2015-05-22 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Data processing method and device |
-
2019
- 2019-06-26 CN CN201910559160.2A patent/CN110308895B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6609129B1 (en) * | 2000-10-26 | 2003-08-19 | Hon Hai Precision Ind. Co., Ltd. | Method for integrating various information objects among different databases into a system structure |
US20060293939A1 (en) * | 2005-06-23 | 2006-12-28 | Wei Sun | Design managing means, design tool and method for work breakdown structure |
CN104111826A (en) * | 2013-04-19 | 2014-10-22 | 杭州新世纪电子科技有限公司 | Software project development method and device |
CN103631596A (en) * | 2013-12-05 | 2014-03-12 | 用友软件股份有限公司 | Configuration device and configuration method of business object data entry and updating rule |
CN104572833A (en) * | 2014-12-10 | 2015-04-29 | 南车青岛四方机车车辆股份有限公司 | Mapping rule establishing method and device |
CN106294409A (en) * | 2015-05-22 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Data processing method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112698819A (en) * | 2019-10-22 | 2021-04-23 | 北京信普飞科科技有限公司 | Method, device and storage medium for designing tree-oriented object programming program |
CN111694618A (en) * | 2020-06-04 | 2020-09-22 | 北京字节跳动网络技术有限公司 | Object processing method, device, equipment and storage medium |
CN114489497A (en) * | 2022-01-14 | 2022-05-13 | 深圳市汇川技术股份有限公司 | Data mapping method, server and computer readable storage medium |
CN114489497B (en) * | 2022-01-14 | 2024-05-28 | 深圳市汇川技术股份有限公司 | Data mapping method, server side and computer readable storage medium |
CN117539884A (en) * | 2024-01-10 | 2024-02-09 | 湖南科研云信息科技有限公司 | Method and related device for associating and storing research and development process data of enterprise project |
CN117539884B (en) * | 2024-01-10 | 2024-04-02 | 湖南科研云信息科技有限公司 | Method and related device for associating and storing research and development process data of enterprise project |
Also Published As
Publication number | Publication date |
---|---|
CN110308895B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10558642B2 (en) | Mechanism for deprecating object oriented data | |
CN110308895B (en) | Project development platform and project development method performed by application project development platform | |
KR101982303B1 (en) | Building applications for configuring processes | |
CN106576054B (en) | System and method for dynamic network device configuration | |
US9317557B2 (en) | Answering relational database queries using graph exploration | |
US8166002B2 (en) | Flexible configuration item reconciliation based on data source prioritization and persistent ownership tracking | |
US10860603B2 (en) | Visualization customization | |
AU2020298056B2 (en) | Autolayout of visualizations based on graph data | |
US11593324B2 (en) | Reversible data transforms | |
CN111427748B (en) | Task alarm method, system, equipment and storage medium | |
US8793646B2 (en) | Aggregation of constraints across profiles | |
US8086588B2 (en) | Computer program product and method for sharing information between multiple computer applications using a grafted model network | |
US8086436B2 (en) | Preliminary data representations of a deployment activity model | |
CN112698819A (en) | Method, device and storage medium for designing tree-oriented object programming program | |
US8818974B2 (en) | System and method for synchronously updating a hierarchy bridge table | |
CA3170205A1 (en) | Multi-value primary keys for plurality of unique identifiers of entities | |
CN113076086B (en) | Metadata management system and method for modeling model object using the same | |
US20220078228A1 (en) | Infrastructure imports for an information technology platform | |
US11204908B2 (en) | Augmentation playback | |
Leida et al. | Facing big data variety in a model driven approach | |
KR20150099456A (en) | Methods and systems for filtering components in hierarchically-referenced data | |
US20120185369A1 (en) | Balance groups in a global reporting infrastructure | |
JPH05241800A (en) | Total control system for data base, file, and program | |
CN118151891A (en) | Application management method and related equipment | |
CN116136841A (en) | Relational data migration method, device, equipment and storage medium |
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 |