CN112068882A - Data processing method and device based on mixed persistence framework - Google Patents
Data processing method and device based on mixed persistence framework Download PDFInfo
- Publication number
- CN112068882A CN112068882A CN202010928749.8A CN202010928749A CN112068882A CN 112068882 A CN112068882 A CN 112068882A CN 202010928749 A CN202010928749 A CN 202010928749A CN 112068882 A CN112068882 A CN 112068882A
- Authority
- CN
- China
- Prior art keywords
- service
- service data
- preset
- access request
- framework
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000002688 persistence Effects 0.000 title claims abstract description 49
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000013507 mapping Methods 0.000 claims abstract description 18
- 238000012545 processing Methods 0.000 claims abstract description 17
- 238000000034 method Methods 0.000 claims abstract description 14
- 238000012423 maintenance Methods 0.000 abstract description 7
- 238000011161 development Methods 0.000 description 5
- 230000002085 persistent effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 235000006719 Cassia obtusifolia Nutrition 0.000 description 1
- 235000014552 Cassia tora Nutrition 0.000 description 1
- 244000201986 Cassia tora Species 0.000 description 1
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 1
- 244000046052 Phaseolus vulgaris Species 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/72—Code refactoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/254—Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a data processing method and a data processing device based on a mixed persistence frame, wherein the mixed persistence frame comprises a DBUtil frame and a Mybatis frame; the Mybatis framework is used for carrying out persistence operation on the requirement of the newly added service; the method comprises the following steps: receiving a service access request; judging whether to call the service of the Mybatis framework or not according to the service access request; if yes, calling a preset first database through a mapping file of the Mybatis frame, and acquiring first service data requested by the service access request from the preset first database; the first database is used for storing newly added service data; outputting the first service data; if not, calling an interface of the DBUtil frame, and acquiring second service data requested by the service access request from a preset second database through the interface; and outputting the second service data. The technical problem that the code maintenance difficulty in the later period is increased by continuously using the DBUtil tool library is solved.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to a data processing method and device based on a hybrid persistence framework.
Background
In the Java architecture mode, the MVC architecture mode can be abstracted into the structure shown in fig. 1, wherein, the View layer (i.e. UI layer) can adopt technologies such as JSP, Structs, SpringMVC, etc.; the Controller represents a Controller layer, and applicable technologies such as Servlet/Filter, Spring, and the like; the Service layer represents a core server and is used for providing services for the upper layer of the architecture, the DAO layer represents a data access layer, the adopted technologies such as JDBC and ORM frameworks (such as Spring JDBC, JPA, Hibernate, Mybatis and the like) are adopted, and the Model layer represents a JavaBean object; the Utilities layer represents a utility layer.
Based on the above architecture abstraction model, the architecture mode goes through multiple development stages, and the current mainstream development mode is SSM (Spring + Spring mvc + Mybatis) architecture mode. In this mode, Spring plays the role of Controller, SpringMVC plays the role of View, and Mybatis plays the role of DB. Among them, Spring framework is currently the mainstream framework of java web development. The Mybatis framework can be abstracted into three layers according to Mybatis source code, as shown in fig. 2, including: a basic support layer, a core processing layer and an interface layer. The basic support layer comprises a data source, an object management layer, a log, a type conversion layer, a cache layer, a Bind layer, a resolver and the like; the core processing layer comprises configuration analysis, configuration mapping, SQL analysis, SQL execution, result set mapping, plug-in and the like; the interface layer mainly provides a Java API (sqlsessision).
For projects which are already built by adopting SpringMVC + Spring + DBUtil in the early stage, if project reconstruction is carried out, the workload is large, but with the increase of demands, the DBUtil tool library is continuously used, so that the difficulty of code maintenance in the later stage is increased.
Disclosure of Invention
The invention provides a data processing method and device based on a hybrid persistence framework, which are used for solving the technical problem that for projects which are already built by adopting SpringMVC + Spring + DBUtil at the early stage, if project reconstruction is carried out, the workload is large, but as the demand increases, the DBUtil tool library is continuously used, so that the later code maintenance difficulty is increased.
The invention provides a data processing method based on a mixed persistence frame, wherein the mixed persistence frame comprises a DBUtil frame and a Mybatis frame; the Mybatis framework is used for performing persistence operation on the requirement of a newly added service; the method comprises the following steps:
receiving a service access request;
judging whether to call the service of the Mybatis framework or not according to the service access request;
if yes, calling a preset first database through a mapping file of the Mybatis frame, and acquiring first service data requested by the service access request from the preset first database; the first database is used for storing newly added service data;
outputting the first service data;
if not, calling an interface of the DBUtil frame, and acquiring second service data requested by the service access request from a preset second database through the interface;
and outputting the second service data.
Optionally, the step of determining whether to invoke the service of the Mybatis framework according to the service access request includes:
obtaining an access path from the service access request;
and sending the service access request to a preset controller layer according to the access path, calling a preset service through the preset controller layer, and judging whether to call the service of the Mybatis frame or not based on the preset service.
Optionally, the step of outputting the first service data includes:
and sending the first service data to the controller layer, and outputting the first service data to a preset interface through the controller layer.
Optionally, the step of outputting the second service data includes:
and sending the second service data to the controller layer, and presetting an interface for the output value of the second service data through the controller layer.
The invention also provides a data processing device based on the hybrid persistence framework, wherein the hybrid persistence framework comprises a DBUtil framework and a Mybatis framework; the Mybatis framework is used for performing persistence operation on the requirement of a newly added service; the device comprises:
the service access request receiving module is used for receiving a service access request;
the judging module is used for judging whether to call the service of the Mybatis framework according to the service access request;
a first service data obtaining module, configured to, if yes, call a preset first database through a mapping file of the Mybatis frame, and obtain first service data requested by the service access request from the preset first database; the first database is used for storing newly added service data;
the first service data output module is used for outputting the first service data;
a second service data obtaining module, configured to, if the DBUtil frame is not requested, invoke an interface of the DBUtil frame, and obtain, through the interface, second service data requested by the service access request from a preset second database;
and the second service data output module is used for outputting the second service data.
Optionally, the determining module includes:
an access path obtaining sub-module, configured to obtain an access path from the service access request;
and the judgment submodule is used for sending the service access request to a preset controller layer according to the access path, calling a preset service through the preset controller layer, and judging whether to call the service of the Mybatis frame or not based on the preset service.
Optionally, the first service data output module includes:
and the first service data output submodule is used for sending the first service data to the controller layer and outputting the first service data to a preset interface through the controller layer.
Optionally, the second service data output module includes:
and the second service data output submodule is used for sending the second service data to the controller layer and presetting an interface for the output value of the second service data through the controller layer.
The invention also provides a data processing device based on the hybrid persistence framework, which comprises a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the hybrid persistence framework-based data processing method according to any one of the above instructions in the program code.
The present invention also provides a computer-readable storage medium for storing program code for executing the hybrid persistence framework-based data processing method as described in any one of the above.
According to the technical scheme, the invention has the following advantages: according to the invention, a mixed persistence frame integrating an original DBUtil frame and a Mybatis frame is built on the basis of the original DBUtil frame, data processing is carried out on a newly added service through the Mybatis frame, and when the newly added service data needs to be acquired, the newly added service data can be acquired from a database through the Mybatis frame, so that the DBUtil tool library is suspended. The technical problem that the code maintenance difficulty in the later period is increased by continuously using the DBUtil tool library is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of an MVC architecture mode according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a Mybatis framework according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating development of a hybrid persistence framework according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps of a data processing method based on a hybrid persistence framework according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps of a data processing method based on a hybrid persistence framework according to another embodiment of the present invention;
FIG. 6 is a flowchart illustrating a data processing method based on a hybrid persistence framework according to an embodiment of the present invention;
fig. 7 is a block diagram of a data processing apparatus based on a hybrid persistence framework according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data processing method and device based on a hybrid persistence framework, which are used for solving the technical problem that for projects which are already built by adopting SpringMVC, Spring and DBUtil at the early stage, if project reconstruction is carried out, the workload is very large, but as the demand increases, the DBUtil tool library is continuously used, so that the later code maintenance difficulty is increased.
The method related to the embodiment of the invention is applied to a hybrid persistence framework which comprises a DBUtil framework and a Mybatis framework. The Mybatil framework is integrated on the original DBUtil framework and is used for carrying out persistence operation on the requirement of a newly added service. Through adopting a Mybatis framework to realize the persistence operation required by the newly added service, SQL (Structured Query Language) can be separately and centrally managed. The method mainly relates to the steps of introducing a dependency package, modifying a configuration file, creating an entity, mapping a Mapper, compiling a Service layer, compiling a Controller layer and testing and verifying on the basis of an original frame, so that introduction of a Mybatis frame and code compiling of a new demand Service control layer, a Service layer and a data layer are realized.
In specific implementation, as shown in fig. 3, in the embodiment of the present invention, a Mybatis frame is first built on the basis of an original project, and a configuration of web.xml is performed in the original project to ensure that the Mybatis frame is available; then testing whether the verification program can be normally executed; after the program can be normally executed, when a new service is required, a new database table and an entity corresponding to the database table can be added on the basis of not changing the original system architecture. And then compiling a mapping file Mapper and a Service logic layer Service of the Service requirement, and compiling a control layer Controller to realize interception of the page request. After the encoding is completed, the written code may be tested and verified.
It should be noted that, if the original service requirement needs to be modified, the code modification can be performed on the original frame by analyzing the data source and logic of the original service. After the modification is completed, the modified code may be subjected to test verification.
The Spring framework is an open source code J2EE application program framework, is initiated by Rod Johnson, and is a lightweight container managed for the lifecycle of beans. Spring solves many common problems encountered in J2EE development by developers, and provides powerful functions such as IOC, AOP and Web MVC. Spring can be applied to the construction of application programs alone, can be used in combination with numerous Web frameworks such as Struts, Webwork, Tapestry and the like, and can be combined with desktop applications such as Swing and the like, such as AP. Therefore, Spring can be applied not only to the J2EE application program, but also to the desktop application program and the applet program, and the Spring framework mainly comprises seven parts, namely Spring core, Spring AOP, Spring ORM, Spring DAO, Spring Context, Spring Web, and Spring Web MVC.
Persisting, that is, saving data (e.g., objects in memory) to a storage device that can be permanently saved, such as a disk. The main application of persistence is to store objects in memory in a database, or in a disk file or an XML data file. From another perspective, persistence is a mechanism to transition program data between persistent and transient states.
DBUtil is an open source JDBC tool class library provided by an Apache organization, is a simple package of JDBC, and can greatly simplify the workload of JDBC coding by using DBUtils without influencing the performance of a program.
Mybatil is a persistent layer framework that supports customized SQL, stored procedures, and advanced mapping. Mybatils avoids almost all JDBC code and manual setting of parameters and acquisition of result sets. Mybatil can use simple XML or annotations to configure and map the native information, plus your interface and Java's POJOS (Plain Ordinary Java Object), into records in the database.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 4, fig. 4 is a flowchart illustrating a data processing method based on a hybrid persistence framework according to an embodiment of the present invention.
The invention provides a data processing method based on a hybrid persistence framework, which comprises the following steps:
In the embodiment of the invention, when a service access request is received, the service access request is firstly intercepted by the system, the system judges whether to call the service of the Mybatis framework according to the service access request, and if the service of the Mybatis framework needs to be called, the database operation is carried out by mapping Mapper to the data layer, so as to obtain the first service data, and the first service data is returned. If the Mybatil frame does not need to be called and the original business logic is adopted, the original DBUtil interface is directly called to directly carry out database operation, second business data are obtained, and the second business data are output.
According to the invention, a mixed persistence frame integrating an original DBUtil frame and a Mybatis frame is built on the basis of the original DBUtil frame, data processing is carried out on a newly added service through the Mybatis frame, and when the newly added service data needs to be acquired, the newly added service data can be acquired from a database through the Mybatis frame, so that the DBUtil tool library is suspended. The technical problem that the code maintenance difficulty in the later period is increased by continuously using the DBUtil tool library is solved.
Referring to fig. 5, fig. 5 is a flowchart illustrating steps of a data processing method based on a hybrid persistence framework according to another embodiment of the present invention, which may specifically include:
in the embodiment of the invention, when a service access request from a user is received, an access path of the service access request needs to be acquired firstly and is distributed to a specified controller layer through the access path, and the controller layer can judge whether the service of the Mybatis frame needs to be called or not according to the service calling underlying service.
in the embodiment of the invention, if the service of the Mybatis framework needs to be called, the mapping file can be mapped to the data layer, the database is called, and the first service data is obtained from the database. The first service data may be data obtained by creating, updating, reading, and deleting data in a database.
after the first service data is obtained, the first service data may be sent to the controller layer, and the first service data is output to the preset interface through the controller layer.
in the embodiment of the invention, if the service of the Mybatis framework does not need to be called, namely the original service logic, the original interface can be directly called to directly perform database operation, so as to obtain the second service data, wherein the database operation comprises data creation, data updating, data reading and data deleting.
And 507, sending the second service data to the controller layer, and presetting an interface for the output value of the second service data through the controller layer.
After the second service data is obtained, the second service data may be sent to the controller layer, and the second service data is output to the preset interface through the controller layer.
For ease of understanding, the following description is given by way of specific examples.
Referring to fig. 6, fig. 6 is a flowchart illustrating a data processing method based on a hybrid persistence framework according to an embodiment of the present invention.
As shown in fig. 6, the system architecture related to the present invention is composed of a front-end page, a Spring MVC frame, a Service layer, a persistent layer, and a database, when the front-end page receives a Service access request, the request is transmitted to a Controller through a model, the Controller distributes the Service access request to a designated Controller layer according to an access path, the Controller layer calls the Service according to the Service to perform Service logic processing, and determines whether the Service of the Mybatis frame needs to be called, if so, Mapper mapping or entity class and SQL mapping are performed to the data layer through a mapping file to perform database operation, and a result is returned. And when the Mybatis framework does not need to be called, calling a persistent layer interface of the DBUtil to directly perform database operation.
According to the invention, a mixed persistence frame integrating an original DBUtil frame and a Mybatis frame is built on the basis of the original DBUtil frame, data processing is carried out on a newly added service through the Mybatis frame, and when the newly added service data needs to be acquired, the newly added service data can be acquired from a database through the Mybatis frame, so that the DBUtil tool library is suspended. The technical problem that the code maintenance difficulty in the later period is increased by continuously using the DBUtil tool library is solved.
Referring to fig. 7, fig. 7 is a block diagram of a data processing apparatus based on a hybrid persistence framework according to an embodiment of the present invention.
The invention provides a data processing device based on a hybrid persistence framework, which comprises a DBUtil framework and a Mybatis framework; the Mybatis framework is used for performing persistence operation on the requirement of a newly added service; the apparatus may include:
a service access request receiving module 701, configured to receive a service access request;
a judging module 702, configured to judge whether to invoke a service of the Mybatis framework according to the service access request;
a first service data obtaining module 703, configured to, if yes, call a preset first database through the mapping file of the Mybatis frame, and obtain, from the preset first database, first service data requested by the service access request; the first database is used for storing newly added service data;
a first service data output module 704, configured to output the first service data;
a second service data obtaining module 705, configured to, if the DBUtil frame is not a service access request, invoke an interface of the DBUtil frame, and obtain, through the interface, second service data requested by the service access request from a preset second database;
a second service data output module 706, configured to output the second service data.
In this embodiment of the present invention, the determining module 702 may include:
an access path obtaining sub-module, configured to obtain an access path from the service access request;
and the judgment submodule is used for sending the service access request to a preset controller layer according to the access path, calling a preset service through the preset controller layer, and judging whether to call the service of the Mybatis frame or not based on the preset service.
In this embodiment of the present invention, the first service data output module 704 may include:
and the first service data output submodule is used for sending the first service data to the controller layer and outputting the first service data to a preset interface through the controller layer.
In this embodiment of the present invention, the second service data output module 706 may include:
and the second service data output submodule is used for sending the second service data to the controller layer and presetting an interface for the output value of the second service data through the controller layer.
The invention also provides a data processing device based on the hybrid persistence framework, which comprises a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is used for executing the data processing method based on the hybrid persistence framework according to the instructions in the program code.
The present invention also provides a computer-readable storage medium for storing a program code for executing the hybrid persistence framework-based data processing method according to an embodiment of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of implementing the solution of the present embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A data processing method based on a hybrid persistence framework is characterized in that the hybrid persistence framework comprises a DBUtil framework and a Mybatis framework; the Mybatis framework is used for performing persistence operation on the requirement of a newly added service; the method comprises the following steps:
receiving a service access request;
judging whether to call the service of the Mybatis framework or not according to the service access request;
if yes, calling a preset first database through a mapping file of the Mybatis frame, and acquiring first service data requested by the service access request from the preset first database; the first database is used for storing newly added service data;
outputting the first service data;
if not, calling an interface of the DBUtil frame, and acquiring second service data requested by the service access request from a preset second database through the interface;
and outputting the second service data.
2. The method according to claim 1, wherein the step of determining whether to invoke the service of the Mybatis framework according to the service access request comprises:
obtaining an access path from the service access request;
and sending the service access request to a preset controller layer according to the access path, calling a preset service through the preset controller layer, and judging whether to call the service of the Mybatis frame or not based on the preset service.
3. The method of claim 1, wherein the step of outputting the first service data comprises:
and sending the first service data to the controller layer, and outputting the first service data to a preset interface through the controller layer.
4. The method of claim 1, wherein the step of outputting the second service data comprises:
and sending the second service data to the controller layer, and presetting an interface for the output value of the second service data through the controller layer.
5. A data processing apparatus based on a hybrid persistence framework, wherein the hybrid persistence framework comprises a DBUtil framework and a Mybatis framework; the Mybatis framework is used for performing persistence operation on the requirement of a newly added service; the device comprises:
the service access request receiving module is used for receiving a service access request;
the judging module is used for judging whether to call the service of the Mybatis framework according to the service access request;
a first service data obtaining module, configured to, if yes, call a preset first database through a mapping file of the Mybatis frame, and obtain first service data requested by the service access request from the preset first database; the first database is used for storing newly added service data;
the first service data output module is used for outputting the first service data;
a second service data obtaining module, configured to, if the DBUtil frame is not requested, invoke an interface of the DBUtil frame, and obtain, through the interface, second service data requested by the service access request from a preset second database;
and the second service data output module is used for outputting the second service data.
6. The apparatus of claim 5, wherein the determining module comprises:
an access path obtaining sub-module, configured to obtain an access path from the service access request;
and the judgment submodule is used for sending the service access request to a preset controller layer according to the access path, calling a preset service through the preset controller layer, and judging whether to call the service of the Mybatis frame or not based on the preset service.
7. The apparatus of claim 5, wherein the first service data output module comprises:
and the first service data output submodule is used for sending the first service data to the controller layer and outputting the first service data to a preset interface through the controller layer.
8. The apparatus of claim 5, wherein the second service data output module comprises:
and the second service data output submodule is used for sending the second service data to the controller layer and presetting an interface for the output value of the second service data through the controller layer.
9. A data processing apparatus based on a hybrid persistence framework, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the hybrid persistence framework-based data processing method of any one of claims 1-4 according to instructions in the program code.
10. A computer-readable storage medium for storing program code for executing the hybrid persistence framework-based data processing method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010928749.8A CN112068882B (en) | 2020-09-07 | 2020-09-07 | Data processing method and device based on hybrid persistence framework |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010928749.8A CN112068882B (en) | 2020-09-07 | 2020-09-07 | Data processing method and device based on hybrid persistence framework |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112068882A true CN112068882A (en) | 2020-12-11 |
CN112068882B CN112068882B (en) | 2024-06-21 |
Family
ID=73663843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010928749.8A Active CN112068882B (en) | 2020-09-07 | 2020-09-07 | Data processing method and device based on hybrid persistence framework |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112068882B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101907993A (en) * | 2010-07-27 | 2010-12-08 | 华南理工大学 | Dynamic model based on SpringDM and application thereof to persistence layer of RFID (Radio Frequency Identification) middleware |
US20110154369A1 (en) * | 2009-12-17 | 2011-06-23 | Sap Ag | System and method for the generic integration of a user interface implementation framework and a persistency implementation framework |
CN102541996A (en) * | 2011-11-22 | 2012-07-04 | 大唐软件技术股份有限公司 | JDBC (java database connectivity) based data access layer building method and device utilizing same |
CN106484792A (en) * | 2016-09-22 | 2017-03-08 | 深圳市分期乐网络科技有限公司 | A kind of data power supply management method for Persistence Layer Framework and device |
CN109710248A (en) * | 2018-12-29 | 2019-05-03 | 江苏徐工信息技术股份有限公司 | A kind of building method based on Web exploitation sub-module frame |
CN111124428A (en) * | 2019-12-18 | 2020-05-08 | 广东电网有限责任公司 | Application automatic publishing method based on middleware creating and related device |
-
2020
- 2020-09-07 CN CN202010928749.8A patent/CN112068882B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110154369A1 (en) * | 2009-12-17 | 2011-06-23 | Sap Ag | System and method for the generic integration of a user interface implementation framework and a persistency implementation framework |
CN101907993A (en) * | 2010-07-27 | 2010-12-08 | 华南理工大学 | Dynamic model based on SpringDM and application thereof to persistence layer of RFID (Radio Frequency Identification) middleware |
CN102541996A (en) * | 2011-11-22 | 2012-07-04 | 大唐软件技术股份有限公司 | JDBC (java database connectivity) based data access layer building method and device utilizing same |
CN106484792A (en) * | 2016-09-22 | 2017-03-08 | 深圳市分期乐网络科技有限公司 | A kind of data power supply management method for Persistence Layer Framework and device |
CN109710248A (en) * | 2018-12-29 | 2019-05-03 | 江苏徐工信息技术股份有限公司 | A kind of building method based on Web exploitation sub-module frame |
CN111124428A (en) * | 2019-12-18 | 2020-05-08 | 广东电网有限责任公司 | Application automatic publishing method based on middleware creating and related device |
Non-Patent Citations (5)
Title |
---|
MRPOPO: "jpa+mybatis 组合 数据持久化 实践", pages 1 - 5, Retrieved from the Internet <URL:《https://www.jianshu.com/p/f0bbaa754bf8》> * |
杨海涛;张传斌;阮镇江;徐飞;: "大规模云同步归集数据系统的异步并行优化", 《计算机工程与应用》, no. 02, pages 88 - 97 * |
熊益益: "基于微服务架构的电商平台的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 8, pages 138 - 188 * |
荣艳冬: "关于Mybatis持久层框架的应用研究", 《信息安全与技术》, no. 12, pages 86 - 88 * |
赵芮: "基于事件驱动的流量积分平台交易系统", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 11, pages 138 - 86 * |
Also Published As
Publication number | Publication date |
---|---|
CN112068882B (en) | 2024-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9459862B2 (en) | Automated porting of application to mobile infrastructures | |
US7770154B2 (en) | Lightweight highly available infrastructure to trace program execution | |
US8875106B2 (en) | Automated testing process | |
US20120174068A1 (en) | Testing Software Code | |
CN107239271A (en) | Develop document structure tree method and device | |
CN110362490B (en) | Automatic testing method and system for integrating iOS and Android mobile applications | |
CN103246606B (en) | The performance test methods of ESB platform and system | |
CN108388622A (en) | Api interface dynamic creation method, device, computer equipment and storage medium | |
CN111538659B (en) | Interface testing method, system, electronic equipment and storage medium of business scene | |
US11663288B2 (en) | Just-in-time front end template generation using logical document object models | |
WO2020259516A1 (en) | Unit testing system and unit testing method | |
CN103309650A (en) | Generating method and device of persistence layer codes | |
US11288170B1 (en) | Log analysis debugging without running on real production environment | |
CN112600936B (en) | Quantification and evaluation method for cloud computing system service | |
CN114610598A (en) | Test method, test device, electronic equipment and computer readable storage medium | |
CN113238739A (en) | Plug-in development and data acquisition method, device, electronic equipment and medium | |
CN112860584A (en) | Test method and device based on workflow model | |
CN112068882B (en) | Data processing method and device based on hybrid persistence framework | |
CN110599112A (en) | Method and device for developing and maintaining network page | |
CN115904382A (en) | Code development method, system, client, server, device and storage medium | |
CN109960526A (en) | A kind of application program packaging method and device | |
EP1634166B1 (en) | System and method for incremental object generation | |
CN112463118A (en) | Control method, device, terminal and system of software development framework | |
CN111309297A (en) | Script development system and method | |
CN113986322B (en) | Method, device and storage medium for dynamically modifying page codes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |