CN112965706B - Description method, device and medium of data types - Google Patents

Description method, device and medium of data types Download PDF

Info

Publication number
CN112965706B
CN112965706B CN202110308907.4A CN202110308907A CN112965706B CN 112965706 B CN112965706 B CN 112965706B CN 202110308907 A CN202110308907 A CN 202110308907A CN 112965706 B CN112965706 B CN 112965706B
Authority
CN
China
Prior art keywords
general structure
attribute
generic
type
user
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
Application number
CN202110308907.4A
Other languages
Chinese (zh)
Other versions
CN112965706A (en
Inventor
齐伟峰
李兆锐
郝志北
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN202110308907.4A priority Critical patent/CN112965706B/en
Publication of CN112965706A publication Critical patent/CN112965706A/en
Application granted granted Critical
Publication of CN112965706B publication Critical patent/CN112965706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a description method, equipment and medium of data types, wherein the scheme comprises the following steps: responding to a first operation of a user, constructing a general structure, and storing the general structure; responding to a second operation of a user, constructing the attribute of the general structure and the operation of the general structure, and storing the attribute of the general structure and the operation of the general structure; wherein, the attribute of the general structure is used for describing the structural characteristics of the general structure, and the operation of the general structure is used for describing the behavior characteristics of the general structure; and responding to a third operation of a user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure. The system development details can be shielded, the development difficulty is reduced, the development stability and usability are improved, seamless docking of data types among systems is realized, and the openness and the universality of the system are enhanced.

Description

Description method, device and medium of data types
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for describing a data type.
Background
In a business system, descriptions of data types are spread across the modules of the system, determining the complexity and efficiency of the development and integration of the individual modules of a system.
In the prior development process, the description of data types among different subsystems may have differences, and with the continuous increase of service requirements, the development efficiency and the integration complexity among system modules face great challenges; meanwhile, due to historical reasons, a unified structured description of data types cannot be formed among different systems, so that developers face great challenges in system development and integration processes, and the integration cost is continuously increased.
Based on this, from the perspective of system development and integration, how to provide a technical solution for describing data types is a key problem to be solved in the current business system development and integration process.
Disclosure of Invention
The embodiment of the specification provides a description method, device and medium of data types, which are used for solving the following technical problems in the prior art:
in the prior development process, the description of data types among different subsystems may have differences, and with the continuous increase of service requirements, the development efficiency and the integration complexity among system modules face great challenges; meanwhile, due to historical reasons, a unified data type structured description cannot be formed among different systems, so that developers face great challenges in the system development and integration process, and the integration cost is continuously increased.
In order to solve the above technical problems, the embodiments of the present specification are implemented as follows:
in one aspect, an embodiment of the present disclosure provides a method for describing a data type, including:
responding to a first operation of a user, constructing a general structure, and storing the general structure;
responding to a second operation of a user, constructing the attribute of the general structure and the operation of the general structure, and storing the attribute of the general structure and the operation of the general structure;
wherein, the attribute of the general structure is used for describing the structural characteristics of the general structure, and the operation of the general structure is used for describing the behavior characteristics of the general structure;
and responding to a third operation of a user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure.
In one embodiment, the type of the generic structure includes at least any one of the following: entity objects, value objects, and data transfer objects;
the entity object is used for representing the entity object with the business main key and the aggregation characteristic; the value object is used for representing an entity object without a primary key and without an aggregation root feature; the data transmission object is used for representing an entity object without a primary key and with an aggregation root characteristic.
In one embodiment, the method further comprises:
responding to the fourth operation of the user, and determining a corresponding service scene;
determining a target general structure type corresponding to the service scene according to the service scene and a preset rule so as to determine a target general structure corresponding to the service scene;
the method comprises the steps of obtaining a pre-stored target general structure corresponding to the service scene, displaying the target general structure to a user, determining a final general structure corresponding to the service scene based on a fifth operation of the user on the target general structure, and storing the final general structure.
In one embodiment, after determining the corresponding business scenario in response to a fourth operation of the user, the method further comprises:
acquiring a pre-stored final general structure;
determining whether the service scene is matched with a prestored final general structure;
and under the condition that the service scene is matched with the prestored final general structure, acquiring the prestored final general structure matched with the service scene and displaying the final general structure to a user.
In one embodiment, the method further comprises: and determining the association relation between the service scene and the corresponding final general structure, and storing the association relation so as to call the corresponding final general structure according to the association relation.
In one embodiment, in said building the property of the generic structure, the method further comprises:
determining attribute characteristics of the universal structure, wherein the attribute characteristics at least comprise any one of the following: an attribute internal code, an attribute number, and an attribute name.
In one embodiment, after the operation of building the generic structure, the method further comprises:
determining parameters of the generic structure; the parameter is used for describing the parameter types of the input parameter value and the return value of the operation;
and determining the data type of the input parameter value and the data type of the return value of the operation, and storing.
In one embodiment, the method further comprises: corresponding expansion interfaces are preset, and new target general structures are expanded according to user operation.
In another aspect, embodiments of the present disclosure provide a generic structured data type description apparatus comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
responding to a first operation of a user, constructing a general structure, and storing the general structure;
responding to a second operation of a user, constructing the attribute of the general structure and the operation of the general structure, and storing the attribute of the general structure and the operation of the general structure;
wherein, the attribute of the general structure is used for describing the structural characteristics of the general structure, and the operation of the general structure is used for describing the behavior characteristics of the general structure;
and responding to a third operation of a user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure.
The embodiment of the specification adopts at least one technical scheme, so that the following beneficial effects can be achieved: the consistency of the structured data type description in the system is realized, the difference of the structured data type description in the system and between the systems can be shielded under the specification and constraint of the unified standard, a developer only needs to identify a set of unified structured data type description standard, meanwhile, the development details can be shielded based on the framework of the general structured data type description development, the difficulty of the development system is reduced, the development cost is reduced, the usability and the stability of the structured data type module during the development of the system are enhanced, the integration of the internal module of the system is realized, the rapid butt joint of the structured data types during the integration between the system and the system is realized, the normalization and the standardization of the structured data type description of the system are realized under the premise of a set of standards, and the openness and the universality of the system are enhanced.
Drawings
The accompanying drawings, which are included to provide a further understanding of embodiments of the present specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the present application and together with the description serve to explain the present application and do not constitute an undue limitation to the present application. In the drawings:
fig. 1 is a flow chart of a description method of a data type according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a description method of a data type according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a description device for data types according to an embodiment of the present application.
Detailed Description
For the purposes, technical solutions and advantages of the present specification, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the disclosure, are intended to be within the scope of the present application based on the embodiments described herein.
The embodiment of the application provides a description method, device and medium of data types, and the description is specifically described below:
fig. 1 is a flow chart of a description method of a data type provided in an embodiment of the present application, and as shown in fig. 1, the description method of a data type provided in an embodiment of the present application may include the following steps:
s101: and responding to the first operation of the user, constructing a general structure and storing the general structure.
Wherein the generic structure is a top-level structure, and all data structures can be defined as generic structures.
The type of the general structure at least comprises any one of the following: entity object, value object, data transfer object. The entity object is used for representing the entity object with the business main key and the aggregation characteristic; the value object is used for representing an entity object without a primary key and without an aggregation root feature; the data transfer object is used to represent an entity object without a primary key and with an aggregate root feature.
It should be noted that, when the general structure is defined, a structure base interface needs to be implemented, and the interface characteristics are as follows:
type category: a field describing the generic structure category, a string type.
A main key: an internal code field of the generic structure, a unique identification of the generic structure, and a string type.
Numbering: number of general structure, character string type.
Name: name of the generic structure, string type.
Description of: description information of general structure, character string type.
Uri: universal structured uniform resource locator, string type.
Entity object set: describing a general structure collection held by the general structure, wherein the collection type List < T >, T is a general structure base interface type.
Referencing a set of entity objects: a generic set of structures that describe references. The collection type List < T >, T is the generic structure base interface type.
When in use, a user needs to define a corresponding general structure according to a specific service scene, which is specifically described as follows:
(1) For data structures conforming to the business primary key and aggregation features, the entity object types need to be defined, and the specifically defined characteristics are as follows:
root attribute: the root node object describing the entity object type can describe the hierarchical relationship of the parent-child object, and is the general structure base interface type.
Operation set: a set of operations describing the entity object type. The collection type List < T >, T is the operation type base interface.
Entity reference relationship set: and recording a relation set referenced between entity objects, wherein the Map type Map < String, list < EntityReaction > >, and the EntityReaction comprises a parent object number field and a child object number field.
(2) For data structures that conform to the feature of no primary key and no aggregate root meaning, the value object type needs to be defined, and the specific defined characteristics are as follows:
operation set: a set of operations describing the entity object type. The collection type List < T >, T is the operation type base interface.
(3) For a data structure with aggregation characteristics, and only applied to a data transmission scene, the type of a data transmission object needs to be defined, and specifically defined characteristics are as follows:
operation set: a set of operations describing the object type. The collection type List < T >, T is the operation type base interface.
Root attribute: the root node object describing the entity object type can describe the hierarchical relationship of the parent-child object, and is the general structure base interface type.
S102: and responding to the second operation of the user, constructing the attribute of the universal structure and the operation of the universal structure, and storing the attribute of the universal structure and the operation of the universal structure.
Wherein the attributes of the generic structure are used to describe structural characteristics of the generic structure, and the operations of the generic structure are used to describe behavioral characteristics of the generic structure.
Specifically, it is necessary to determine the attribute characteristics of the generic structure, where the attribute characteristics include at least any one of the following: an attribute internal code, an attribute number, and an attribute name. The attribute characteristics are used to describe basic information of the attributes.
In addition, the data type, default values and attribute constraints of the attributes can also be constructed.
It should be noted that, the attribute in the general data must implement an attribute base interface, and the interface characteristics are as follows:
attribute category: a field describing the nature of the attribute, a string type.
A main key: an internal code field of the attribute, a unique identification of the generic structure, and a string type.
Numbering: number of attribute, string type.
Name: name of the attribute, string type.
Whether or not it is necessary to: whether an attribute is necessary, a boolean value type.
Default value: default value of attribute, string type.
Attribute type: data type of attribute, data type base interface type.
Constraint: attribute constraints, including but not limited to length, precision, maximum, minimum, etc. of attribute types, string types.
S103: and responding to a third operation of the user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure.
The data types may include a native type, a structured type, a collection class type, a key value collection type, and the like.
It should be noted that, the above data type base interfaces must inherit the generic structure data type base interfaces, and the generic structure data type base interfaces are base interfaces of all data type derived interfaces, and the interface characteristics thereof are as follows:
type of data: a field describing the type of data type, a string type.
It should be further noted that the above four data types have the following characteristics:
(1) The primary data types, namely the basic types, comprise character strings, boolean, 16-bit integer, 32-bit integer, 64-bit integer, single-precision floating point type, double-precision floating point type, high-precision floating point type, date and time type and timestamp type. The native type interface of the general structure inherits the data type base interface, and the interface characteristics are as follows:
the native data type category: a field describing the type of native data type, a string type.
The native type may extend and register the native data type based on implementing the native type base interface.
(2) Structured data types, which are an independent Schema structure, can be subdivided into four types: entity object data type, value object data type, data transmission object data type, enumerated data type. The entity object data type is applied to a scene with a business main key and aggregation characteristics; the value object data type is applied to scenes without a primary key and without aggregation characteristics; the data transmission object data type is only applied to scenes with aggregation meanings and serves as a data transmission task; the enumeration data type is then used to describe the enumeration structure.
All the above structured data type definitions must implement a generic structured data type base interface with the following interface characteristics:
type of data: a field describing the type of data type, a string type.
A main key: an internal code field of the structured data type, a unique identifier, and a character string type.
Numbering: the number of the structured data type, the string type.
Name: the name of the structured data type, the string type.
Description of: a description of the structured data type, a string type.
Uri: a uniform resource locator for the structured data type, a unique identification of the resource, and a string type.
Attribute set: and attribute collection contained in the structured data type, list < T >, wherein T is an attribute-based interface type.
The physical object data type interface inherits the structured data type base interface of the general structure, defines that the physical object data type base interface must be realized, and has the following characteristics on the basis of the characteristics of the structured data type base interface:
a primary key set: the business main key set of each entity object in the entity object data type is set type List < T >, and T is a character string.
The value object data type directly inherits the structured data type base interface of the generic structure, which defines the physical object data type interface that must be implemented.
The data transmission object data type interface directly inherits the structured data type base interface of the generic structure, which defines that the data transmission object data type interface has to be implemented.
The enumeration data type interface inherits a structured data type base interface of a general structure, and the interface further has the following characteristics on the basis of containing the characteristics of the structured data type base interface:
enumerating a set of items: enumerating the item collection, wherein the collection type List < T >, T is an energationitem, and the energationitem contains a number, an enumeration value and a description characteristic.
(3) The set type of the general structure must implement a set type base interface, and the interface features are as follows:
elements of the collection type: element information in the collection type is described, and the general structure data type is based on the interface type.
(4) Map type, map type of general structure must realize Map type base interface, its interface characteristic is as follows:
a key: key information in Map type is described, generic structure data type base interface type.
Value: value information in Map type is described, and general structure data type is based on interface type.
In some embodiments of the present description, the method further provides: responding to a fourth operation of the user, and determining a corresponding service scene; according to the service scene and a preset rule, determining a target general structure type corresponding to the service scene so as to determine a target general structure corresponding to the service scene; the method comprises the steps of obtaining a pre-stored target general structure corresponding to a service scene, displaying the target general structure to a user, determining a final general structure corresponding to the service scene based on a fifth operation of the user on the target general structure, and storing the final general structure.
Consider that there may be cases where: under the current business scene, a corresponding general structure exists, and if the target general structure is reconstructed, unnecessary resource waste is caused, and the working efficiency is influenced. To cope with this situation, the present solution proposes the following solution: after determining the corresponding service scenario in response to a fourth operation of the user, a pre-stored final generic structure may be obtained; determining whether the service scene is matched with a prestored final general structure; and under the condition that the service scene is matched with the prestored final general structure, acquiring the prestored final general structure matched with the service scene and displaying the final general structure to the user.
It should be noted that, how to determine whether the service scenario matches with the pre-stored final general structure may be performed by determining and storing an association relationship between the service scenario and the corresponding final general structure, so that the corresponding final general structure is called according to the association relationship.
In some embodiments of the present description, the method further provides: after the operation of constructing the generic structure, determining parameters of the generic structure; parameters are used to describe the parameter types of the entry and return values of the operation; and determining and storing the data type of the input parameter value and the data type of the return value of the operation.
On the other hand, the definition of the operation of the generic structure must implement an operation base interface, and the interface characteristics are as follows:
operation type: a field describing the kind of operation, a string type.
Numbering: number of operation, string type.
Name: name of the operation, string type.
Description of: description of the operation, string type.
Uri: the operation uniform resource locator, the unique identification of the resource, the character string type.
Entering into the ginseng: the operation is entered, the collection type List < T >, T is the parameter base interface type of the general structure.
Return value: the return value of the operation, the data type base interface type of the generic structure.
On the other hand, the definition of parameters of the generic structure must implement a parameter-based interface, the interface characteristics being as follows:
parameter types: a field describing the type of parameter, a string type.
Numbering: number of parameters, string type.
Name: name of the parameter, string type.
Description of: and describing parameters and character string types.
Parameter type: the data type of the parameter, the data type base interface type of the general structure.
Whether or not it is necessary to: whether the parameter is a must-pass parameter or not, and the Boolean value type.
Default value: default values of parameters, string type.
Constraint: constraints of parameters include, but are not limited to, length, precision, maximum, minimum, etc. of the parameter type, string type.
Considering the complexity and variability of the service scenario, there may be a situation that the above-mentioned generic structure cannot meet the requirements of the later actual service environment, so in some embodiments of the present specification, the method further proposes: corresponding expansion interfaces are preset, and new target general structures are expanded according to user operation. The specific explanation is as follows:
the universal structure has the function of structure expansion, so that the universal structure expands new structural characteristics and behavior characteristics on the basis of original capability. The structure expansion of the generic structure includes, but is not limited to, expansion of attributes, operations, parameters, data types in the generic structure, the generic structure definition must implement a generic structure base interface, and the generic structure definition must be guaranteed to have the most basic generic structure interface capabilities.
The general structure can expand new attribute structure characteristics based on original attribute capability, and the attribute of the general structure must realize a general data structure attribute base interface, so that the defined attribute must have the most basic general structure attribute interface capability.
And supporting parameter expansion, so that the expanded parameters expand new capacity on the basis of original parameter definition. Parameters of the generic structure must implement the parameter-based interface provided by the generic data structure, ensuring that the defined parameters must have the basic ability to describe the parameters of the generic data structure.
The type expansion of the data types is supported, so that the general structure expands new data type branches on the basis of the original data type capacity. The data type can be extended based on the data type base interface, the data type of the general structure must realize the data type base interface provided by the general data structure, and the defined data type must have the basic capability of describing the data type of the general data structure.
The new interface is supported to be extended on the basis of inheritance of the universal structure base interface, so that the new structure characteristic and behavior characteristic of the extended interface can be extended on the basis of original capability.
In some embodiments of the present disclosure, fig. 2 is a schematic diagram of a description method of a data type provided in the embodiments of the present disclosure, where, as shown in fig. 2, a generic structure including an entity object, a data transmission object, and a value object supports an extension structure, and attributes, parameters, and operations may support extension, including a basic type, a structured type, a collection type, and a key value, to support extension of a data type for a collection of data types.
Taking a sales order scene in the system as an example, the sales order comprises an order entity (main object) and a sales order detail item (sub object), the scene satisfies the characteristics comprising a main key and an aggregation root relation, an entity object type interface is realized, a general structure describing the sales order can be defined, and the general structure comprises basic general structural characteristics such as an inner code, a number, a name, a description, a Uri, an entity object set, a reference entity object set and the like.
Based on the definition of the generic structure attributes, sets of attributes describing the structural characteristics of the main sub-object of the sales order are defined respectively. The sales order main object comprises an inner code, an order number, an order name, an order description, an order item set and other attributes; the sales order sub-object includes attributes such as an order item internal code, an order item number, an order item name, a commodity number, a commodity name, an order number, a commodity price, a commodity total price attribute, etc., and defines a data type of the attribute in the sales order.
Based on the definition of the generic structure operations, a set of operations describing the behavior of the sales order is defined, including operations of creating the order, canceling the order, deleting the order, modifying the order, saving the order, etc., parameters of the operations are defined, and data types of return values are defined.
If the operation of the generic structure has been defined, the parameters of the operation are defined.
If the attributes of the generic structure have been defined, the data type of the attributes in the sales order may be defined; if the operation of the general structure is defined, the data type of the operation return value can be defined; if parameters of the generic structure have been defined, the data type of the operating parameters may be defined.
In summary, the data type description method provided by the application can realize the consistency of the structured data type description in the system, under the condition of unified standard specification and constraint, the difference of the structured data type description between systems can be shielded, a developer only needs to identify a set of unified structured data type description standard, meanwhile, based on a framework for general structured data type description development, development details can be shielded, the difficulty of developing the system is reduced, thereby reducing the development cost, enhancing the usability and stability of the structured data type module during system development, realizing the integration of the internal modules of the system, realizing the rapid butt joint of the structured data type during the integration between the system and the system, realizing the standardization and the standardization of the structured data type description of the system on the premise of a set of standards, and enhancing the openness and the universality of the system.
Fig. 3 is a schematic structural diagram of a description device of a data type provided in an embodiment of the present application, and as shown in fig. 3, the general description device of a structured data type provided in an embodiment of the present application may include:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
responding to a first operation of a user, constructing a general structure, and storing the general structure;
responding to a second operation of a user, constructing the attribute of the general structure and the operation of the general structure, and storing the attribute of the general structure and the operation of the general structure;
wherein, the attribute of the general structure is used for describing the structural characteristics of the general structure, and the operation of the general structure is used for describing the behavior characteristics of the general structure;
and responding to a third operation of a user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure.
The processor and the memory may communicate over a bus, and the device may also include input/output interfaces to communicate with other devices.
Some embodiments of the present application provide a non-volatile computer storage medium corresponding to one of the generating component configurators of fig. 1, storing computer-executable instructions configured to:
responding to a first operation of a user, constructing a general structure, and storing the general structure;
responding to a second operation of a user, constructing the attribute of the general structure and the operation of the general structure, and storing the attribute of the general structure and the operation of the general structure;
wherein, the attribute of the general structure is used for describing the structural characteristics of the general structure, and the operation of the general structure is used for describing the behavior characteristics of the general structure;
and responding to a third operation of a user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, non-volatile computer storage medium embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method of describing a data type, the method comprising:
responding to a first operation of a user, constructing a general structure, and storing the general structure;
responding to a second operation of a user, constructing the attribute of the general structure and the operation of the general structure, and storing the attribute of the general structure and the operation of the general structure;
wherein, the attribute of the general structure is used for describing the structural characteristics of the general structure, and the operation of the general structure is used for describing the behavior characteristics of the general structure; the generic structure is a top-level structure, and all data structures can be defined as generic structures; the type of the general structure at least comprises any one of the following: entity objects, value objects, and data transfer objects; the entity object is used for representing the entity object with the business main key and the aggregation characteristic; the value object is used for representing an entity object without a primary key and without an aggregation root feature; the data transmission object is used for representing an entity object without a primary key and with an aggregation root characteristic; the attributes of the generic structure are used to describe structural characteristics of the generic structure, and the operations of the generic structure are used to describe behavioral characteristics of the generic structure;
determining an attribute characteristic of the generic structure, the attribute characteristic comprising at least any one of: an attribute internal code, an attribute number, and an attribute name;
and responding to a third operation of a user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure.
2. The method of claim 1, wherein the generic structure type comprises at least any one of: entity objects, value objects, and data transfer objects;
the entity object is used for representing the entity object with the business main key and the aggregation characteristic; the value object is used for representing an entity object without a primary key and without an aggregation root feature; the data transmission object is used for representing an entity object without a primary key and with an aggregation root characteristic.
3. The method according to claim 1, wherein the method further comprises:
responding to the fourth operation of the user, and determining a corresponding service scene;
determining a target general structure type corresponding to the service scene according to the service scene and a preset rule so as to determine a target general structure corresponding to the service scene;
the method comprises the steps of obtaining a pre-stored target general structure corresponding to the service scene, displaying the target general structure to a user, determining a final general structure corresponding to the service scene based on a fifth operation of the user on the target general structure, and storing the final general structure.
4. A method according to claim 3, wherein after determining the corresponding traffic scenario in response to a fourth operation by the user, the method further comprises:
acquiring a pre-stored final general structure;
determining whether the service scene is matched with a prestored final general structure;
and under the condition that the service scene is matched with the prestored final general structure, acquiring the prestored final general structure matched with the service scene and displaying the final general structure to a user.
5. A method according to claim 3, characterized in that the method further comprises:
and determining the association relation between the service scene and the corresponding final general structure, and storing the association relation so as to call the corresponding final general structure according to the association relation.
6. The method of claim 1, wherein, in said building the property of the generic structure, the method further comprises:
determining attribute characteristics of the universal structure, wherein the attribute characteristics at least comprise any one of the following: an attribute internal code, an attribute number, and an attribute name.
7. The method of claim 1, wherein following the operation of building the generic structure, the method further comprises:
determining parameters of the generic structure; the parameter is used for describing the parameter types of the input parameter value and the return value of the operation;
and determining the data type of the input parameter value and the data type of the return value of the operation, and storing.
8. The method according to claim 1, wherein the method further comprises:
corresponding expansion interfaces are preset, and new target general structures are expanded according to user operation.
9. A description device of a data type, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
responding to a first operation of a user, constructing a general structure, and storing the general structure;
responding to a second operation of a user, constructing the attribute of the general structure and the operation of the general structure, and storing the attribute of the general structure and the operation of the general structure;
wherein, the attribute of the general structure is used for describing the structural characteristics of the general structure, and the operation of the general structure is used for describing the behavior characteristics of the general structure; the generic structure is a top-level structure, and all data structures can be defined as generic structures; the type of the general structure at least comprises any one of the following: entity objects, value objects, and data transfer objects; the entity object is used for representing the entity object with the business main key and the aggregation characteristic; the value object is used for representing an entity object without a primary key and without an aggregation root feature; the data transmission object is used for representing an entity object without a primary key and with an aggregation root characteristic; the attributes of the generic structure are used to describe structural characteristics of the generic structure, and the operations of the generic structure are used to describe behavioral characteristics of the generic structure;
determining an attribute characteristic of the generic structure, the attribute characteristic comprising at least any one of: an attribute internal code, an attribute number, and an attribute name;
and responding to a third operation of a user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure.
10. A non-transitory computer storage medium storing computer-executable instructions configured to:
responding to a first operation of a user, constructing a general structure, and storing the general structure;
responding to a second operation of a user, constructing the attribute of the general structure and the operation of the general structure, and storing the attribute of the general structure and the operation of the general structure;
wherein, the attribute of the general structure is used for describing the structural characteristics of the general structure, and the operation of the general structure is used for describing the behavior characteristics of the general structure; the generic structure is a top-level structure, and all data structures can be defined as generic structures; the type of the general structure at least comprises any one of the following: entity objects, value objects, and data transfer objects; the entity object is used for representing the entity object with the business main key and the aggregation characteristic; the value object is used for representing an entity object without a primary key and without an aggregation root feature; the data transmission object is used for representing an entity object without a primary key and with an aggregation root characteristic; the attributes of the generic structure are used to describe structural characteristics of the generic structure, and the operations of the generic structure are used to describe behavioral characteristics of the generic structure;
determining an attribute characteristic of the generic structure, the attribute characteristic comprising at least any one of: an attribute internal code, an attribute number, and an attribute name;
and responding to a third operation of a user, determining the data type of the attribute of the general structure and the data type of the operation of the general structure to obtain a target general structure and storing the target general structure.
CN202110308907.4A 2021-03-23 2021-03-23 Description method, device and medium of data types Active CN112965706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110308907.4A CN112965706B (en) 2021-03-23 2021-03-23 Description method, device and medium of data types

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110308907.4A CN112965706B (en) 2021-03-23 2021-03-23 Description method, device and medium of data types

Publications (2)

Publication Number Publication Date
CN112965706A CN112965706A (en) 2021-06-15
CN112965706B true CN112965706B (en) 2024-01-30

Family

ID=76278089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110308907.4A Active CN112965706B (en) 2021-03-23 2021-03-23 Description method, device and medium of data types

Country Status (1)

Country Link
CN (1) CN112965706B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843835A (en) * 2016-12-21 2017-06-13 中国电子科技网络信息安全有限公司 A kind of application systems software constructing system of meta data customizing, system constituting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130030867A1 (en) * 2011-07-28 2013-01-31 Sap Ag Managing consistent interfaces for campaign response option, sales target plan, sales price list and sales specification business objects across heterogeneous systems

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843835A (en) * 2016-12-21 2017-06-13 中国电子科技网络信息安全有限公司 A kind of application systems software constructing system of meta data customizing, system constituting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于STEP28的CEM实体数据类型的标准化描述;姜会霞;谢永才;郭延庆;;计算机测量与控制(09);全文 *

Also Published As

Publication number Publication date
CN112965706A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
US9128996B2 (en) Uniform data model and API for representation and processing of semantic data
US8234308B2 (en) Deliver application services through business object views
US7624349B2 (en) Declarative definition enabling graphical designer reuse
CN112287007B (en) Industrial production data real-time processing method and system based on Flink SQL engine
US20030105843A1 (en) Input/output device information management system for multi-computer system
US9983890B2 (en) Collaborative generation of configuration technical data for a product to be manufactured
US10360232B2 (en) Semantic mapping of data from an entity-relationship model to a graph-based data format to facilitate simplified querying
JP2012530972A (en) Managed system extension function
WO2023051125A1 (en) Structured data version management method, apparatus, and related device
CN111078213B (en) Code generation method and code generation device
WO2017178476A1 (en) Token-based database system and method of interfacing with the token-based databse system
CN111488144B (en) Data processing method and device
CN112965706B (en) Description method, device and medium of data types
US20070282863A1 (en) Method, system, and program product for providing proxies for data objects
CN114997111B (en) Service processing method, device, computer equipment and storage medium
CN115629763A (en) Target code generation method and NPU instruction display method and device
CN111221560B (en) Resource management method and device and electronic equipment
CN114328965A (en) Knowledge graph updating method and device and computer equipment
Eels et al. Aligning patterns to the Wikibase model
CN111857662A (en) Programming method for describing object specific constitution based on MAP and interface
KR20150099456A (en) Methods and systems for filtering components in hierarchically-referenced data
US10768912B1 (en) Platform class creation
JP2002132503A (en) Definition method of data linkage in workflow control system and process data control system
US20230100758A1 (en) Unique identifier creation and management for elaborated platform
US11514072B1 (en) Computerized system for programmatic mapping of record lineage based on data flow through data storage components

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
TA01 Transfer of patent application right

Effective date of registration: 20231211

Address after: 250101 Inspur science and Technology Park, 1036 Inspur Road, hi tech Zone, Jinan City, Shandong Province

Applicant after: Inspur Genersoft Co.,Ltd.

Address before: 250101 Inspur science and Technology Park, 1036 Inspur Road, hi tech Zone, Jinan City, Shandong Province

Applicant before: SHANDONG INSPUR GENESOFT INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant