Data dictionary processing method and device, computer equipment, readable storage medium and program product

By building a data dictionary storage structure that supports multi-tenant and encrypting and decrypting the configuration information when writing requests, the problems of non-support and data security in the existing technology are solved, and efficient and secure are achieved Data dictionary processing.

CN119396347AActive Publication Date: 2025-02-07CHINA TELECOM CLOUD TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411678131.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-07
Estimated Expiration
2044-11-22

AI Technical Summary

Technical Problem

The prior art lacks support for multi-tenant scenarios when processing data dictionaries, and does not support the encryption and decryption of dictionary values, making it difficult to ensure data security and flexibility in cloud platform scenarios.

Method used

Provides a data dictionary processing method, which ensures data security and efficiency by building a storage structure that supports multi-tenants, encrypts configuration information in response to write requests, and persists and caches through a distributed encapsulation framework and cache factory.

Benefits of technology

It realizes multi-tenant data dictionary processing in cloud platform scenarios, supports data encryption and decryption, improves data security and processing efficiency, and reduces duplicate development work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396347A_ABST
    Figure CN119396347A_ABST
Patent Text Reader

Abstract

The invention relates to a data dictionary processing method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: constructing a storage structure of a data dictionary, wherein the data dictionary is used for storing configuration information of a service system; in response to a write-in request for the data dictionary, encrypting to-be-written configuration information under the condition that to-be-written data needs to be encrypted; calling a persistent layer in a distributed packaging framework of the data dictionary, and instantiating a persistent layer object to store encrypted configuration information; and caching the encrypted configuration information by caching the factory object. By the adoption of the method, writing and reading of the data dictionaries of multiple tenants can be supported, repeated development of the data dictionaries is reduced, encryption and decryption are supported in the writing and reading processes, and safety in the data dictionary processing process is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data dictionary processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] In daily work, business systems usually involve the compatibility of personalized needs and general needs. The mainstream solution is to distinguish them through dictionary configuration. Therefore, data dictionary processing is generally inevitable.

[0003] At present, the general solution to the data dictionary problem in the industry is generally to develop independently based on the database or open source configuration center framework, which involves a lot of repetitive development work, and this method also has certain shortcomings. For example, dictionary value encryption and decryption are generally not supported; for cloud platform scenarios, multi-tenant mode is not supported. Summary of the invention

[0004] Based on this, it is necessary to provide a data dictionary processing method, device, computer equipment, computer-readable storage medium and computer program product that can support multiple tenants in order to address the above technical problems.

[0005] In a first aspect, the present application provides a data dictionary processing method, comprising:

[0006] Constructing a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0007] In response to a request to write the data dictionary, encrypting the configuration information to be written if encryption of the data to be written is required;

[0008] Calling the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information;

[0009] The encrypted configuration information is cached through the cache factory object.

[0010] In one embodiment, the method further comprises:

[0011] In response to a read request for the data dictionary, obtaining a key value and a scope type of a tenant to be read;

[0012] When it is determined according to the key value and the scope type that there is a configuration information cache of the tenant to be read in the cache factory, the corresponding configuration information is read from the cache factory.

[0013] In one embodiment, the method further comprises:

[0014] When it is determined according to the key value and the scope that the configuration information cache of the tenant to be read does not exist in the cache factory, the corresponding configuration information is read from the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read.

[0015] In one embodiment, reading corresponding configuration information from a persistence layer object of a corresponding data dictionary according to the scope type of the tenant to be read includes:

[0016] If the scope type is a global type, the corresponding configuration information is read from the persistence layer object of the global dictionary;

[0017] If the scope type is a tenant type, the corresponding configuration information is read from the persistence layer object of the tenant dictionary;

[0018] If the scope type is an automatic type, the corresponding configuration information is first read from the persistence layer object of the tenant dictionary. If the corresponding configuration information does not exist in the tenant dictionary, the corresponding configuration information is then read from the persistence layer object of the global dictionary.

[0019] In one embodiment, after reading the corresponding configuration information from the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read, the method further includes:

[0020] The configuration information read from the persistence layer object of the corresponding data dictionary is saved to the cache factory.

[0021] In one embodiment, according to the scope type of the tenant to be read, the corresponding configuration information is read from the persistence layer object of the corresponding data dictionary, including:

[0022] In the case where the configuration information of the tenant to be read is stored in a sub-dictionary of the corresponding data dictionary, the corresponding configuration information is read from the persistence layer object of the corresponding sub-dictionary according to the scope type of the tenant to be read.

[0023] In a second aspect, the present application also provides a data dictionary processing device, comprising:

[0024] A construction module, used to construct a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0025] A response module, configured to respond to a request to write the data dictionary and, if encryption of the data to be written is required, encrypt the configuration information to be written;

[0026] A calling module, used for calling the persistence layer in the distributed encapsulation framework of the data dictionary, instantiating the persistence layer object to save the encrypted configuration information;

[0027] The cache module caches the encrypted configuration information through the cache factory object.

[0028] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0029] Constructing a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0030] In response to a request to write the data dictionary, encrypting the configuration information to be written if encryption of the data to be written is required;

[0031] Calling the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information;

[0032] The encrypted configuration information is cached through the cache factory object.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0034] Constructing a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0035] In response to a request to write the data dictionary, encrypting the configuration information to be written if encryption of the data to be written is required;

[0036] Calling the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information;

[0037] The encrypted configuration information is cached through the cache factory object.

[0038] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0039] Constructing a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0040] In response to a request to write the data dictionary, encrypting the configuration information to be written if encryption of the data to be written is required;

[0041] Calling the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information;

[0042] The encrypted configuration information is cached through the cache factory object.

[0043] The above-mentioned data dictionary processing method, device, computer equipment, computer-readable storage medium and computer program product construct a storage structure of a data dictionary, and the data dictionary is used to store the configuration information of the business system; in response to a write request to the data dictionary, when it is necessary to encrypt the data to be written, the configuration information to be written is encrypted; the persistence layer in the distributed encapsulation framework of the data dictionary is called to instantiate the persistence layer object to save the encrypted configuration information; and the encrypted configuration information is cached through the cache factory object. In this way, through a special storage architecture, the data dictionaries of multiple tenants are stored, and the data dictionaries of tenants with encryption requirements are encrypted and decrypted, which ensures the security of the data dictionary processing process and reduces the repeated development of data dictionaries. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0045] FIG1 is an application environment diagram of a data dictionary processing method in one embodiment;

[0046] FIG2 is a schematic diagram of a flow chart of a method for writing a data dictionary in one embodiment;

[0047] FIG3 is a schematic diagram of a flow chart of a method for reading a data dictionary in one embodiment;

[0048] FIG4 is a block diagram of a data dictionary processing device in one embodiment;

[0049] FIG. 5 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0051] In an exemplary embodiment, the data dictionary processing method provided in the embodiment of the present application can be applied to an application environment where a business system of a cloud platform needs to support multi-tenant use.

[0052] In one embodiment, as shown in FIG1 , a data dictionary processing method is provided. This embodiment is illustrated by applying the method to a terminal. It is understandable that the method can also be applied to a server, or to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0053] Step 102: construct a storage structure of a data dictionary, where the data dictionary is used to store configuration information of the business system.

[0054] The storage structure is a distributed general dictionary framework encapsulated based on the Spring boot (Java development framework) framework, which can provide tools such as encryption, creation, storage, and query of data dictionaries. The data dictionary refers to the configuration of the business system corresponding to the tenant, which is used to be compatible with different business scenarios.

[0055] In some embodiments, the terminal encapsulates a distributed general dictionary framework based on the Spring boot framework to build a storage structure for the data dictionary. The main fields include the parent id field, whether it contains sub-departments, tenant id, etc. The above framework can be used to implement encryption, creation, storage, query, etc. for the data dictionary. The data dictionary is used to store the configuration information of the business system.

[0056] Furthermore, the above storage structure also supports the structure of a parent-child dictionary, wherein the parent-child dictionary is a data structure with a parent-child relationship, wherein each entry may have one or more child entries.

[0057] Step 104 , in response to a request to write the data dictionary, if encryption of the data to be written is required, encrypt the configuration information to be written.

[0058] In actual implementation, the terminal will respond to the request to write the data dictionary, and encrypt the configuration information to be written when it is necessary to encrypt the data to be written.

[0059] Among them, the encryption method can be the SHA256 encryption algorithm (a cryptographic hash function that can convert input data of any length into a fixed-length output of 256). The specific encryption method can be formulated according to user needs and supports customized encryption algorithms. The embodiments of the present application are not limited to this.

[0060] Step 106, calling the persistence layer in the distributed encapsulation framework of the data dictionary, instantiating the persistence layer object to save the encrypted configuration information.

[0061] The persistence layer is located between the domain layer and the basic layer. Its main function is to interact with the database and is responsible for various operations on the data. Instantiation is the process of creating an object of a specific type.

[0062] In actual implementation, the terminal will call the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object, thereby saving the encrypted configuration information.

[0063] In another embodiment, when the configuration information to be written does not need to be encrypted, the terminal directly calls the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object, thereby saving the original configuration information to be written.

[0064] Step 108: Cache the encrypted configuration information through the cache factory object.

[0065] Among them, the cache factory is a mechanism for creating and managing cache objects.

[0066] In actual implementation, the terminal will cache the encrypted configuration information through the cache factory object and set the validity period.

[0067] In the above data dictionary processing method, a storage structure of a data dictionary is constructed, and the data dictionary is used to store the configuration information of the business system; in response to a write request to the data dictionary, the configuration information to be written is encrypted when the data to be written needs to be encrypted; the persistence layer in the distributed encapsulation framework of the data dictionary is called to instantiate the persistence layer object to save the encrypted configuration information; and the encrypted configuration information is cached through the cache factory object. In this way, through a special storage architecture, the data dictionaries of multiple tenants are stored, and the data dictionaries of tenants with encryption requirements are encrypted and decrypted, which ensures the security of the data dictionary processing process and reduces the repeated development of data dictionaries.

[0068] In an exemplary embodiment, the data dictionary processing method also includes: in response to a read request for the data dictionary, obtaining the key value and scope type of the tenant to be read; when it is determined based on the key value and scope type that there is a configuration information cache of the tenant to be read in the cache factory, reading the corresponding configuration information from the cache factory.

[0069] In actual implementation, the terminal will respond to the read request for the data dictionary, obtain the key value and scope type of the tenant to be read, find the location of the corresponding configuration information of the tenant to be read through the key value of the tenant to be read, and determine whether the configuration information of the tenant to be read is within the validity period through the scope of the tenant. Read the corresponding configuration information of the tenant to be read from the cache factory.

[0070] Among them, scope is the range in which a variable or function can be accessed. In a program, the scope defines the accessibility and life cycle of a variable.

[0071] In the above embodiment, the corresponding configuration information is read directly in the cache factory through the key value and scope of the tenant to be read, which speeds up the search speed of the data dictionary and improves the processing efficiency.

[0072] In some exemplary embodiments, when it is determined based on the key value and scope that the configuration information cache of the tenant to be read does not exist in the cache factory, the corresponding configuration information is read from the persistence layer object of the corresponding data dictionary based on the scope type of the tenant to be read.

[0073] In actual implementation, if the terminal cannot find the configuration information of the tenant to be read in the cache factory according to the key value and scope, it will read the corresponding configuration information in the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read.

[0074] In the above embodiment, when the configuration information of the tenant to be read does not exist in the cache factory, the corresponding configuration information can also be read in the persistence layer of the corresponding data dictionary, thereby ensuring the long-term validity of the configuration information.

[0075] In some exemplary embodiments, according to the scope type of the tenant to be read, the corresponding configuration information is read in the persistence layer object of the corresponding data dictionary, including: if the scope type is a global type, the corresponding configuration information is read in the persistence layer object of the global dictionary; if the scope type is a tenant type, the corresponding configuration information is read in the persistence layer object of the tenant dictionary; if the scope type is an automatic type, the corresponding configuration information is first read in the persistence layer object of the tenant dictionary, and if the corresponding configuration information does not exist in the tenant dictionary, the corresponding configuration information is read in the persistence layer object of the global dictionary.

[0076] Among them, the scope types are divided into global type, tenant type and automatic type.

[0077] In actual implementation, the terminal will identify the scope type of the tenant to be read. When the scope type of the user to be read is a global type, it means that the configuration information of the user to be read is a global type, and the corresponding configuration information is read in the persistence layer object of the global dictionary.

[0078] When the scope type of the user to be read is a tenant type, it means that the configuration information of the user to be read is of a tenant type and is unique to the tenant, and the corresponding configuration information is read from the persistence layer object of the tenant dictionary.

[0079] When the scope type of the user to be read is the automatic type, it means that the specific type of the configuration information of the user to be read is uncertain, but the probability of the tenant type is higher. Therefore, the corresponding configuration information is first read from the persistence layer object of the tenant dictionary. If the configuration information of the corresponding user to be read does not exist in the persistence layer object of the tenant dictionary, the corresponding configuration information is read from the persistence layer object of the global dictionary.

[0080] In the above embodiment, different reading orders are set according to different types of scopes, which reduces repeated operations in the reading process and improves the efficiency of the reading process.

[0081] In some exemplary embodiments, according to the scope type of the tenant to be read, after reading the corresponding configuration information in the persistence layer object of the corresponding data dictionary, it also includes: saving the configuration information read from the persistence layer object of the corresponding data dictionary to the cache factory.

[0082] In actual implementation, when the terminal does not read the corresponding configuration information in the cache factory, it means that the configuration information of the tenant to be read has expired. Therefore, according to the scope type of the tenant to be read, after reading the corresponding configuration information in the persistence layer object of the corresponding data dictionary, the configuration information read from the persistence layer object of the corresponding data dictionary is saved to the cache factory.

[0083] In the above embodiment, after the original configuration information expires, the configuration information is read again and then saved to the cache factory, which ensures that the corresponding configuration information always exists in the cache factory and speeds up the reading efficiency.

[0084] In some exemplary embodiments, according to the scope type of the tenant to be read, the corresponding configuration information is read in the persistence layer object of the corresponding data dictionary, including: when the configuration information of the tenant to be read is stored in a sub-dictionary of the corresponding data dictionary, according to the scope type of the tenant to be read, the corresponding configuration information is read in the persistence layer object of the corresponding sub-dictionary.

[0085] In actual implementation, when the terminal reads the configuration information of the tenant to be read, if the configuration information of the tenant to be read is stored in a sub-dictionary of the corresponding data dictionary, the terminal will read the corresponding configuration information in the persistence layer object of the corresponding sub-dictionary according to the scope type of the tenant to be read.

[0086] In the above embodiment, by reading the child dictionary under the parent dictionary, the acquired configuration information is made more detailed.

[0087] To explain the data dictionary processing method in the present application in detail, an embodiment is used for explanation below. By way of example, the present application is described with a data dictionary processing method in a specific scenario.

[0088] First, the terminal will encapsulate a distributed general dictionary framework based on the Spring boot framework to build a storage structure for the data dictionary. The main fields include the parent ID field, whether it contains sub-departments, tenant ID, etc.

[0089] In response to the write request for the data dictionary, the specific writing process is shown in Figure 2. The data dictionaries of multiple tenants, that is, the configuration information of the tenants, are written. If the data to be written needs to be encrypted, the configuration information to be written is encrypted. The encryption algorithm is customized according to the needs.

[0090] The terminal will call the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information. The encrypted configuration information is cached through the cache factory object and the validity period is set.

