Data processing method and device, equipment, medium and program product

By combining data type conversion components and dynamic processing tools, the problem of self-developed programming language systems being unable to access other programming language tools was solved, and efficient data processing was achieved without having to modify the target system.

CN120705203APending Publication Date: 2025-09-26INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510848893.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-24
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

In related technologies, systems based on self-developed programming languages ​​cannot be connected to tools in other programming languages, resulting in reduced data processing efficiency.

Method used

The first data to be processed is converted into first intermediate data through the data type conversion component, and the dynamic processing tool is called to perform dynamic processing, and finally converted into a data type that can be recognized by the target system to control the target system to connect to the target database.

Benefits of technology

Data interaction with dynamic processing tools can be achieved without modifying the target system, improving data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120705203A_ABST
    Figure CN120705203A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, equipment, a storage medium and a program product, and can be applied to the technical field of databases and the technical field of financial science and technology. The method comprises the steps that first to-be-processed data used when a target system is used for being connected with a target database is obtained, the target system is achieved in the environment of a first programming language, and the data type of the first to-be-processed data is the first data type of the first programming language; converting the first to-be-processed data into first intermediate data through a data type conversion component, wherein the data type of the first intermediate data is a second data type of a second programming language; calling a dynamic processing tool through the data type conversion component to enable the dynamic processing tool to dynamically process the first intermediate data to obtain first intermediate processing data; converting the first intermediate processing data into target data of a first data type through a data type conversion component; and controlling the target system to connect the target database according to the target data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of database technology and financial technology, and specifically to a data processing method, apparatus, device, medium and program product. Background Art

[0002] Programming languages ​​are formal languages ​​used to define computer programs, and they come in a wide variety. The programming approach can vary between different languages. For example, some languages ​​accomplish tasks by modifying state and executing statements, similar to giving a computer specific instructions. Others rely on logical reasoning, describing the conditions and relationships involved in solving a problem. The characteristics of different programming languages ​​can be adapted to different development needs. For example, C is suitable for developing low-level software such as operating systems, while Java is suitable for developing software.

[0003] In the process of realizing the concept of this application, the inventors found that there are at least the following problems in the related art: the system based on the self-developed programming language in the related art cannot be connected to the tools of other programming languages, which leads to the reduction of data processing efficiency of the system based on the self-developed programming language. Summary of the Invention

[0004] In view of the above problems, the present application provides a data processing method, apparatus, device, medium and program product.

[0005] According to a first aspect of the present application, a data processing method is provided, comprising:

[0006] Obtaining first data to be processed used by a target system to connect to a target database, wherein the target system is implemented in an environment of a first programming language, and a data type of the first data to be processed is a first data type of the first programming language;

[0007] Converting the first to-be-processed data into first intermediate data by a data type conversion component, wherein the data type of the first intermediate data is a second data type of a second programming language;

[0008] calling a dynamic processing tool through the data type conversion component, so that the dynamic processing tool dynamically processes the first intermediate data to obtain first intermediate processed data, wherein the dynamic processing tool is configured to process data of the second data type;

[0009] Converting the first intermediate processed data into target data of the first data type by the data type conversion component;

[0010] The target system is controlled to connect to the target database according to the target data.

[0011] According to an embodiment of the present application, the data type conversion component includes a target conversion relationship between the first data type and the second data type;

[0012] The step of converting the first to-be-processed data into first intermediate data by using a data type conversion component includes:

[0013] According to the target conversion relationship, the first data to be processed is converted into the first intermediate data through the data type conversion component.

[0014] According to an embodiment of the present application, the first data type includes M first sub-data types, the second data type includes N second sub-data types, and the target conversion relationship includes M N conversion sub-relations, M The mth of the N above conversion sub-relations The n conversion sub-relations represent the conversion relationship between the mth first sub-data type and the nth second sub-data type, where M, N, m, and n are all integers greater than 0, M ≥ m, and N ≥ n;

[0015] The step of converting the first to-be-processed data into the first intermediate data by the data type conversion component according to the target conversion relationship includes:

[0016] Determining a target first sub-data type from the M first sub-data types according to the data type of the first data to be processed;

[0017] Determining a target second sub-data type from the N second sub-data types according to the data type processed by the dynamic processing tool;

[0018] According to the above target first sub-data type and the above target second sub-data type, from M Determine the target conversion sub-relationship among N conversion sub-relationships;

[0019] According to the target conversion sub-relationship, the first to-be-processed data is converted into the first intermediate data through the data type conversion component.

[0020] According to an embodiment of the present application, the first intermediate processed data includes description data, and the description data represents the correspondence between data content and data location in the first intermediate processed data. The data type conversion component converts the first intermediate processed data into target data of the first data type, including:

[0021] determining a target position of the target data to be acquired in the first intermediate processed data according to the description data;

[0022] Acquire intermediate target data corresponding to the target position from the first intermediate processed data;

[0023] The intermediate target data is converted into the target data of the first data type by the data type conversion component.

[0024] According to an embodiment of the present application, converting the intermediate target data into the target data of the first data type by the data type conversion component includes:

[0025] According to the target conversion relationship, the intermediate target data is converted into the target data of the first data type by the data type conversion component.

[0026] According to an embodiment of the present application, the above method further includes:

[0027] When the target system receives the second data to be processed of the second data type from the target database, the second data to be processed is converted into the second intermediate data of the first data type through the data type conversion component according to the target conversion relationship, so that the target system can process the second intermediate data.

[0028] According to an embodiment of the present application, the above method further includes:

[0029] When the target system receives the third data to be processed of the second data type from the target database, the dynamic processing tool is called through the data type conversion component to enable the dynamic processing tool to dynamically process the third intermediate data to obtain second intermediate processed data.

[0030] The second intermediate processed data is converted into third intermediate data of the first data type by the data type conversion component, so that the target system can process the third intermediate data.

[0031] A second aspect of the present application provides a data processing device, comprising:

[0032] an acquisition module, configured to acquire first data to be processed used by a target system to connect to a target database, wherein the target system is implemented in an environment of a first programming language, and a data type of the first data to be processed is a first data type of the first programming language;

[0033] a first conversion module, configured to convert the first to-be-processed data into first intermediate data through a data type conversion component, wherein the data type of the first intermediate data is a second data type of a second programming language, and the second data type is different from the first data type;

[0034] a first calling module, configured to call a dynamic processing tool through the data type conversion component, so that the dynamic processing tool dynamically processes the first intermediate data to obtain first intermediate processed data, wherein the dynamic processing tool is configured to process data of the second data type;

[0035] A second conversion module, configured to convert the first intermediate processed data into target data of the first data type through the data type conversion component;

[0036] The control module is used to control the target system to connect to the target database according to the target data.

[0037] The third aspect of the present application provides an electronic device, comprising: one or more processors; a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0038] The fourth aspect of the present application further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the computer program or instructions are executed by a processor.

[0039] The fifth aspect of the present application further provides a computer program product, comprising a computer program or instructions, which implement the steps of the above method when executed by a processor.

[0040] According to an embodiment of the present application, a target system obtains first data to be processed for use when connecting to a target database, wherein the target system is implemented in a first programming language environment and the data type of the first data to be processed is the first data type of the first programming language; a data type conversion component is used to convert the first data to be processed into first intermediate data, wherein the data type of the first intermediate data is the second data type of a second programming language; the data type conversion component is used to call a dynamic processing tool so that the dynamic processing tool dynamically processes the first intermediate data to obtain first intermediate processed data, wherein the dynamic processing tool is configured to process data of the second data type; the data type conversion component is used to convert the first intermediate processed data into target data of the first data type; and the target system is controlled to connect to the target database based on the target data. A connection is added to the data type conversion component between the target system and the dynamic processing tool, wherein the data type conversion component is used to convert the first data to be processed dynamically by the target system into first intermediate data of the second data type, so that the dynamic processing tool can process the first intermediate data; and the data type conversion component is used to convert the first intermediate processed data of the second data type into target data of the first data type, so that the target system can parse the data. Data interaction between the target system and the dynamic processing tool can be achieved without modifying the target system, and the data processing efficiency of the target system can also be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above contents and other objects, features and advantages of the present application will become more apparent through the following description of the embodiments of the present application with reference to the accompanying drawings, in which:

[0042] Figure 1 Schematically illustrates an application scenario diagram of a data processing method, apparatus, device, storage medium, and program product according to an embodiment of the present application;

[0043] Figure 2 The following schematically shows a flow chart of a data processing method according to an embodiment of the present application;

[0044] Figure 3 The following schematically shows a flow chart of a data processing method according to another embodiment of the present application;

[0045] Figure 4 Schematically illustrates a data flow diagram between a target system, a data type conversion component, and a dynamic processing tool in a data processing method according to an embodiment of the present application;

[0046] Figure 5 A block diagram schematically illustrates a structure of a data processing device according to an embodiment of the present application; and

[0047] Figure 6A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0048] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present application. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present application.

[0049] The terms used herein are only for describing specific embodiments and are not intended to limit this application. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0050] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0051] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0052] In the technical solution of this application, the user information involved (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0053] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided in the embodiments of the present application all provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating an individual's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.

[0054] In related technologies, self-developed programming languages ​​can be modern programming languages ​​for full-scenario application development. Through the integration of modern language features, comprehensive compilation optimization and runtime implementation, as well as out-of-the-box integrated development environment support, they can create a friendly development experience and excellent program performance for developers. They have advantages such as security, reliability, easy concurrency, excellent performance, and efficient programming.

[0055] Due to the high data security requirements of the financial industry, systems implemented using proprietary programming languages ​​require encryption of sensitive data. However, encryption tools are implemented in C. Because proprietary programming languages ​​currently only support the transfer of basic C data types and cannot transmit complex data structures, systems using proprietary programming languages ​​cannot directly call encryption tools. Developers typically need to modify systems using proprietary programming languages ​​to enable encryption tools, but this modification is costly and increases maintenance costs.

[0056] In view of this, an embodiment of the present application provides a data processing method, including: obtaining first data to be processed for use by a target system when connecting to a target database, wherein the target system is implemented in an environment of a first programming language, and the data type of the first data to be processed is the first data type of the first programming language; converting the first data to be processed into first intermediate data through a data type conversion component, wherein the data type of the first intermediate data is the second data type of a second programming language; calling a dynamic processing tool through the data type conversion component so that the dynamic processing tool dynamically processes the first intermediate data to obtain first intermediate processed data, wherein the dynamic processing tool is configured to be able to process data of the second data type; converting the first intermediate processed data into target data of the first data type through the data type conversion component; and controlling the target system to connect to the target database according to the target data.

[0057] Figure 1 The application scenario diagram of the data processing method, apparatus, device, storage medium and program product according to the embodiments of the present application is schematically shown.

[0058] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links or optical fiber cables.

[0059] A user may use a first terminal device 101, a second terminal device 102, or a third terminal device 103 to interact with a server 105 via a network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, or the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (for example only).

[0060] The first terminal device 101 , the second terminal device 102 , and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0061] The server 105 may be a server that provides various services, such as a background management server (for example only) that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process received data such as user requests, and feed back processing results (e.g., web pages, information, or data obtained or generated based on user requests) to the terminal devices.

[0062] It should be noted that the data processing method provided in the embodiment of the present application can generally be executed by the server 105. Accordingly, the data processing device provided in the embodiment of the present application can generally be set in the server 105. The data processing method provided in the embodiment of the present application can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the data processing device provided in the embodiment of the present application can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0063] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0064] Figure 2 The flowchart of the data processing method according to the embodiment of the present application is schematically shown.

[0065] like Figure 2 As shown, the data processing method of this embodiment includes operations S210 to S250.

[0066] In operation S210, first data to be processed used by a target system to connect to a target database is obtained, wherein the target system is implemented in an environment of a first programming language, and a data type of the first data to be processed is a first data type of the first programming language.

[0067] In operation S220 , the first to-be-processed data is converted into first intermediate data by a data type conversion component, wherein the data type of the first intermediate data is a second data type of a second programming language.

[0068] In operation S230 , the dynamic processing tool is called through the data type conversion component to enable the dynamic processing tool to dynamically process the first intermediate data to obtain first intermediate processed data, wherein the dynamic processing tool is configured to process data of the second data type.

[0069] In operation S240 , the first intermediate processed data is converted into target data of the first data type by the data type conversion component.

[0070] In operation S250, the target system is controlled to connect to the target database according to the target data.

[0071] According to an embodiment of the present application, the target system may be, for example, a text messaging system. The first programming language may be a self-developed programming language that supports simple data types of the C language, such as int, float, and other data types.

[0072] According to an embodiment of the present application, the first data to be processed needs to be dynamically processed. For example, the first data to be processed may be a ciphertext password used by the target system to connect to the target database, and thus needs to be decrypted. The dynamic processing tool processes data of the second data type.

[0073] According to an embodiment of the present application, the data type of the first data to be processed can be converted through a data type conversion component into first intermediate data of a second data type, so that the dynamic processing tool can process the first intermediate data to obtain first intermediate processed data, and the first intermediate processed data can be the plaintext password of the second data type used by the target system to connect to the target database.

[0074] According to an embodiment of the present application, since the data type of the first intermediate processed data is still the second data type, the target system does not support data of the second data type. Therefore, a data type conversion component converts the first intermediate processed data to obtain target data of the first data type. The target data may include a plaintext password of the first data type used by the target system to connect to the target database. The target system is controlled to connect to the target database based on the target data.

[0075] According to an embodiment of the present application, a target system obtains first data to be processed for use when connecting to a target database, wherein the target system is implemented in a first programming language environment and the data type of the first data to be processed is the first data type of the first programming language; a data type conversion component is used to convert the first data to be processed into first intermediate data, wherein the data type of the first intermediate data is the second data type of a second programming language; the data type conversion component is used to call a dynamic processing tool so that the dynamic processing tool dynamically processes the first intermediate data to obtain first intermediate processed data, wherein the dynamic processing tool is configured to process data of the second data type; the data type conversion component is used to convert the first intermediate processed data into target data of the first data type; and the target system is controlled to connect to the target database based on the target data. A connection is added to the data type conversion component between the target system and the dynamic processing tool, wherein the data type conversion component is used to convert the first data to be processed dynamically by the target system into first intermediate data of the second data type, so that the dynamic processing tool can process the first intermediate data; and the data type conversion component is used to convert the first intermediate processed data of the second data type into target data of the first data type, so that the target system can parse the data. Data interaction between the target system and the dynamic processing tool can be achieved without modifying the target system, and the data processing efficiency of the target system can also be improved.

[0076] According to an embodiment of the present application, the data type conversion component includes a target conversion relationship between a first data type and a second data type.

[0077] According to an embodiment of the present application, converting the first data to be processed into the first intermediate data through the data type conversion component includes: converting the first data to be processed into the first intermediate data through the data type conversion component according to the target conversion relationship.

[0078] According to an embodiment of the present application, the target conversion relationship between the first data type and the second data type may be a mapping relationship based on data structure characteristics of the first data type and data structure characteristics of the second data type.

[0079] According to an embodiment of the present application, the first data to be processed may be mapped to first intermediate data of the second data type according to a target conversion relationship.

[0080] According to an embodiment of the present application, by defining the target conversion relationship between the first data type and the second data type, the conversion between the data of the first data type and the data of the second data type can be more clearly defined, thereby improving the conversion efficiency of the data type conversion component.

[0081] Figure 3 The flowchart of a data processing method according to another embodiment of the present application is schematically shown.

[0082] like Figure 3 As shown, the data processing method of this embodiment includes operations S310 to S340.

[0083] In operation S310 , a target first sub-data type is determined from M first sub-data types according to a data type of first data to be processed.

[0084] In operation S320 , a target second sub-data type is determined from N second sub-data types according to the data type processed by the dynamic processing tool.

[0085] In operation S330, according to the target first sub-data type and the target second sub-data type, the M Determine the target conversion sub-relationship among the N conversion sub-relationships.

[0086] In operation S340 , the first to-be-processed data is converted into first intermediate data by a data type conversion component according to the target conversion sub-relationship.

[0087] According to an embodiment of the present application, the first data type includes M first sub-data types, the second data type includes N second sub-data types, and the target conversion relationship includes M N conversion sub-relations, M The mth of N conversion sub-relations The n conversion sub-relations represent the conversion relationship between the mth first sub-data type and the nth second sub-data type, where M, N, m, and n are all integers greater than 0, M≥m, and N≥n.

[0088] According to an embodiment of the present application, the target conversion relationship includes M N conversion sub-relations are provided, so that there is a conversion sub-relation between each first sub-data type in the first data type and each second sub-data type included in the second data type. Therefore, conversions between all data types between the first programming language and the second programming language can be covered.

[0089] According to an embodiment of the present application, the data type of the first data to be processed is the first data type. Therefore, the target first sub-data type can be determined from the M first sub-data types based on the data type of the first data to be processed. If the data type of the first data to be processed is not included in the M first sub-data types, the target conversion relationship can be updated.

[0090] According to an embodiment of the present application, a target second sub-data type may be determined from the N second sub-data types based on the data type processed by the dynamic processing tool. If the data type processed by the dynamic processing tool is not included in the N second sub-data types, the target conversion relationship may be updated.

[0091] According to an embodiment of the present application, the target first sub-data type and the target second sub-data type can be obtained from M Determine the target conversion sub-relationship among the N conversion sub-relationships.

[0092] According to an embodiment of the present application, by defining a conversion sub-relationship between the first sub-data type and the second sub-data type, the conversion relationship between data of the first data type and data of the second data type can be further refined, further improving the conversion efficiency of the data type conversion component.

[0093] According to an embodiment of the present application, the first intermediate processed data includes description data, and the description data represents the correspondence between data content and data location in the first intermediate processed data.

[0094] According to an embodiment of the present application, first intermediate processed data is converted into target data of the first data type through a data type conversion component, including: determining a target position of the target data to be acquired in the first intermediate processed data based on description data; acquiring intermediate target data corresponding to the target position from the first intermediate processed data; and converting the intermediate target data into target data of the first data type through the data type conversion component.

[0095] According to an embodiment of the present application, after the dynamic processing tool processes the data, descriptive data can be generated, and the descriptive data represents the correspondence between the data content and the data location in the first intermediate processed data. Since the first intermediate processed data is data of the second data type, the data therein is not entirely required by the target system. The data type conversion component can determine the target location of the target data to be acquired in the first intermediate processed data based on the descriptive data, and acquire the intermediate target data from the first intermediate processed data based on the target location, thereby preventing other redundant data from being transmitted to the target system and increasing the burden on the target system.

[0096] According to an embodiment of the present application, the intermediate target data is converted into target data of the first data type through a data type conversion component so that the target system can recognize and parse it.

[0097] According to an embodiment of the present application, by obtaining intermediate target data from the first intermediate processed data through a data type conversion component, it is possible to avoid other redundant data being transmitted to the target system and increasing the burden on the target system.

[0098] According to an embodiment of the present application, converting the intermediate target data into target data of the first data type through a data type conversion component includes: converting the intermediate target data into target data of the first data type through the data type conversion component according to a target conversion relationship.

[0099] According to an embodiment of the present application, the conversion of the intermediate target data by the data type conversion component can refer to the conversion of the first to-be-processed data into the first intermediate data. For example, the intermediate second sub-data type can be determined from N second sub-data types according to the data type of the intermediate target data, the intermediate first sub-data type can be determined from M first sub-data types according to the data type of the target data to be converted, and the intermediate first sub-data type can be determined from M first sub-data types according to the intermediate first sub-data type and the intermediate second sub-data type. An intermediate conversion sub-relationship is determined from the N conversion sub-relationships, and the intermediate target data is converted into target data of the first data type according to the intermediate conversion sub-relationship.

[0100] According to an embodiment of the present application, the data type conversion component can convert data of a first data type into data of a second data type, and can also convert data of the second data type into data of the first data type, and can also process the first intermediate processing data obtained from the dynamic processing tool to obtain the intermediate target data therein, which can ensure that the target system only receives the required data, thereby improving the processing efficiency of the target system.

[0101] According to an embodiment of the present application, the data processing method may further include: when the target system receives second data to be processed of a second data type from the target database, converting the second data to be processed into second intermediate data of the first data type through a data type conversion component according to the target conversion relationship, so that the target system can process the second intermediate data.

[0102] According to an embodiment of the present application, when a target system is connected to a target database, a situation may arise where second data to be processed of a second data type is received from the target database. The second data to be processed may need to be directly processed by the target system, but because the second data type of the second data to be processed is not processable by the target system, the second data to be processed may be converted into second intermediate data of the first data type through a data type conversion component based on the target conversion relationship. The conversion process may refer to the description of other embodiments of the present application and will not be repeated here.

[0103] According to an embodiment of the present application, the data processing method may further include: when the target system receives third data to be processed of a second data type from a target database, calling a dynamic processing tool through a data type conversion component so that the dynamic processing tool dynamically processes the third intermediate data to obtain second intermediate processed data; converting the second intermediate processed data into third intermediate data of the first data type through the data type conversion component so that the target system can process the third intermediate data.

[0104] According to an embodiment of the present application, when a target system is connected to a target database, a situation may arise where third data to be processed of a second data type is received from the target database. The third data to be processed may require processing by a dynamic processing tool, but the second data type of the third data to be processed cannot be processed by the target system. The data type conversion component may further encapsulate an interface for calling the dynamic processing tool. Thus, the dynamic processing tool may be called through the data type conversion component to cause the dynamic processing tool to dynamically process the third intermediate data to obtain second intermediate processed data.

[0105] According to an embodiment of the present application, since the second intermediate processed data is processed by the dynamic processing tool, the data type of the second intermediate processed data is also the second data type. The second intermediate processed data can be converted into third intermediate data of the first data type by a data type conversion component, so that the target system can process the third intermediate data. The process of converting the second intermediate processed data into the third intermediate data can be referred to the description of other embodiments of the present application and will not be repeated here.

[0106] According to an embodiment of the present application, the transmitted data between the target system and the target database can also be processed by the data conversion component, thereby improving the application of the target system in different situations.

[0107] Figure 4 The data flow diagram between the target system, the data type conversion component and the dynamic processing tool in the data processing method according to an embodiment of the present application is schematically shown.

[0108] like Figure 4 As shown, the target system 410 can obtain data from the configuration management system and implement data type conversion through the data type conversion component 420. The data type conversion component 420 can convert the data type into a second data type supported by the dynamic processing tool 430 so that the dynamic processing tool 430 can process it.

[0109] Taking target system 410 as an SMS system as an example, during startup, the SMS system first obtains the ciphertext for connecting to the target database from configuration management system 440. Target system 410 then needs to decrypt the ciphertext using dynamic processing tool 430. However, the second data type processed by dynamic processing tool 430 is a complex data structure, which target system 410 cannot convert. Therefore, target system 410 transmits the ciphertext to data type conversion component 420, which converts the data type of the ciphertext into a complex structure. The successfully converted data is then transmitted to dynamic processing tool 430 for execution of the decryption algorithm. The decrypted data then undergoes further data type conversion by data type conversion component 420, ultimately returning the ciphertext of the first data type to target system 410. This establishes a connection between the target system and the target database.

[0110] According to an embodiment of the present application, data transmission between the target system and the dynamic processing tool can be achieved by simply setting up a data type conversion component between the target system and the dynamic processing tool, without having to modify the target system. This data type conversion component can also be applied to other similar scenarios, reducing the research and maintenance costs required when other applications based on a first programming language need to access a dynamic processing tool in a second programming language.

[0111] Based on the above data processing method, this application also provides a data processing device. Figure 5 The device is described in detail.

[0112] Figure 5 The structural block diagram of a data processing device according to an embodiment of the present application is schematically shown.

[0113] like Figure 5 As shown, the data processing device 500 of this embodiment includes an acquisition module 510 , a first conversion module 520 , a first calling module 530 , a second conversion module 540 and a control module 550 .

[0114] Acquisition module 510 is configured to acquire first data to be processed for use by the target system when connecting to the target database, wherein the target system is implemented in a first programming language environment, and the data type of the first data to be processed is a first data type of the first programming language. In one embodiment, acquisition module 510 may be configured to perform operation S210 described above, and will not be further described herein.

[0115] The first conversion module 520 is configured to convert the first to-be-processed data into first intermediate data via a data type conversion component, wherein the data type of the first intermediate data is a second data type of the second programming language, and the second data type is different from the first data type. In one embodiment, the first conversion module 520 can be configured to perform operation S220 described above, and will not be further described herein.

[0116] The first calling module 530 is used to call the dynamic processing tool through the data type conversion component, so that the dynamic processing tool dynamically processes the first intermediate data to obtain the first intermediate processed data, wherein the dynamic processing tool is configured to process data of the second data type. In one embodiment, the first calling module 530 can be used to perform the operation S230 described above, which will not be repeated here.

[0117] The second conversion module 540 is used to convert the first intermediate processed data into target data of the first data type through the data type conversion component. In one embodiment, the second conversion module 540 can be used to perform the operation S240 described above, which will not be repeated here.

[0118] The control module 550 is used to control the target system to connect to the target database according to the target data. In one embodiment, the control module 550 can be used to perform the operation S250 described above, which will not be repeated here.

[0119] According to an embodiment of the present application, the data type conversion component includes a target conversion relationship between a first data type and a second data type.

[0120] According to an embodiment of the present application, the first conversion module 520 for converting the first to-be-processed data into the first intermediate data through the data type conversion component includes:

[0121] The first conversion unit is configured to convert the first to-be-processed data into first intermediate data through a data type conversion component according to a target conversion relationship.

[0122] According to an embodiment of the present application, the first data type includes M first sub-data types, the second data type includes N second sub-data types, and the target conversion relationship includes M N conversion sub-relations, M The mth of N conversion sub-relations The n conversion sub-relations represent the conversion relationship between the mth first sub-data type and the nth second sub-data type, where M, N, m, and n are all integers greater than 0, M≥m, and N≥n.

[0123] According to an embodiment of the present application, a first conversion unit for converting the first to-be-processed data into the first intermediate data through the data type conversion component according to the target conversion relationship includes:

[0124] a first conversion subunit, configured to determine a target first sub-data type from the M first sub-data types according to a data type of the first data to be processed;

[0125] a second conversion subunit, configured to determine a target second sub-data type from the N second sub-data types according to the data type processed by the dynamic processing tool;

[0126] The third conversion subunit is used to convert M Determine the target conversion sub-relationship among N conversion sub-relationships;

[0127] The fourth conversion sub-unit is used to convert the first to-be-processed data into first intermediate data through a data type conversion component according to the target conversion sub-relationship.

[0128] According to an embodiment of the present application, the first intermediate processed data includes description data, which represents the correspondence between data content and data location in the first intermediate processed data. The second conversion module 540 for converting the first intermediate processed data into target data of the first data type through the data type conversion component includes:

[0129] a second conversion unit, configured to determine a target position of the target data to be acquired in the first intermediate processed data according to the description data;

[0130] a third conversion unit, configured to obtain intermediate target data corresponding to the target position from the first intermediate processed data;

[0131] The fourth conversion unit is configured to convert the intermediate target data into target data of the first data type through a data type conversion component.

[0132] According to an embodiment of the present application, a fourth conversion unit for converting the intermediate target data into target data of the first data type through the data type conversion component includes:

[0133] The fifth conversion subunit is configured to convert the intermediate target data into target data of the first data type through the data type conversion component according to the target conversion relationship.

[0134] According to an embodiment of the present application, the apparatus 500 further includes:

[0135] The third conversion module is used to convert the second to-be-processed data into second intermediate data of the first data type through the data type conversion component according to the target conversion relationship when the target system receives second to-be-processed data of the second data type from the target database, so that the target system can process the second intermediate data.

[0136] According to an embodiment of the present application, the apparatus 500 further includes:

[0137] a second calling module configured to, when the target system receives third data to be processed of the second data type from the target database, call the dynamic processing tool through the data type conversion component so that the dynamic processing tool dynamically processes the third intermediate data to obtain second intermediate processed data;

[0138] The fourth conversion module is configured to convert the second intermediate processed data into third intermediate data of the first data type through a data type conversion component, so that the target system can process the third intermediate data.

[0139] According to embodiments of the present application, any multiple modules among the acquisition module 510, the first conversion module 520, the first call module 530, the second conversion module 540, and the control module 550 may be combined into a single module, or any one of these modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in a single module. According to embodiments of the present application, at least one of the acquisition module 510, the first conversion module 520, the first call module 530, the second conversion module 540, and the control module 550 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or may be implemented in hardware or firmware through any other reasonable means of circuit integration or packaging, or may be implemented in any one of the three implementation methods of software, hardware, and firmware, or any appropriate combination of any of these. Alternatively, at least one of the acquisition module 510, the first conversion module 520, the first calling module 530, the second conversion module 540 and the control module 550 can be at least partially implemented as a computer program module, which can perform corresponding functions when executed.

[0140] Figure 6 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present application is schematically shown.

[0141] like Figure 6As shown, an electronic device 600 according to an embodiment of the present application includes a processor 601, which can perform various appropriate actions and processes based on a program stored in a read-only memory (ROM) 602 or a program loaded from a storage unit 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present application.

[0142] Various programs and data required for the operation of the electronic device 600 are stored in the RAM 603. The processor 601, ROM 602, and RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flow according to the embodiment of the present application by executing the programs in the ROM 602 and / or RAM 603. It should be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations of the method flow according to the embodiment of the present application by executing the programs stored in the one or more memories.

[0143] According to an embodiment of the present application, electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to bus 604. Electronic device 600 may also include one or more of the following components connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including devices such as a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN card or modem. Communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. Removable media 611, such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed in drive 610 as needed, so that computer programs read from the removable media can be installed into storage section 608 as needed.

[0144] This application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of this application is implemented.

[0145] According to an embodiment of the present application, a computer-readable storage medium may be a non-volatile computer-readable storage medium, and may include, for example, but not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present application, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0146] The embodiments of the present application also include a computer program product, which includes a computer program containing program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiments of the present application.

