Disclosure of Invention
In order to simplify business logic codes in a service framework, reduce the workload of technicians, reduce development cost and improve development efficiency, the application shows an information processing method and device.
In a first aspect, the present application shows an information processing method applied to an electronic device, where the electronic device includes at least one service communication framework SCF framework and an object relationship mapping ORM framework, where each SCF framework communicates with the ORM framework in parallel, and each SCF framework is configured with at least one service type, and the method includes:
responding to at least one SCF framework to receive a processing request which is sent by a service request end and used for processing target data in a data service end, wherein the target data is matched with the service type configured by the SCF framework;
the ORM framework is called by the SCF framework to send the processing request to the ORM framework, so that the ORM framework generates a processing statement based on a computer program language and used for processing the target data according to the processing request, the ORM framework processes the target data in the data service end according to the processing statement to obtain a processing result, and the SCF framework corresponding to the processing request returns the processing result.
In an optional implementation manner, the processing request at least carries parameter information of the target data;
the ORM framework generates a processing statement based on a computer program language for processing the target data according to the processing request, and the processing statement comprises:
acquiring attribute information of the parameter information;
obtaining a statement generation template corresponding to the parameter information according to the attribute information;
and generating the processing statement according to the statement generation template and the parameter information.
In an optional implementation manner, the obtaining, according to the attribute information, a statement generation template corresponding to the parameter information includes:
and searching the statement generating template corresponding to the attribute information in the corresponding relation between the attribute information and the statement generating template.
In an optional implementation manner, the processing the target data in the data server according to the processing statement to obtain a processing result includes:
sending the processing statement to the data server, so that the data server processes target data in the data server according to the processing statement to obtain a processing result, and returning the processing result to the ORM frame;
and receiving the processing result returned by the data server.
In an optional implementation manner, the electronic device includes multiple SCF frames, and the processing request carries identification information of the SCF frame corresponding to the processing request;
the returning of the processing result to the SCF framework corresponding to the processing request includes:
determining the SCF frame corresponding to the processing request in a plurality of SCF frames included in the electronic equipment according to the identification information;
and sending the processing result to the determined SCF framework.
In an optional implementation manner, the returning the processing result to the SCF framework corresponding to the processing request includes:
converting the data format of the processing result into the data format supported by the service request end to obtain the converted processing result;
and sending the converted processing result to the SCF framework corresponding to the processing request.
In a second aspect, the present application shows an information processing apparatus applied to an electronic device, where the electronic device includes at least one service communication framework SCF framework and an object relationship mapping ORM framework, where each SCF framework communicates with the ORM framework in parallel, and each SCF framework is configured with at least one service type, the apparatus includes:
a receiving module, configured to receive a processing request sent by a service request end and used to process target data in a data service end, where the target data is matched with a service type configured by the SCF framework;
the system comprises an ORM framework, a generating module, a processing module and a returning module, wherein the ORM framework is used for calling the ORM framework so as to send the processing request to the ORM framework, the generating module is used for generating a processing statement based on a computer program language and used for processing the target data according to the processing request, the processing module is used for processing the target data in the data service terminal according to the processing statement so as to obtain a processing result, and the returning module is used for returning the processing result to the SCF framework corresponding to the processing request.
In an optional implementation manner, the processing request at least carries parameter information of the target data;
the generation module comprises:
a first obtaining unit configured to obtain attribute information of the parameter information;
the second obtaining unit is used for obtaining a statement generation template corresponding to the parameter information according to the attribute information;
and the generating unit is used for generating the processing statement according to the statement generating template and the parameter information.
In an optional implementation manner, the second obtaining unit is specifically configured to: and searching the statement generating template corresponding to the attribute information in the corresponding relation between the attribute information and the statement generating template.
In an optional implementation manner, the processing module includes:
a first sending unit, configured to send the processing statement to the data server, so that the data server processes target data in the data server according to the processing statement to obtain a processing result, and returns the processing result to the ORM frame;
and the receiving unit is used for receiving the processing result returned by the data server.
In an optional implementation manner, the electronic device includes multiple SCF frames, and the processing request carries identification information of the SCF frame corresponding to the processing request;
the return module includes:
a determining unit, configured to determine, according to the identification information, the SCF frame corresponding to the processing request in a plurality of SCF frames included in the electronic device;
and a second sending unit, configured to send the processing result to the determined SCF frame.
In an alternative implementation, the return module includes:
a conversion unit, configured to convert the data format of the processing result into a data format supported by the service request end, so as to obtain a converted processing result;
a third sending unit, configured to send the converted processing result to the SCF framework corresponding to the processing request.
In a fourth aspect, the present application shows a non-transitory computer-readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method according to the first aspect.
In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method according to the first aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
and responding to the at least one SCF framework to receive a processing request which is sent by the service request end and is used for processing target data in the data service end, wherein the target data is matched with the service type configured by the SCF framework. The SCF framework calls the ORM framework to send a processing request to the ORM framework, so that the ORM framework generates a processing statement based on a computer program language and used for processing target data according to the processing request, processes the target data in the data service end according to the processing statement to obtain a processing result, and returns the processing result to the SCF framework corresponding to the processing request.
By the method and the device, the data can be processed in the data service end according to the requirements of the user by calling the ORM framework integrated in the electronic equipment by the SCF framework. A processing statement based on a computer program language for processing data in the data service side (the way for processing data in the data service side includes addition, deletion, modification, and search, etc.) can be encapsulated outside the SCF framework (ORM framework). The processing statement based on the computer program language and used for processing the data in the data service end can be developed on each SCF framework in the electronic equipment without respectively developing the processing statement based on the computer program language and used for processing the data in the data service end, only one ORM framework needs to be developed in the electronic equipment, and the ORM framework can be called by each SCF framework in the electronic equipment.
Secondly, the SCF framework and the ORM framework can be developed respectively, the difficulty of developing the SCF framework is reduced, and the development of the SCF framework and the ORM framework can be supported to develop the SCF framework and the ORM framework in parallel, so that the development efficiency can be improved.
When the processing statement based on the computer program language for processing the data in the data server needs to be optimized subsequently, the processing statement based on the computer program language for processing the data in the data server needs to be optimized in the ORM framework, and the processing statement based on the computer program language for processing the data in the data server does not need to be optimized in each SCF framework of the electronic device, so that the difficulty of subsequent optimization can be reduced, and the efficiency of subsequent optimization can be improved.
In addition, because the processing statement based on the computer program language for processing the data in the data service end is not located in the SCF framework of the electronic device, this is equivalent to decoupling the service logic code in the SCF framework from the "processing statement based on the computer program language for processing the data in the data service end", which reduces the complexity of the service logic code in the SCF framework and reduces the difficulty in developing the service logic code in the SCF framework.
Secondly, a front interceptor and a rear interceptor can be set according to actual requirements in the ORM framework, wherein the front interceptor is used for verifying, supplementing and perfecting processing statements sent by the ORM framework to the data service end, and the rear interceptor is used for verifying, supplementing and perfecting processing results returned by the data service end received by the ORM framework. The processing statements and the processing results can be individually intercepted according to the interceptors in combination with the actual service, so that the service expansibility is increased.
And the annotation processor in the ORM framework supports subsequent re-expansion, so that the annotation processor can analyze parameter information with more attributes, and a user can process data in the data server according to the parameter information with more dimensions.
On the other hand, in the application, the ORM framework can be started immediately after the electronic device is started, so that the ORM framework can keep a state to be called in more time, so that the ORM framework in the electronic device can be called directly when the SCF framework calls the ORM framework, and the ORM framework does not need to be started for re-calling, thereby saving the process of "starting the ORM framework" when the ORM framework needs to be called, improving the efficiency of calling the ORM framework, and further improving the efficiency of processing data in the data service end.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart illustrating steps of an information processing method according to the present application is shown, where the method is applied to an electronic device, and the electronic device may include a backend server and the like.
The electronic device may include at least one SCF Framework (Service Communication Framework) and an ORM (Object Relational Mapping) Framework, where each SCF Framework communicates with the ORM Framework in parallel, and each SCF Framework may call the ORM Framework.
Each SCF framework is configured with at least one service type. For example, one SCF frame in the electronic device corresponds to a car rental service and is used for providing car rental service to the outside, and another SCF frame in the electronic device corresponds to a recruitment service and is used for providing recruitment service to the outside.
Each SCF framework in the electronic device has respective identification information, which may be different for different SCF frameworks in the electronic device.
In addition, the present application also relates to a service request end and a data service end, where the service request end and the data service end may be located in an electronic device or may not be located in the electronic device, for example, the service request end may be located in one hardware device, the hardware device may be in communication connection with the electronic device, and the data service end may be located in another hardware device, which may also be in communication connection with the electronic device. The SCF framework, the ORM framework, the service request end, the data service end and the like all belong to the main body of the back end.
For example, taking the case that the service request end and the data service end are not located in the electronic device, a structural block diagram between the SCF framework and the ORM framework in the electronic device may be as shown in fig. 2.
Each SCF framework can call an ORM framework, the ORM framework is provided with processing statements which can be identified by a data server and are based on a computer program language according to parameter information of data needing to be processed, data are stored in the data server, and the data server can add, delete, change, check and the like on the data in the data server according to the processing statements.
In a case where a service request end needs to request processing of target data in a data service end, the method may be implemented according to the following method, referring to fig. 1, and the method may specifically include the following steps:
in step S101, a processing request sent by the service request end and used for processing target data in the data service end is received in response to at least one SCF framework, where the target data matches with the service type configured by the SCF framework.
In this application, the service request end may serve as an interface opened by the back end to the front end, and when a user at the front end needs to process target data in the data service end, the user may use the front end device to send a processing request for processing the target data in the data service end to the service request end, and then the service request end may send a processing request for processing the target data in the data service end to the electronic device.
The electronic device may receive a processing request for processing target data in the data service end, and then may allocate the processing request to the SCF framework, so that the SCF framework may receive the processing request sent by the service request end, and then perform step S102.
The data processing request may carry parameter information of the target data, the parameter information of the target data is strongly associated with the target data, each data to be processed in the data service end corresponds to one service type, each service type corresponds to one of the SCF frames in the electronic device, for example, the target data corresponds to one of the SCF frames in the electronic device, so that the electronic device allocates the processing request to the SCF frame, and may allocate the processing request to the SCF frame corresponding to the target data.
In step S102, the SCF framework calls the ORM framework to send a processing request to the ORM framework, so that the ORM framework generates a processing statement based on a computer program language for processing the target data according to the processing request, and processes the target data in the data service according to the processing statement, obtains a processing result, and returns the processing result to the SCF framework corresponding to the processing request.
In the present application, the ORM framework is developed and loaded in the electronic device in advance by a technician to be called by the SCF framework in the electronic device. The ORM framework has the capability of generating computer program language-based processing statements for processing data in the data server. The data processing method in the data server includes adding, deleting, modifying, searching and the like.
The SCF framework is equivalent to a middleware between the service request end and the data service end, and a data format of a processing request of a user forwarded by the service request end may not be supported by the data service end, so the SCF framework needs to generate a processing statement in a format that can be supported by the data service end.
For example, the ORM framework may generate a computer program language-based processing statement for processing target data according to a processing request.
In one embodiment of the present application, the processing request at least carries parameter information of the target data. For example, in an example, assuming that a user needs to query data in a data server, and the data needing to be queried is payroll of zhang san, the parameter information carried in the processing request may include a name "zhang san" or the like, so as to query the data as an index.
Specifically, the ORM framework may generate a computer program language-based processing statement for processing target data according to the processing request, and may include:
11) and acquiring the attribute information of the parameter information.
In the above example, "zhang san" is parameter information, and "name" is attribute information of the parameter information "zhang san". In an embodiment of the present application, the attribute information may be carried in the processing request and may exist in the form of an annotation, so that the annotation in the processing request may be parsed by using an annotation processor, so as to obtain the attribute information of the parameter information, and a specific parsing manner may refer to a currently existing manner, which is not described in detail herein.
12) And obtaining a statement generation template corresponding to the parameter information according to the attribute information.
In the present application, the parameter information corresponding to each attribute information has a sentence generation template, and the sentence generation template may be configured in advance by a technician or the like.
For example, for any one attribute information, a term generation template corresponding to the attribute information and parameter information corresponding to the attribute information configured in advance by a technician may be previously made a correspondence table and stored in a correspondence relationship between the attribute information and the term generation template, and the same applies to every other attribute information.
In this way, in this step, the sentence generation template corresponding to the attribute information can be searched for in the correspondence relationship between the attribute information and the sentence generation template.
13) And generating a processing statement according to the statement generation template and the parameter information.
In one embodiment, the sentence generation template may be regarded as a "semi-finished product" of the processing sentence, which includes filling bits of the parameter information, the filling bits of the parameter information of the sentence generation template are not filled with the parameter information, and the filling bits of the parameter information of the sentence generation template are used for filling the parameter information. In this way, the parameter information of the sentence generation template can be filled in the filling bits of the parameter information, thereby obtaining the processed sentence.
In an embodiment of the application, when the ORM framework processes the target data in the data server according to the processing statement to obtain the processing result, the ORM framework may send the processing statement to the data server, so that the data server processes the target data in the data server according to the processing statement to obtain the processing result, and returns the processing result to the ORM framework. And then the ORM framework receives a processing result returned by the data server.
In an embodiment of the application, the electronic device may include multiple SCF frameworks, where different SCF frameworks are used to provide different types of services (for example, one SCF framework is used to provide a car rental service, and another SCF framework is used to provide a recruitment service, etc.), and the processing request may carry identification information of the SCF framework.
In this way, when the ORM framework returns the processing result to the SCF framework, the ORM framework may return the processing result to the SCF framework corresponding to the processing request, thereby avoiding a situation where the processing result is returned to an SCF framework that is not matched.
Specifically, the ORM framework may determine, according to the identification information of the SCF framework, an SCF framework corresponding to the processing request from among a plurality of SCF frameworks included in the electronic device. And then sending the processing result to the SCF frame corresponding to the processing request.
In an embodiment of the present application, a processing result is generated by a data service end, a data format of a data processing result generated by the data service end may not be supported by a service request end, and if the data format of the data processing result generated by the data service end is not supported by the service request end, if a processing result returned by the data service end is directly returned to an SCF frame corresponding to the processing request, the SCF frame corresponding to the processing request returns the processing result to the service request end, and the service request end cannot identify the processing result, so that a subsequent flow cannot be performed.
Therefore, in order to avoid this situation, in another embodiment of the present application, when the ORM framework returns the processing result to the SCF framework corresponding to the processing request, the ORM framework may convert the data format of the processing result into the data format supported by the service request end, obtain the converted processing result, and then send the converted processing result to the SCF framework corresponding to the processing request.
And then the SCF framework corresponding to the processing request receives the processing result and can return the processing result to the service request end, so that the service request end can return the processing result to the front-end equipment used by the user, and the user can perceive the processing result.
In another embodiment of the present application, the electronic device may include a plurality of SCF frameworks, each SCF framework may call the ORM framework, and in a possible case, in a case where one SCF framework needs to call the ORM framework to process data in the data service, the ORM framework may be being called by another SCF framework to process data in the data service.
In order to avoid confusion caused by the fact that all SCF frameworks contend for calling the ORM framework in the same time period, in the present application, an application calling mechanism may be supported in the electronic device.
For example, in a case that an SCF framework needs to call an ORM framework, the electronic device may apply for an authority to call the ORM framework, and after receiving the application, the electronic device may determine whether the ORM framework is being called (in a busy state) at that time, and if so, may cache the application submitted by the SCF framework in a cache queue (without immediately responding to the application submitted by the SCF framework), where the cache application is cached in the cache queue according to a sequence in which the applications are submitted to the electronic device.
After the ORM framework is called (that is, the ORM framework is in an idle state), the electronic device may extract the first-order application from the cache queue and respond to the first-order application, for example, assign an authority to call the ORM framework to the SCF framework corresponding to the application, and notify that the SCF framework corresponding to the application may call the ORM framework, and then the SCF framework corresponding to the application may call the ORM framework. In addition, the electronic device may also delete the application for ordering the first bit from the buffer queue.
Or, in another way, to avoid confusion caused by the fact that each SCF framework contends to call the ORM framework at the same time period, in the present application, the electronic device may back up the ORM framework to obtain images of multiple ORM frameworks, so that when multiple SCF frameworks need to call the ORM framework at the same time period, the multiple SCF frameworks may call images of different ORM frameworks respectively.
In the application, a processing request which is sent by a service request end and used for processing target data in a data service end is received by responding to at least one SCF framework, wherein the target data is matched with the service type configured by the SCF framework. The SCF framework calls the ORM framework to send a processing request to the ORM framework, so that the ORM framework generates a processing statement based on a computer program language and used for processing target data according to the processing request, processes the target data in the data service end according to the processing statement to obtain a processing result, and returns the processing result to the SCF framework corresponding to the processing request.
By the method and the device, the data can be processed in the data service end according to the requirements of the user by calling the ORM framework integrated in the electronic equipment by the SCF framework. A processing statement based on a computer program language for processing data in the data service side (the way for processing data in the data service side includes addition, deletion, modification, and search, etc.) can be encapsulated outside the SCF framework (ORM framework). The processing statement based on the computer program language and used for processing the data in the data service end can be developed on each SCF framework in the electronic equipment without respectively developing the processing statement based on the computer program language and used for processing the data in the data service end, only one ORM framework needs to be developed in the electronic equipment, and the ORM framework can be called by each SCF framework in the electronic equipment.
Secondly, the SCF framework and the ORM framework can be developed respectively, the difficulty of developing the SCF framework is reduced, and the development of the SCF framework and the ORM framework can be supported to develop the SCF framework and the ORM framework in parallel, so that the development efficiency can be improved.
When the processing statement based on the computer program language for processing the data in the data server needs to be optimized subsequently, the processing statement based on the computer program language for processing the data in the data server needs to be optimized in the ORM framework, and the processing statement based on the computer program language for processing the data in the data server does not need to be optimized in each SCF framework of the electronic device, so that the difficulty of subsequent optimization can be reduced, and the efficiency of subsequent optimization can be improved.
In addition, because the processing statement based on the computer program language for processing the data in the data service end is not located in the SCF framework of the electronic device, this is equivalent to decoupling the service logic code in the SCF framework from the "processing statement based on the computer program language for processing the data in the data service end", which reduces the complexity of the service logic code in the SCF framework and reduces the difficulty in developing the service logic code in the SCF framework.
Secondly, a front interceptor and a rear interceptor can be set according to actual requirements in the ORM framework, wherein the front interceptor is used for verifying, supplementing and perfecting processing statements sent by the ORM framework to the data service end, and the rear interceptor is used for verifying, supplementing and perfecting processing results returned by the data service end received by the ORM framework. The processing statements and the processing results can be individually intercepted according to the interceptors in combination with the actual service, so that the service expansibility is increased.
And the annotation processor in the ORM framework supports subsequent re-expansion, so that the annotation processor can analyze parameter information with more attributes, and a user can process data in the data server according to the parameter information with more dimensions.
On the other hand, in the application, the ORM framework can be started immediately after the electronic device is started, so that the ORM framework can keep a state to be called in more time, so that the ORM framework in the electronic device can be called directly when the SCF framework calls the ORM framework, and the ORM framework does not need to be started for re-calling, thereby saving the process of "starting the ORM framework" when the ORM framework needs to be called, improving the efficiency of calling the ORM framework, and further improving the efficiency of processing data in the data service end.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.
Referring to fig. 3, a block diagram of an information processing apparatus according to the present application is shown, where the electronic device includes at least one service communication framework SCF framework and an object relationship mapping ORM framework, where each SCF framework communicates with the ORM framework in parallel, and each SCF framework is configured with at least one service type, and the apparatus includes:
a receiving module 11, configured to receive a processing request, which is sent by a service request end and used to process target data in a data service end, where the target data is matched with a service type configured by the SCF framework;
a calling module 12, configured to call the ORM framework to send the processing request to the ORM framework, a generating module 13, configured to generate a processing statement based on a computer programming language and used for processing the target data according to the processing request, a processing module 14, configured to process the target data in the data service end according to the processing statement to obtain a processing result, and a returning module 15, configured to return the processing result to the SCF framework corresponding to the processing request.
In an optional implementation manner, the processing request at least carries parameter information of the target data;
the generation module comprises:
a first obtaining unit configured to obtain attribute information of the parameter information;
the second obtaining unit is used for obtaining a statement generation template corresponding to the parameter information according to the attribute information;
and the generating unit is used for generating the processing statement according to the statement generating template and the parameter information.
In an optional implementation manner, the second obtaining unit is specifically configured to: and searching the statement generating template corresponding to the attribute information in the corresponding relation between the attribute information and the statement generating template.
In an optional implementation manner, the processing module includes:
a first sending unit, configured to send the processing statement to the data server, so that the data server processes target data in the data server according to the processing statement to obtain a processing result, and returns the processing result to the ORM frame;
and the receiving unit is used for receiving the processing result returned by the data server.
In an optional implementation manner, the electronic device includes multiple SCF frames, and the processing request carries identification information of the SCF frame corresponding to the processing request;
the return module includes:
a determining unit, configured to determine, according to the identification information, the SCF frame corresponding to the processing request in a plurality of SCF frames included in the electronic device;
and a second sending unit, configured to send the processing result to the determined SCF frame.
In an alternative implementation, the return module includes:
a conversion unit, configured to convert the data format of the processing result into a data format supported by the service request end, so as to obtain a converted processing result;
a third sending unit, configured to send the converted processing result to the SCF framework corresponding to the processing request.
And responding to the at least one SCF framework to receive a processing request which is sent by the service request end and is used for processing target data in the data service end, wherein the target data is matched with the service type configured by the SCF framework. The SCF framework calls the ORM framework to send a processing request to the ORM framework, so that the ORM framework generates a processing statement based on a computer program language and used for processing target data according to the processing request, processes the target data in the data service end according to the processing statement to obtain a processing result, and returns the processing result to the SCF framework corresponding to the processing request.
By the method and the device, the data can be processed in the data service end according to the requirements of the user by calling the ORM framework integrated in the electronic equipment by the SCF framework. A processing statement based on a computer program language for processing data in the data service side (the way for processing data in the data service side includes addition, deletion, modification, and search, etc.) can be encapsulated outside the SCF framework (ORM framework). The processing statement based on the computer program language and used for processing the data in the data service end can be developed on each SCF framework in the electronic equipment without respectively developing the processing statement based on the computer program language and used for processing the data in the data service end, only one ORM framework needs to be developed in the electronic equipment, and the ORM framework can be called by each SCF framework in the electronic equipment.
Secondly, the SCF framework and the ORM framework can be developed respectively, the difficulty of developing the SCF framework is reduced, and the development of the SCF framework and the ORM framework can be supported to develop the SCF framework and the ORM framework in parallel, so that the development efficiency can be improved.
When the processing statement based on the computer program language for processing the data in the data server needs to be optimized subsequently, the processing statement based on the computer program language for processing the data in the data server needs to be optimized in the ORM framework, and the processing statement based on the computer program language for processing the data in the data server does not need to be optimized in each SCF framework of the electronic device, so that the difficulty of subsequent optimization can be reduced, and the efficiency of subsequent optimization can be improved.
In addition, because the processing statement based on the computer program language for processing the data in the data service end is not located in the SCF framework of the electronic device, this is equivalent to decoupling the service logic code in the SCF framework from the "processing statement based on the computer program language for processing the data in the data service end", which reduces the complexity of the service logic code in the SCF framework and reduces the difficulty in developing the service logic code in the SCF framework.
Secondly, a front interceptor and a rear interceptor can be set according to actual requirements in the ORM framework, wherein the front interceptor is used for verifying, supplementing and perfecting processing statements sent by the ORM framework to the data service end, and the rear interceptor is used for verifying, supplementing and perfecting processing results returned by the data service end received by the ORM framework. The processing statements and the processing results can be individually intercepted according to the interceptors in combination with the actual service, so that the service expansibility is increased.
And the annotation processor in the ORM framework supports subsequent re-expansion, so that the annotation processor can analyze parameter information with more attributes, and a user can process data in the data server according to the parameter information with more dimensions.
On the other hand, in the application, the ORM framework can be started immediately after the electronic device is started, so that the ORM framework can keep a state to be called in more time, so that the ORM framework in the electronic device can be called directly when the SCF framework calls the ORM framework, and the ORM framework does not need to be started for re-calling, thereby saving the process of "starting the ORM framework" when the ORM framework needs to be called, improving the efficiency of calling the ORM framework, and further improving the efficiency of processing data in the data service end.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 4 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 5 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 5, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The information processing method and apparatus provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.