[0091] The terminal will respond to the read request for the data dictionary. The specific reading process is shown in Figure 3. The key value and scope type of the tenant to be read are obtained. The location of the corresponding tenant configuration information to be read is found through the key value of the tenant to be read. The tenant scope is used to determine whether the tenant configuration information to be read is within the validity period. The corresponding configuration information of the tenant to be read is read from the cache factory.

[0092] If the configuration information of the tenant to be read cannot be found in the cache factory according to the key value and scope, the corresponding configuration information will be read from the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read.

[0093] The terminal will identify the scope type of the tenant to be read. When the scope type of the user to be read is a global type, it means that the configuration information of the user to be read is a global type, and the corresponding configuration information is read in the persistence layer object of the global dictionary.

[0094] When the scope type of the user to be read is a tenant type, it means that the configuration information of the user to be read is of a tenant type and is unique to the tenant, and the corresponding configuration information is read from the persistence layer object of the tenant dictionary.

[0095] When the scope type of the user to be read is the automatic type, it means that the specific type of the configuration information of the user to be read is uncertain, but the probability of the tenant type is higher. Therefore, the corresponding configuration information is first read from the persistence layer object of the tenant dictionary. If the configuration information of the corresponding user to be read does not exist in the persistence layer object of the tenant dictionary, the corresponding configuration information is read from the persistence layer object of the global dictionary.

[0096] Save the configuration information read from the persistence layer object of the corresponding data dictionary to the cache factory.

[0097] In the case where the configuration information of the tenant to be read is stored in a sub-dictionary of the corresponding data dictionary, the corresponding configuration information will be read from the persistence layer object of the corresponding sub-dictionary according to the scope type of the tenant to be read.

[0098] This application ensures the security of the data dictionary processing process by encrypting and decrypting the data dictionary during the writing and reading process according to needs.

[0099] This application supports writing and reading data dictionaries of multiple tenants, reducing duplicate development and lowering development costs.

[0100] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0101] Based on the same inventive concept, the embodiment of the present application also provides a data dictionary processing device for implementing the data dictionary processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data dictionary processing device embodiments provided below can refer to the limitations of the data dictionary processing method above, and will not be repeated here.

[0102] In an exemplary embodiment, as shown in FIG4 , a data dictionary processing device is provided, including: a construction module 401, a response module 402, a call module 403 and a cache module 404, wherein:

[0103] A construction module, used to construct a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0104] A response module, configured to respond to a request to write the data dictionary and, if encryption of the data to be written is required, encrypt the configuration information to be written;

[0105] A calling module, used for calling the persistence layer in the distributed encapsulation framework of the data dictionary, instantiating the persistence layer object to save the encrypted configuration information;

[0106] The cache module caches the encrypted configuration information through the cache factory object.

[0107] In some embodiments, the apparatus further comprises a reading module, configured to obtain a key value and a scope type of a tenant to be read in response to a read request for the data dictionary;

[0108] When it is determined according to the key value and the scope type that there is a configuration information cache of the tenant to be read in the cache factory, the corresponding configuration information is read from the cache factory.

[0109] In some embodiments, the above-mentioned reading device is also used to read the corresponding configuration information in the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read, when it is determined based on the key value and scope that there is no configuration information cache of the tenant to be read in the cache factory.

[0110] In some embodiments, the reading device is further used to read corresponding configuration information from a persistence layer object of a global dictionary if the scope type is a global type;

[0111] If the scope type is a tenant type, the corresponding configuration information is read from the persistence layer object of the tenant dictionary;

[0112] If the scope type is an automatic type, the corresponding configuration information is first read from the persistence layer object of the tenant dictionary. If the corresponding configuration information does not exist in the tenant dictionary, the corresponding configuration information is then read from the persistence layer object of the global dictionary.

[0113] In some embodiments, the apparatus further comprises a saving module for saving the configuration information read from the persistence layer object of the corresponding data dictionary to the cache factory.