[0147] The computer program executes the above functions defined in the system / device of the embodiment of the present application when the computer program is executed by the processor 601. According to the embodiment of the present application, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0148] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0149] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from a removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the system of the embodiment of the present application are performed. According to the embodiment of the present application, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.

[0150] According to an embodiment of the present application, the program code for executing the computer program provided by the embodiment of the present application can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0151] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0152] Those skilled in the art will appreciate that the features described in the various embodiments of this application may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in this application. In particular, the features described in the various embodiments of this application may be combined and / or coupled in various ways without departing from the spirit and teachings of this application. All such combinations and / or couplings fall within the scope of this application.

Claims

1. A data processing method, characterized in that: The method comprises: Acquire first data to be processed used by a target system to connect to a target database, wherein the target system is implemented in an environment of a first programming language, and a data type of the first data to be processed is a first data type of the first programming language; Converting the first to-be-processed data into first intermediate data by a data type conversion component, wherein the data type of the first intermediate data is a second data type of a second programming language; calling a dynamic processing tool through the data type conversion component, so that the dynamic processing tool dynamically processes the first intermediate data to obtain first intermediate processed data, wherein the dynamic processing tool is configured to process data of the second data type; converting the first intermediate processed data into target data of the first data type by the data type conversion component; The target system is controlled to connect to the target database according to the target data.

2. The method according to claim 1, characterized in that The data type conversion component includes a target conversion relationship between the first data type and the second data type; The step of converting the first to-be-processed data into first intermediate data by using a data type conversion component includes: According to the target conversion relationship, the first to-be-processed data is converted into the first intermediate data by the data type conversion component.

3. The method according to claim 2, characterized in that The first data type includes M first sub-data types, the second data type includes N second sub-data types, and the target conversion relationship includes M N conversion sub-relations, M The mth of the N conversion sub-relations The n conversion sub-relations represent the conversion relationship between the mth first sub-data type and the nth second sub-data type, where M, N, m, and n are all integers greater than 0, M≥m, and N≥n; The converting the first to-be-processed data into the first intermediate data by the data type conversion component according to the target conversion relationship includes: determining a target first sub-data type from the M first sub-data types according to the data type of the first to-be-processed data; determining a target second sub-data type from the N second sub-data types according to the data type processed by the dynamic processing tool; According to the target first sub-data type and the target second sub-data type, from M Determining a target conversion sub-relationship among the N conversion sub-relationships; According to the target conversion sub-relationship, the first to-be-processed data is converted into the first intermediate data by the data type conversion component.

4. The method according to claim 3, characterized in that The first intermediate processed data includes description data, wherein the description data represents a correspondence between data content and data location in the first intermediate processed data. The converting the first intermediate processed data into target data of the first data type by the data type conversion component includes: determining a target position of the target data to be acquired in the first intermediate processed data according to the description data; acquiring intermediate target data corresponding to the target position from the first intermediate processed data; The intermediate target data is converted into the target data of the first data type by the data type conversion component.

5. The method according to claim 4, characterized in that The converting the intermediate target data into the target data of the first data type by the data type conversion component includes: According to the target conversion relationship, the intermediate target data is converted into the target data of the first data type by the data type conversion component.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the target system receives second data to be processed of the second data type from the target database, the second data to be processed is converted into second intermediate data of the first data type through the data type conversion component according to the target conversion relationship, so that the target system can process the second intermediate data.

7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the target system receives third data to be processed of the second data type from the target database, calling the dynamic processing tool through the data type conversion component so that the dynamic processing tool dynamically processes the third intermediate data to obtain second intermediate processed data; The second intermediate processed data is converted into third intermediate data of the first data type by the data type conversion component, so that the target system can process the third intermediate data.

8. A data processing device, characterized in that: The device comprises: an acquisition module, configured to acquire first data to be processed used by a target system to connect to a target database, wherein the target system is implemented in an environment of a first programming language, and a data type of the first data to be processed is a first data type of the first programming language; a first conversion module, configured to convert the first to-be-processed data into first intermediate data through a data type conversion component, wherein the data type of the first intermediate data is a second data type of a second programming language, and the second data type is different from the first data type; a first calling module, configured to call a dynamic processing tool through the data type conversion component, so that the dynamic processing tool dynamically processes the first intermediate data to obtain first intermediate processed data, wherein the dynamic processing tool is configured to process data of the second data type; a second conversion module, configured to convert the first intermediate processed data into target data of the first data type through the data type conversion component; A control module is used to control the target system to connect to the target database according to the target data.

9. An electronic device comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

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

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