[0114] In some embodiments, the above-mentioned reading device is also used to read the corresponding configuration information in the persistence layer object of the corresponding sub-dictionary according to the scope type of the tenant to be read when the configuration information of the tenant to be read is stored in the sub-dictionary of the corresponding data dictionary.

[0115] Each module in the above-mentioned data dictionary processing device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module above.

[0116] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a data dictionary processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0117] Those skilled in the art will understand that the structure shown in FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0119] Constructing a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0120] In response to a request to write the data dictionary, encrypting the configuration information to be written if encryption of the data to be written is required;

[0121] Calling the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information;

[0122] The encrypted configuration information is cached through the cache factory object.

[0123] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0124] Constructing a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0125] In response to a request to write the data dictionary, encrypting the configuration information to be written if encryption of the data to be written is required;

[0126] Calling the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information;

[0127] The encrypted configuration information is cached through the cache factory object.

[0128] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0129] Constructing a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system;

[0130] In response to a request to write the data dictionary, encrypting the configuration information to be written if encryption of the data to be written is required;

[0131] Calling the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information;

[0132] The encrypted configuration information is cached through the cache factory object.

[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0134] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0136] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data dictionary processing method, characterized in that: The method comprises: Constructing a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system; In response to a request to write the data dictionary, encrypting the configuration information to be written if encryption of the data to be written is required; Calling the persistence layer in the distributed encapsulation framework of the data dictionary to instantiate the persistence layer object to save the encrypted configuration information; The encrypted configuration information is cached through the cache factory object.

2. The method according to claim 1, characterized in that The method further comprises: In response to a read request for the data dictionary, obtaining a key value and a scope type of a tenant to be read; When it is determined according to the key value and the scope type that there is a configuration information cache of the tenant to be read in the cache factory, the corresponding configuration information is read from the cache factory.

3. The method according to claim 2, characterized in that The method further comprises: When it is determined according to the key value and the scope that the configuration information cache of the tenant to be read does not exist in the cache factory, the corresponding configuration information is read from the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read.

4. The method according to claim 3, characterized in that The step of reading corresponding configuration information from the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read includes: If the scope type is a global type, the corresponding configuration information is read from the persistence layer object of the global dictionary; If the scope type is a tenant type, the corresponding configuration information is read from the persistence layer object of the tenant dictionary; If the scope type is an automatic type, the corresponding configuration information is first read from the persistence layer object of the tenant dictionary. If the corresponding configuration information does not exist in the tenant dictionary, the corresponding configuration information is then read from the persistence layer object of the global dictionary.

5. The method according to claim 3 or 4, characterized in that: After reading the corresponding configuration information from the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read, the method further includes: The configuration information read from the persistence layer object of the corresponding data dictionary is saved to the cache factory.

6. The method according to claim 3, characterized in that The step of reading corresponding configuration information from the persistence layer object of the corresponding data dictionary according to the scope type of the tenant to be read includes: In the case where the configuration information of the tenant to be read is stored in a sub-dictionary of the corresponding data dictionary, the corresponding configuration information is read from the persistence layer object of the corresponding sub-dictionary according to the scope type of the tenant to be read.

7. A data dictionary processing device, characterized in that: The device comprises: A construction module, used to construct a storage structure of a data dictionary, wherein the data dictionary is used to store configuration information of the business system; A response module, configured to respond to a request to write the data dictionary and, if encryption of the data to be written is required, encrypt the configuration information to be written; A calling module, used for calling the persistence layer in the distributed encapsulation framework of the data dictionary, instantiating the persistence layer object to save the encrypted configuration information; The cache module caches the encrypted configuration information through the cache factory object.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Data dictionary realization method and device and data dictionary management system

    CN106980665A

  • Data processing method, system and apparatus

    CN108809906A

  • Efficient development system based on WEB application service and NET architecture

    CN111399820A

  • Techniques and Architectures for Native Data Field Lifecycle Management

    US20180373684A1

  • Data processing method, system, and apparatus, storage medium, and device

    US20190334899A1