WO2019136914A1 - Method for automatically recording field change, application server and computer-readable storage medium - Google Patents

Method for automatically recording field change, application server and computer-readable storage medium Download PDF

Info

Publication number
WO2019136914A1
WO2019136914A1 PCT/CN2018/089723 CN2018089723W WO2019136914A1 WO 2019136914 A1 WO2019136914 A1 WO 2019136914A1 CN 2018089723 W CN2018089723 W CN 2018089723W WO 2019136914 A1 WO2019136914 A1 WO 2019136914A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
field
entity class
record
change
Prior art date
Application number
PCT/CN2018/089723
Other languages
French (fr)
Chinese (zh)
Inventor
高宁
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019136914A1 publication Critical patent/WO2019136914A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Definitions

  • the present application relates to the field of data processing, and in particular, to an automatic record field change method, an application server, and a computer readable storage medium.
  • the present application proposes an automatic record field change method, an application server, and a computer readable storage medium to solve the problem of how to avoid adding a lot of code or using a trigger record in a database when recording data in an application, and the data It is difficult to record user-readable problems.
  • a first aspect of the present application provides a method for automatically recording a field change, the method comprising the steps of:
  • the change record of the entity class field labeled with a custom annotation is converted into a user readable form.
  • a second aspect of the present application further provides an application server, including a memory, a processor, and an automatic record field change system operable on the processor, where the automatic record is stored
  • the field change system is implemented by the processor to implement the following steps:
  • the change record of the entity class field labeled with a custom annotation is converted into a user readable form.
  • a third aspect of the present application further provides a computer readable storage medium storing an automatic record field change system, wherein the automatic record field change system can be processed by at least one The apparatus is operative to cause the at least one processor to perform the steps of the automatic record field change method as described above.
  • the automatic record field changing method, the application server and the computer readable storage medium proposed by the present application first analyze the data structure, and mark a custom annotation in the entity class field; then, listen to the field data operation; further Ground, when the entity class field marked with a custom annotation changes, obtain the data change record of the entity class field of the annotation annotation with the custom annotation; finally, the change of the entity class field of the annotation with the custom annotation
  • the record is converted to a user readable form.
  • 1 is a schematic diagram of an optional hardware architecture of an application server of the present application
  • FIG. 2 is a schematic diagram of a program module of a first embodiment of an automatic record field changing system of the present application
  • FIG. 3 is a schematic diagram of a program module of a second embodiment of the automatic record field changing system of the present application.
  • FIG. 4 is a schematic flow chart of a first embodiment of a method for changing an automatic record field of the present application
  • FIG. 5 is a schematic flow chart of a second embodiment of a method for changing an automatic record field according to the present application.
  • FIG. 1 it is a schematic diagram of an optional hardware architecture of the application server 2 of the present application.
  • the application server 2 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through a system bus. It is to be noted that Figure 1 shows only the application server 2 with components 11-13, but it should be understood that not all illustrated components may be implemented and that more or fewer components may be implemented instead.
  • the application server 2 may be a computing device such as a rack server, a blade server, a tower server, or a rack server.
  • the application server 2 may be an independent server or a server cluster composed of multiple servers. .
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the memory 11 may be an internal storage unit of the application server 2, such as a hard disk or memory of the application server 2.
  • the memory 11 may also be an external storage device of the application server 2, such as a plug-in hard disk equipped on the application server 2, a smart memory card (SMC), and a secure digital number. (Secure Digital, SD) card, flash card, etc.
  • the memory 11 can also include both the internal storage unit of the application server 2 and its external storage device.
  • the memory 11 is generally used to store an operating system installed on the application server 2 and various types of application software, such as program code of the automatic record field change system 200. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 12 is typically used to control the overall operation of the application server 2.
  • the processor 12 is configured to run program code or process data stored in the memory 11, such as running the automatic record field change system 200 and the like.
  • the network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the application server 2 and other electronic devices.
  • the present application proposes an automatic record field change system 200.
  • FIG. 2 it is a program module diagram of the first embodiment of the automatic record field change system 200 of the present application.
  • the automatic record field change system 200 includes a series of computer program instructions stored on the memory 11, and when the computer program instructions are executed by the processor 12, the automatic record fields of the embodiments of the present application can be implemented. Change operation.
  • the automatic record field change system 200 can be divided into one or more modules based on the particular operations implemented by the various portions of the computer program instructions. For example, in FIG. 2, the automatic record field change system 200 can be divided into an annotation module 201, a listening module 202, an acquisition module 203, and a conversion module 204. among them:
  • the labeling module 201 is configured to analyze the data structure, and mark a custom annotation in the entity class field;
  • the application server 2 marks some of the specified data (methods, classes, or variables) by adding annotations.
  • Annotations are metaprogramming instructions that do not affect program execution, and annotations are markers that can be seen in the code.
  • the application server 2 analyzes the data structure by the labeling module 201, determines an entity class field that needs to record a change history, and adds a custom annotation in the entity class field.
  • a custom annotation is added by adding @Loggable to indicate that the entity needs to record history. It can be understood that the labeling module 201 records its change history only for important entity class fields.
  • the listening module 202 is configured to listen to field data operations.
  • the application server 2 monitors in real time through the monitoring module 202 whether there is data operation information, such as entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, and the like.
  • the listening module 202 establishes a listener Postupdate listener, and listens to entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc. through the listener Postupdate listener, and records field changes. The previous value and the changed value.
  • code is a code for establishing a listener in this embodiment. It is to be understood that the code is only for better explanation of the present application and is not intended to be a limitation of the present application.
  • the listener selects PostInsertEventListener (post-insertion event), PostUpdateEventListener (post-update event), and PostDeleteEventListener (post-delete event) interface as the listening interface of the CRUD method, and does not affect the original code.
  • the obtaining module 203 is configured to obtain, when the entity class field marked with the custom annotation changes, a data change record of the entity class field of the monitored annotation having the custom annotation;
  • the application server 2 acquires the monitored data record of the change through the obtaining module 203.
  • the conversion module 204 is configured to convert the change record of the entity class field labeled with a custom annotation into a user readable form.
  • a trigger may be used in the database to record entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc., but the record information is difficult to be user readable. , resulting in system deployment and porting difficulties. Therefore, in the present embodiment, the application server 2 converts the change record of the entity class field labeled with the custom annotation into a user readable form through the conversion module 204. In this embodiment, the conversion module 204 converts the data modification record into a user readable by adding a custom annotation @Readable on the entity class field labeled with the custom annotation to describe the readable form of the data. form.
  • the automatic record field changing system 200 proposed by the present application first analyzes the data structure, and labels a custom annotation in the entity class field; then, listens to the field data operation; further, when the annotation has a custom
  • the data change record of the entity class field of the self-defined annotation is obtained, and finally, the change record of the entity class field marked with the custom annotation is converted into a user readable form.
  • This avoids the prior art recording in the application, but needs to add a lot of code, increase the burden on the developer or use the trigger record in the database, but the information is difficult to be readable by the user, which makes the system difficult to deploy and transplant. Defects, you can also achieve important field change history by adding custom annotations, and achieve user-readable, greatly reducing the pressure on developers.
  • the automatic record field changing system 200 includes a determining module 205 in addition to the labeling module 201, the monitoring module 202, the obtaining module 203, and the converting module 204 in the first embodiment.
  • the determining module 205 is configured to determine, when the data is changed, whether the data is entity class data marked with a custom annotation.
  • the application server 2 listens to the field data operation through the listening module 202, but in the case that all the field data needs to be recorded, the server may be slow to run. Therefore, in the embodiment, when the monitoring module 202 listens to the field data operation, that is, when the field data changes, the determining module 205 determines whether the changed field is marked with a self. Define the entity class field for the annotation. If the changed field is an entity class field marked with a custom annotation, the obtaining module 203 acquires a data change record monitored by the monitoring module 202.
  • the obtaining module 203 ignores the change information of the field data, that is, does not record the change of the data.
  • the application server 2 reduces the system running pressure of the server by judging whether the changed field is marked with a custom annotation entity class field, ignoring the unimportant field data change information.
  • the automatic record field change system 200 proposed by the present application can also determine whether the data is entity class data marked with a custom annotation when the data changes are monitored, and if the changed field is Get a data change record when an entity class field with a custom annotation is marked. If the changed field is not an entity class field marked with a custom annotation, the change information of the data of the field is ignored, that is, the change of the data is not recorded, so as to alleviate the running pressure of the server.
  • the present application also proposes an automatic record field change method.
  • FIG. 4 it is a schematic flowchart of the first embodiment of the automatic record field changing method of the present application.
  • the order of execution of the steps in the flowchart shown in FIG. 5 may be changed according to different requirements, and some steps may be omitted.
  • Step S501 analyzing the data structure, and marking a custom annotation in the entity class field
  • the application server 2 marks some of the specified data (methods, classes, or variables) by adding annotations.
  • Annotations are metaprogramming instructions that do not affect the running of the program, and annotations are tags that can be seen in the code.
  • the application server 2 analyzes the data structure, determines an entity class field that needs to record a change history, and adds a custom annotation to the entity class field.
  • a custom annotation is added by adding @Loggable to indicate that the entity needs to record history. It can be understood that the application server 2 records its change history only for important entity class fields.
  • Step S502 listening to the field data operation.
  • the application server 2 monitors in real time whether there is data operation information, such as entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, and the like.
  • the application server 2 establishes a listener Postupdate listener, and listens to entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc. through the listener Postupdate listener, and records field changes. The previous value and the changed value.
  • code is a code for establishing a listener in this embodiment. It is to be understood that the code is only for better explanation of the present application and is not intended to be a limitation of the present application.
  • the listener selects PostInsertEventListener (post-insertion event), PostUpdateEventListener (post-update event), and PostDeleteEventListener (post-delete event) interface as the listening interface of the CRUD method, and does not affect the original code.
  • Step S503 when the entity class field marked with the custom annotation changes, obtaining the data change record of the entity class field of the monitored annotation having the custom annotation;
  • the application server 2 monitors that the entity class field marked with a custom annotation changes, the application server 2 acquires the monitored data record that has changed.
  • Step S504 converting the change record of the entity class field marked with a custom annotation into a user readable form.
  • the application server 2 converts the change record of the entity class field labeled with a custom annotation into a user readable form.
  • the application server 2 converts the data modification record into a user readable by adding a custom annotation @Readable on the entity class field marked with a custom annotation to describe its readable form. form.
  • the automatic record field changing method proposed by the present application firstly analyzes the data structure, and labels a custom annotation in the entity class field; then, listens to the field data operation; further, when the annotation has a custom annotation
  • the entity class field changes the data change record of the entity class field with the custom annotation is obtained, and finally, the change record of the entity class field marked with the custom annotation is converted into a user readable form.
  • FIG. 5 it is a schematic flowchart of a second embodiment of a method for changing an automatic record field of the present application.
  • the step of the automatic record field changing method is similar to the step of the first embodiment, except that the method further includes steps S603 and S605.
  • Step S601 analyzing the data structure, and marking a custom annotation in the entity class field;
  • Step S602 listening to the field data operation.
  • the application server 2 monitors in real time whether there is data operation information, such as entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, and the like.
  • the application server 2 establishes a listener Postupdate listener, and listens to entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc. through the listener Postupdate listener, and records field changes. The previous value and the changed value.
  • code is a code for establishing a listener in this embodiment. It is to be understood that the code is only for better explanation of the present application and is not intended to be a limitation of the present application.
  • the listener selects PostInsertEventListener (post-insertion event), PostUpdateEventListener (post-update event), and PostDeleteEventListener (post-deletion event) interface as the listening interface of the CRUD method, and does not affect the original code.
  • Step S603 when it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation, and if the changed field is an entity class field marked with a custom annotation, step S604 is performed, if the occurrence occurs When the changed field is not an entity class field marked with a custom annotation, the process jumps to step S605.
  • Step S604 when the entity class field marked with the custom annotation changes, the monitored data change record of the entity class field marked with the custom annotation is obtained.
  • step S605 if the changed data is not the entity class data marked with the custom annotation, the change of the data is not recorded.
  • the application server 2 listens to the field data operation through the listening module 202, but in the case that all the field data needs to be recorded, the server may be slow to run. Therefore, in the embodiment, when the application server 2 detects the field data operation, that is, when the field data changes, the application server 2 determines whether the changed field is an entity class marked with a custom annotation. Field. If the changed field is an entity class field marked with a custom annotation, the application server 2 listens to the data change record. If the changed field is not an entity class field marked with a custom annotation, the application server 2 ignores the change information of the field data, that is, does not record the change of the data. The application server 2 reduces the system running pressure of the server by judging whether the changed field is marked with a custom annotation entity class field, ignoring the unimportant field data change information.
  • Step S606 converting the change record of the entity class field marked with a custom annotation into a user readable form.
  • the automatic record field changing method proposed by the present application can also determine whether the data is entity class data marked with a custom annotation when the data changes are monitored, and if the changed field is Get a data change record when an entity class field with a custom annotation is marked. If the changed field is not an entity class field marked with a custom annotation, the change information of the data of the field is ignored, that is, the change of the data is not recorded, so as to alleviate the running pressure of the server.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.

Abstract

Disclosed in the present application is a method for automatically recording a field change, the method comprising: analyzing a data structure, and annotating a custom annotation in an entity class field; monitoring a field data operation; when the entity class field annotated with the custom annotation changes, obtaining a monitored data change record of the entity class field annotated with the custom annotation; and converting the change record of the entity class field annotated with the custom annotation into a user-readable form. Further provided in the present application are an application server and a computer readable storage medium. According to the method for automatically recording field change, the application server and the computer-readable storage medium provided in the present application, the change history of an important field may be recorded by adding the custom annotation, and user readability may be achieved, thereby greatly reducing the pressure on developers.

Description

自动记录字段变化方法、应用服务器及计算机可读存储介质Automatic record field change method, application server, and computer readable storage medium
优先权申明Priority claim
本申请基于巴黎公约申明享有2018年1月11日递交的申请号为CN 201810026291.X、名称为“自动记录字段变化方法、应用服务器及计算机可读存储介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application is based on the priority of the Paris Convention, which is filed on January 11, 2018, with the application number CN 201810026291.X, entitled "Automatic Record Field Change Method, Application Server and Computer Readable Storage Media" Chinese Patent Application, China The entire content of the patent application is incorporated herein by reference.
技术领域Technical field
本申请涉及数据处理领域,尤其涉及一种自动记录字段变化方法、应用服务器及计算机可读存储介质。The present application relates to the field of data processing, and in particular, to an automatic record field change method, an application server, and a computer readable storage medium.
背景技术Background technique
数据作为信息***的核心元素,在信息***中有着不可取代的作用,是信息***其它功能最基本的前提条件,如此,记录数据的变化就变得尤为重要。目前记录数据的变化历史,主要有两种方式:一是在应用程序中记录,但是需要增加很多代码,增加开发人员的负担;二是在数据库中使用触发器记录,但这些信息难以做到用户可读,导致***的部署和移植困难。As the core element of information system, data plays an irreplaceable role in information systems and is the most basic precondition for other functions of information systems. Therefore, the change of recorded data becomes more and more important. At present, there are two main ways to record the history of data changes: one is to record in the application, but it needs to add a lot of code to increase the burden on developers; the second is to use trigger records in the database, but this information is difficult to achieve users. Readable, which makes the deployment and migration of the system difficult.
发明内容Summary of the invention
有鉴于此,本申请提出一种自动记录字段变化方法、应用服务器及计算机可读存储介质,以解决如何避免在应用程序中记录数据时需要增加很多代码或者在数据库中使用触发器记录,且数据记录难以做到用户可读的问题。In view of this, the present application proposes an automatic record field change method, an application server, and a computer readable storage medium to solve the problem of how to avoid adding a lot of code or using a trigger record in a database when recording data in an application, and the data It is difficult to record user-readable problems.
首先,为实现上述目的,本申请第一方面提出一种自动记录字段变化方法,该方法包括步骤:First, in order to achieve the above object, a first aspect of the present application provides a method for automatically recording a field change, the method comprising the steps of:
分析数据结构,在实体类字段标注自定义注解;Analyze the data structure and mark custom annotations in the entity class fields;
监听字段数据操作;Listen for field data operations;
当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;When the entity class field marked with a custom annotation changes, the data change record of the entity class field with the custom annotation is obtained.
将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。The change record of the entity class field labeled with a custom annotation is converted into a user readable form.
此外,为实现上述目的,本申请第二方面还提供一种应用服务器,包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的自动记录字段变化***,所述自动记录字段变化***被所述处理器执行时实现如下步骤:In addition, in order to achieve the above object, a second aspect of the present application further provides an application server, including a memory, a processor, and an automatic record field change system operable on the processor, where the automatic record is stored The field change system is implemented by the processor to implement the following steps:
分析数据结构,在实体类字段标注自定义注解;Analyze the data structure and mark custom annotations in the entity class fields;
监听字段数据操作;Listen for field data operations;
当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;When the entity class field marked with a custom annotation changes, the data change record of the entity class field with the custom annotation is obtained.
将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。The change record of the entity class field labeled with a custom annotation is converted into a user readable form.
进一步地,为实现上述目的,本申请第三方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有自动记录字段变化***,所述自动记录字段变化***可被至少一个处理器执行,以使所述至少一个处理器执行如上述的自动记录字段变化方法的步骤。Further, in order to achieve the above object, a third aspect of the present application further provides a computer readable storage medium storing an automatic record field change system, wherein the automatic record field change system can be processed by at least one The apparatus is operative to cause the at least one processor to perform the steps of the automatic record field change method as described above.
相较于现有技术,本申请所提出的自动记录字段变化方法、应用 服务器及计算机可读存储介质,首先,分析数据结构,在实体类字段标注自定义注解;接着,监听字段数据操作;进一步地,当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;最后,将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。这样避免现有技术中在应用程序中记录,但是需要增加很多代码,增加开发人员的负担或者在数据库中使用触发器记录,但这些信息难以做到用户可读,导致***的部署和移植困难的缺陷,还可以通过增加自定义注解即可实现重要字段变化历史记录,并实现用户可读,大大减轻开发人员的压力。Compared with the prior art, the automatic record field changing method, the application server and the computer readable storage medium proposed by the present application first analyze the data structure, and mark a custom annotation in the entity class field; then, listen to the field data operation; further Ground, when the entity class field marked with a custom annotation changes, obtain the data change record of the entity class field of the annotation annotation with the custom annotation; finally, the change of the entity class field of the annotation with the custom annotation The record is converted to a user readable form. This avoids the prior art recording in the application, but needs to add a lot of code, increase the burden on the developer or use the trigger record in the database, but the information is difficult to be readable by the user, which makes the system difficult to deploy and transplant. Defects, you can also achieve important field change history by adding custom annotations, and achieve user-readable, greatly reducing the pressure on developers.
附图说明DRAWINGS
图1是本申请应用服务器一可选的硬件架构的示意图;1 is a schematic diagram of an optional hardware architecture of an application server of the present application;
图2是本申请自动记录字段变化***第一实施例的程序模块示意图;2 is a schematic diagram of a program module of a first embodiment of an automatic record field changing system of the present application;
图3是本申请自动记录字段变化***第二实施例的程序模块示意图;3 is a schematic diagram of a program module of a second embodiment of the automatic record field changing system of the present application;
图4是本申请自动记录字段变化方法第一实施例的流程示意图;4 is a schematic flow chart of a first embodiment of a method for changing an automatic record field of the present application;
图5是本申请自动记录字段变化方法第二实施例的流程示意图。FIG. 5 is a schematic flow chart of a second embodiment of a method for changing an automatic record field according to the present application.
附图标记:Reference mark:
应用服务器application server 22
存储器Memory 1111
处理器processor 1212
网络接口Network Interface 1313
自动记录字段变化***Automatic record field change system 200200
标注模块Labeling module 201201
监听模块Monitoring module 202202
获取模块Acquisition module 203203
转换模块Conversion module 204204
判断模块Judgment module 205205
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions of "first", "second" and the like in the present application are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. . Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. Nor is it within the scope of protection required by this application.
参阅图1所示,是本申请应用服务器2一可选的硬件架构的示意图。Referring to FIG. 1, it is a schematic diagram of an optional hardware architecture of the application server 2 of the present application.
本实施例中,所述应用服务器2可包括,但不仅限于,可通过***总线相互通信连接存储器11、处理器12、网络接口13。需要指出的 是,图1仅示出了具有组件11-13的应用服务器2,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In this embodiment, the application server 2 may include, but is not limited to, the memory 11, the processor 12, and the network interface 13 being communicably connected to each other through a system bus. It is to be noted that Figure 1 shows only the application server 2 with components 11-13, but it should be understood that not all illustrated components may be implemented and that more or fewer components may be implemented instead.
其中,所述应用服务器2可以是机架式服务器、刀片式服务器、塔式服务器或机柜式服务器等计算设备,该应用服务器2可以是独立的服务器,也可以是多个服务器所组成的服务器集群。The application server 2 may be a computing device such as a rack server, a blade server, a tower server, or a rack server. The application server 2 may be an independent server or a server cluster composed of multiple servers. .
所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器11可以是所述应用服务器2的内部存储单元,例如该应用服务器2的硬盘或内存。在另一些实施例中,所述存储器11也可以是所述应用服务器2的外部存储设备,例如该应用服务器2上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,所述存储器11还可以既包括所述应用服务器2的内部存储单元也包括其外部存储设备。本实施例中,所述存储器11通常用于存储安装于所述应用服务器2的操作***和各类应用软件,例如自动记录字段变化***200的程序代码等。此外,所述存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. In some embodiments, the memory 11 may be an internal storage unit of the application server 2, such as a hard disk or memory of the application server 2. In other embodiments, the memory 11 may also be an external storage device of the application server 2, such as a plug-in hard disk equipped on the application server 2, a smart memory card (SMC), and a secure digital number. (Secure Digital, SD) card, flash card, etc. Of course, the memory 11 can also include both the internal storage unit of the application server 2 and its external storage device. In this embodiment, the memory 11 is generally used to store an operating system installed on the application server 2 and various types of application software, such as program code of the automatic record field change system 200. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
所述处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器12通常用于控制所述应用服务器2的总体操作。本实施例中,所述处理器12用于运行所述存储器11中存储的程序代码 或者处理数据,例如运行所述的自动记录字段变化***200等。The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is typically used to control the overall operation of the application server 2. In this embodiment, the processor 12 is configured to run program code or process data stored in the memory 11, such as running the automatic record field change system 200 and the like.
所述网络接口13可包括无线网络接口或有线网络接口,该网络接口13通常用于在所述应用服务器2与其他电子设备之间建立通信连接。The network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the application server 2 and other electronic devices.
至此,己经详细介绍了本申请相关设备的硬件结构和功能。下面,将基于上述介绍提出本申请的各个实施例。So far, the hardware structure and functions of the devices related to this application have been described in detail. Hereinafter, various embodiments of the present application will be made based on the above description.
首先,本申请提出一种自动记录字段变化***200。First, the present application proposes an automatic record field change system 200.
参阅图2所示,是本申请自动记录字段变化***200第一实施例的程序模块图。Referring to FIG. 2, it is a program module diagram of the first embodiment of the automatic record field change system 200 of the present application.
本实施例中,所述自动记录字段变化***200包括一系列的存储于存储器11上的计算机程序指令,当该计算机程序指令被处理器12执行时,可以实现本申请各实施例的自动记录字段变化操作。在一些实施例中,基于该计算机程序指令各部分所实现的特定的操作,自动记录字段变化***200可以被划分为一个或多个模块。例如,在图2中,所述自动记录字段变化***200可以被分割成标注模块201、监听模块202、获取模块203及转换模块204。其中:In this embodiment, the automatic record field change system 200 includes a series of computer program instructions stored on the memory 11, and when the computer program instructions are executed by the processor 12, the automatic record fields of the embodiments of the present application can be implemented. Change operation. In some embodiments, the automatic record field change system 200 can be divided into one or more modules based on the particular operations implemented by the various portions of the computer program instructions. For example, in FIG. 2, the automatic record field change system 200 can be divided into an annotation module 201, a listening module 202, an acquisition module 203, and a conversion module 204. among them:
所述标注模块201,用于分析数据结构,在实体类字段标注自定义注解;The labeling module 201 is configured to analyze the data structure, and mark a custom annotation in the entity class field;
通常地,记录数据的变化历史,主要有两种方式:一是在应用程序中记录,但是需要增加很多代码,增加开发人员的负担。二是在数据库中使用触发器记录,但这些信息难以做到用户可读,导致***的部署和移植困难。因此,在本实施例中,为了解决上述问题,所述应用服务器2通过增加注解的方式,对指定的一些数据(方法、类或者变量)进行标记。注解是不影响程序运行的元编程指令,且注解是代 码中可以看到的标记。Generally, there are two main ways to record the history of data changes: one is to record in the application, but it needs to add a lot of code to increase the burden on the developer. The second is to use trigger records in the database, but this information is difficult to read by users, resulting in system deployment and porting difficulties. Therefore, in the present embodiment, in order to solve the above problem, the application server 2 marks some of the specified data (methods, classes, or variables) by adding annotations. Annotations are metaprogramming instructions that do not affect program execution, and annotations are markers that can be seen in the code.
具体地,所述应用服务器2通过所述标注模块201分析数据结构,确定需要记录变化历史的实体类字段,并在所述实体类字段添加自定义注解。在本实施例中,通过添加@Loggable实现添加自定义注解,注明该实体需要记录历史。可以理解的是,所述标注模块201只针对重要的实体类字段进行记录其变化历史。Specifically, the application server 2 analyzes the data structure by the labeling module 201, determines an entity class field that needs to record a change history, and adds a custom annotation in the entity class field. In this embodiment, a custom annotation is added by adding @Loggable to indicate that the entity needs to record history. It can be understood that the labeling module 201 records its change history only for important entity class fields.
所述监听模块202,用于监听字段数据操作。The listening module 202 is configured to listen to field data operations.
具体地,所述应用服务器2通过监听模块202实时监听是否有数据操作信息,比如实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除等操作。Specifically, the application server 2 monitors in real time through the monitoring module 202 whether there is data operation information, such as entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, and the like.
在本实施例中,所述监听模块202建立***Postupdate listener,通过***Postupdate listener监听实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除等操作,并记录字段变化前的值以及变化后的值。In this embodiment, the listening module 202 establishes a listener Postupdate listener, and listens to entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc. through the listener Postupdate listener, and records field changes. The previous value and the changed value.
请参阅以下代码,为本实施例中建立***的代码,可以理解的是,本代码仅是为了更好地解释本申请,并不作为本申请的限定。Please refer to the following code, which is a code for establishing a listener in this embodiment. It is to be understood that the code is only for better explanation of the present application and is not intended to be a limitation of the present application.
1.public class MyListener extends DefaultLoadEventListener1.public class MyListener extends DefaultLoadEventListener
2.implements PostUpdateEventListener{2.implements PostUpdateEventListener{
3.public void onPostUpdate(PostUpdateEvent event){3.public void onPostUpdate(PostUpdateEvent event){
4.System.out.println(event.getEntity().getClass().getName()+":更新完毕");4.System.out.println(event.getEntity().getClass().getName()+":Updated");
5.  for(int i=0;i<event.getState().length;i++){5. for(int i=0;i<event.getState().length;i++){
6.//更新前的值6.//Value before update
7.  Object oldValue=event.getOldState()[i];7. Object oldValue=event.getOldState()[i];
8.  //更新后的新值8. //Updated new value
9.  Object newValue=event.getState()[i];9. Object newValue=event.getState()[i];
10. //更新的属性名10. //Updated property name
11. String propertyName=event.getPersister().getPropertyNa mes()[i];11. String propertyName=event.getPersister().getPropertyNa mes()[i];
12. }12. }
13. }13. }
14.}14.}
所述***选取PostInsertEventListener(***后事件),PostUpdateEventListener(更新后事件),PostDeleteEventListener(删除后事件)接口作为CRUD方法的监听接口,并不影响原有代码。The listener selects PostInsertEventListener (post-insertion event), PostUpdateEventListener (post-update event), and PostDeleteEventListener (post-delete event) interface as the listening interface of the CRUD method, and does not affect the original code.
所述获取模块203,用于当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;The obtaining module 203 is configured to obtain, when the entity class field marked with the custom annotation changes, a data change record of the entity class field of the monitored annotation having the custom annotation;
具体地,当所述监听模块203监听到所述标注有自定义注解的实体类字段发生变化时,所述应用服务器2通过所述获取模块203获取监听到的发生变化的数据记录。Specifically, when the monitoring module 203 detects that the entity class field marked with a custom annotation changes, the application server 2 acquires the monitored data record of the change through the obtaining module 203.
所述转换模块204,用于将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。The conversion module 204 is configured to convert the change record of the entity class field labeled with a custom annotation into a user readable form.
具体地,在现有技术中,可以在数据库中使用触发器记录实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除等操作,但这些记录信息难以做到用户可读,导致***的部署和移植困难。因此,在本实施例中,所述应用服务器2通过转换模块204将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。在本实施例中,所述转换模块204通过在标注有自定义注解的实体类字段上添加一个自定义注解@Readable,描述自身的可读形式,实现将所述数据修改记录转换成用户可读形式。Specifically, in the prior art, a trigger may be used in the database to record entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc., but the record information is difficult to be user readable. , resulting in system deployment and porting difficulties. Therefore, in the present embodiment, the application server 2 converts the change record of the entity class field labeled with the custom annotation into a user readable form through the conversion module 204. In this embodiment, the conversion module 204 converts the data modification record into a user readable by adding a custom annotation @Readable on the entity class field labeled with the custom annotation to describe the readable form of the data. form.
通过上述程序模块201-204,本申请所提出的自动记录字段变化***200,首先,分析数据结构,在实体类字段标注自定义注解;接着,监听字段数据操作;进一步地,当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;最后,将所述标注有自定义注解的实体类字段的变化记录 转换成用户可读形式。这样避免现有技术中在应用程序中记录,但是需要增加很多代码,增加开发人员的负担或者在数据库中使用触发器记录,但这些信息难以做到用户可读,导致***的部署和移植困难的缺陷,还可以通过增加自定义注解即可实现重要字段变化历史记录,并实现用户可读,大大减轻开发人员的压力。Through the above program modules 201-204, the automatic record field changing system 200 proposed by the present application first analyzes the data structure, and labels a custom annotation in the entity class field; then, listens to the field data operation; further, when the annotation has a custom When the annotated entity class field changes, the data change record of the entity class field of the self-defined annotation is obtained, and finally, the change record of the entity class field marked with the custom annotation is converted into a user readable form. . This avoids the prior art recording in the application, but needs to add a lot of code, increase the burden on the developer or use the trigger record in the database, but the information is difficult to be readable by the user, which makes the system difficult to deploy and transplant. Defects, you can also achieve important field change history by adding custom annotations, and achieve user-readable, greatly reducing the pressure on developers.
参阅图3所示,是本申请自动记录字段变化***200第二实施例的程序模块图。本实施例中,所述的自动记录字段变化***200除了包括第一实施例中的所述标注模块201、监听模块202、获取模块203及转换模块204之外,还包括判断模块205。Referring to FIG. 3, it is a program module diagram of a second embodiment of the automatic record field change system 200 of the present application. In the embodiment, the automatic record field changing system 200 includes a determining module 205 in addition to the labeling module 201, the monitoring module 202, the obtaining module 203, and the converting module 204 in the first embodiment.
所述判断模块205,用于当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据。The determining module 205 is configured to determine, when the data is changed, whether the data is entity class data marked with a custom annotation.
具体地,从上文可知,在第一实施例中,所述应用服务器2通过监听模块202监听字段数据操作,然而当所有的字段数据变化时都需要记录的情况下,会导致服务器运行缓慢。因此在本实施例中,所述应用服务器2在所述监听模块202监听到有字段数据操作时,即字段数据有发生变化时,通过所述判断模块205判断发生变化的字段是否是标注有自定义注解的实体类字段。若发生变化的字段为标注有自定义注解的实体类字段时,所述获取模块203获取所述监听模块202监听到的数据变化记录。若发生变化的字段不是标注有自定义注解的实体类字段时,所述获取模块203忽略该字段数据的变化信息,即不记录所述数据的变化。所述应用服务器2通过判断发生变化的字段是否标注有自定义注解的实体类字段,忽略不重要的字段数据变化信息,减轻服务器的***运行压力。Specifically, as can be seen from the above, in the first embodiment, the application server 2 listens to the field data operation through the listening module 202, but in the case that all the field data needs to be recorded, the server may be slow to run. Therefore, in the embodiment, when the monitoring module 202 listens to the field data operation, that is, when the field data changes, the determining module 205 determines whether the changed field is marked with a self. Define the entity class field for the annotation. If the changed field is an entity class field marked with a custom annotation, the obtaining module 203 acquires a data change record monitored by the monitoring module 202. If the changed field is not an entity class field marked with a custom annotation, the obtaining module 203 ignores the change information of the field data, that is, does not record the change of the data. The application server 2 reduces the system running pressure of the server by judging whether the changed field is marked with a custom annotation entity class field, ignoring the unimportant field data change information.
通过上述程序模块205,本申请所提出的自动记录字段变化*** 200,还能够当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据,若发生变化的字段为标注有自定义注解的实体类字段时,获取数据变化记录。若发生变化的字段不是标注有自定义注解的实体类字段时,忽略该字段数据的变化信息,即不记录所述数据的变化,以减轻服务器的运行压力。Through the above-mentioned program module 205, the automatic record field change system 200 proposed by the present application can also determine whether the data is entity class data marked with a custom annotation when the data changes are monitored, and if the changed field is Get a data change record when an entity class field with a custom annotation is marked. If the changed field is not an entity class field marked with a custom annotation, the change information of the data of the field is ignored, that is, the change of the data is not recorded, so as to alleviate the running pressure of the server.
此外,本申请还提出一种自动记录字段变化方法。In addition, the present application also proposes an automatic record field change method.
参阅图4所示,是本申请自动记录字段变化方法第一实施例的流程示意图。在本实施例中,根据不同的需求,图5所示的流程图中的步骤的执行顺序可以改变,某些步骤可以省略。Referring to FIG. 4, it is a schematic flowchart of the first embodiment of the automatic record field changing method of the present application. In this embodiment, the order of execution of the steps in the flowchart shown in FIG. 5 may be changed according to different requirements, and some steps may be omitted.
步骤S501,分析数据结构,在实体类字段标注自定义注解;Step S501, analyzing the data structure, and marking a custom annotation in the entity class field;
通常地,记录数据的变化历史,主要有两种方式:一是在应用程序中记录,但是需要增加很多代码,增加开发人员的负担。二是在数据库中使用触发器记录,但这些信息难以做到用户可读,导致***的部署和移植困难。因此,在本实施例中,为了解决上述问题,所述应用服务器2通过增加注解的方式,对指定的一些数据(方法、类或者变量)进行标记。注解是不影响程序运行的元编程指令,且注解是代码中可以看到的标记。Generally, there are two main ways to record the history of data changes: one is to record in the application, but it needs to add a lot of code to increase the burden on the developer. The second is to use trigger records in the database, but this information is difficult to read by users, resulting in system deployment and porting difficulties. Therefore, in the present embodiment, in order to solve the above problem, the application server 2 marks some of the specified data (methods, classes, or variables) by adding annotations. Annotations are metaprogramming instructions that do not affect the running of the program, and annotations are tags that can be seen in the code.
具体地,所述应用服务器2分析数据结构,确定需要记录变化历史的实体类字段,并在所述实体类字段添加自定义注解。在本实施例中,通过添加@Loggable实现添加自定义注解,注明该实体需要记录历史。可以理解的是,所述应用服务器2只针对重要的实体类字段进行记录其变化历史。Specifically, the application server 2 analyzes the data structure, determines an entity class field that needs to record a change history, and adds a custom annotation to the entity class field. In this embodiment, a custom annotation is added by adding @Loggable to indicate that the entity needs to record history. It can be understood that the application server 2 records its change history only for important entity class fields.
步骤S502,监听字段数据操作。Step S502, listening to the field data operation.
具体地,所述应用服务器2实时监听是否有数据操作信息,比如 实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除等操作。Specifically, the application server 2 monitors in real time whether there is data operation information, such as entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, and the like.
在本实施例中,所述应用服务器2建立***Postupdate listener,通过***Postupdate listener监听实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除等操作,并记录字段变化前的值以及变化后的值。In this embodiment, the application server 2 establishes a listener Postupdate listener, and listens to entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc. through the listener Postupdate listener, and records field changes. The previous value and the changed value.
请参阅以下代码,为本实施例中建立***的代码,可以理解的是,本代码仅是为了更好地解释本申请,并不作为本申请的限定。Please refer to the following code, which is a code for establishing a listener in this embodiment. It is to be understood that the code is only for better explanation of the present application and is not intended to be a limitation of the present application.
15.public class MyListener extends DefaultLoadEventListener15.public class MyListener extends DefaultLoadEventListener
16.implements PostUpdateEventListener{16.implements PostUpdateEventListener{
17.public void onPostUpdate(PostUpdateEvent event){17.public void onPostUpdate(PostUpdateEvent event){
18.System.out.println(event.getEntity().getClass().getName()+":更新完毕");18.System.out.println(event.getEntity().getClass().getName()+":Updated");
19. for(int i=0;i<event.getState().length;i++){19. for(int i=0;i<event.getState().length;i++){
20.//更新前的值20.//Value before update
21. Object oldValue=event.getOldState()[i];21. Object oldValue=event.getOldState()[i];
22. //更新后的新值22. //Updated new value
23. Object newValue=event.getState()[i];23. Object newValue=event.getState()[i];
24. //更新的属性名24. //Updated property name
25. String propertyName=event.getPersister().getPropertyNa mes()[i];25. String propertyName=event.getPersister().getPropertyNa mes()[i];
26. }26. }
27. }27. }
28.}28.}
所述***选取PostInsertEventListener(***后事件),PostUpdateEventListener(更新后事件),PostDeleteEventListener(删除后事件)接口作为CRUD方法的监听接口,并不影响原有代码。The listener selects PostInsertEventListener (post-insertion event), PostUpdateEventListener (post-update event), and PostDeleteEventListener (post-delete event) interface as the listening interface of the CRUD method, and does not affect the original code.
步骤S503,当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;Step S503, when the entity class field marked with the custom annotation changes, obtaining the data change record of the entity class field of the monitored annotation having the custom annotation;
具体地,当所述应用服务器2监听到所述标注有自定义注解的实 体类字段发生变化时,所述应用服务器2获取监听到的发生变化的数据记录。Specifically, when the application server 2 monitors that the entity class field marked with a custom annotation changes, the application server 2 acquires the monitored data record that has changed.
步骤S504,将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。Step S504, converting the change record of the entity class field marked with a custom annotation into a user readable form.
具体地,在现有技术中,可以在数据库中使用触发器记录实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除等操作,但这些记录信息难以做到用户可读,导致***的部署和移植困难。因此,在本实施例中,所述应用服务器2将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。在本实施例中,所述应用服务器2通过在标注有自定义注解的实体类字段上添加一个自定义注解@Readable,描述自身的可读形式,实现将所述数据修改记录转换成用户可读形式。Specifically, in the prior art, a trigger may be used in the database to record entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc., but the record information is difficult to be user readable. , resulting in system deployment and porting difficulties. Therefore, in the present embodiment, the application server 2 converts the change record of the entity class field labeled with a custom annotation into a user readable form. In this embodiment, the application server 2 converts the data modification record into a user readable by adding a custom annotation @Readable on the entity class field marked with a custom annotation to describe its readable form. form.
通过上述步骤S501-S504,本申请所提出的自动记录字段变化方法,首先,分析数据结构,在实体类字段标注自定义注解;接着,监听字段数据操作;进一步地,当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;最后,将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。这样避免现有技术中在应用程序中记录,但是需要增加很多代码,增加开发人员的负担或者在数据库中使用触发器记录,但这些信息难以做到用户可读,导致***的部署和移植困难的缺陷,还可以通过增加自定义注解即可实现重要字段变化历史记录,并实现用户可读,大大减轻开发人员的压力。Through the above steps S501-S504, the automatic record field changing method proposed by the present application firstly analyzes the data structure, and labels a custom annotation in the entity class field; then, listens to the field data operation; further, when the annotation has a custom annotation When the entity class field changes, the data change record of the entity class field with the custom annotation is obtained, and finally, the change record of the entity class field marked with the custom annotation is converted into a user readable form. This avoids the prior art recording in the application, but needs to add a lot of code, increase the burden on the developer or use the trigger record in the database, but the information is difficult to be readable by the user, which makes the system difficult to deploy and transplant. Defects, you can also achieve important field change history by adding custom annotations, and achieve user-readable, greatly reducing the pressure on developers.
参阅图5所示,是本申请自动记录字段变化方法第二实施例的流程示意图。本实施例中,所述自动记录字段变化方法的步骤与第一实施例的步骤相类似,区别在于该方法还包括步骤S603及S605。Referring to FIG. 5, it is a schematic flowchart of a second embodiment of a method for changing an automatic record field of the present application. In this embodiment, the step of the automatic record field changing method is similar to the step of the first embodiment, except that the method further includes steps S603 and S605.
在本实施例中,根据不同的需求,图5所示的流程图中的步骤的 执行顺序可以改变,某些步骤可以省略。In this embodiment, the order of execution of the steps in the flowchart shown in FIG. 5 may be changed according to different requirements, and some steps may be omitted.
步骤S601,分析数据结构,在实体类字段标注自定义注解;Step S601, analyzing the data structure, and marking a custom annotation in the entity class field;
步骤S602,监听字段数据操作。Step S602, listening to the field data operation.
具体地,所述应用服务器2实时监听是否有数据操作信息,比如实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除等操作。Specifically, the application server 2 monitors in real time whether there is data operation information, such as entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, and the like.
在本实施例中,所述应用服务器2建立***Postupdate listener,通过***Postupdate listener监听实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除等操作,并记录字段变化前的值以及变化后的值。In this embodiment, the application server 2 establishes a listener Postupdate listener, and listens to entity field modification, entity association/cascade relationship change, entity field addition, entity field deletion, etc. through the listener Postupdate listener, and records field changes. The previous value and the changed value.
请参阅以下代码,为本实施例中建立***的代码,可以理解的是,本代码仅是为了更好地解释本申请,并不作为本申请的限定。Please refer to the following code, which is a code for establishing a listener in this embodiment. It is to be understood that the code is only for better explanation of the present application and is not intended to be a limitation of the present application.
29.public class MyListener extends DefaultLoadEventListener29.public class MyListener extends DefaultLoadEventListener
30.implements PostUpdateEventListener{30.implements PostUpdateEventListener{
31.public void onPostUpdate(PostUpdateEvent event){31.public void onPostUpdate(PostUpdateEvent event){
32.System.out.println(event.getEntity().getClass().getName()+":更新完毕");32.System.out.println(event.getEntity().getClass().getName()+":Updated");
33. for(int i=0;i<event.getState().length;i++){33. for(int i=0;i<event.getState().length;i++){
34.//更新前的值34.//Value before update
35. Object oldValue=event.getOldState()[i];35. Object oldValue=event.getOldState()[i];
36. //更新后的新值36. //Updated new value
37. Object newValue=event.getState()[i];37. Object newValue=event.getState()[i];
38. //更新的属性名38. //Updated property name
39. String propertyName=event.getPersister().getPropertyNa mes()[i];39. String propertyName=event.getPersister().getPropertyNa mes()[i];
40. }40.
41. }41. }
42.}42.}
所述***选取PostInsertEventListener(***后事件),PostUpdateEventListener(更新后事件),PostDeleteEventListener(删 除后事件)接口作为CRUD方法的监听接口,并不影响原有代码。The listener selects PostInsertEventListener (post-insertion event), PostUpdateEventListener (post-update event), and PostDeleteEventListener (post-deletion event) interface as the listening interface of the CRUD method, and does not affect the original code.
步骤S603,当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据,若发生变化的字段是标注有自定义注解的实体类字段时,执行步骤S604,若发生变化的字段不是标注有自定义注解的实体类字段时,跳至执行步骤S605。Step S603, when it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation, and if the changed field is an entity class field marked with a custom annotation, step S604 is performed, if the occurrence occurs When the changed field is not an entity class field marked with a custom annotation, the process jumps to step S605.
步骤S604,当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录。Step S604, when the entity class field marked with the custom annotation changes, the monitored data change record of the entity class field marked with the custom annotation is obtained.
步骤S605,若发生变化的数据不是标注有自定义注解的实体类数据,不记录所述数据的变化。In step S605, if the changed data is not the entity class data marked with the custom annotation, the change of the data is not recorded.
具体地,从上文可知,在第一实施例中,所述应用服务器2通过监听模块202监听字段数据操作,然而当所有的字段数据变化时都需要记录的情况下,会导致服务器运行缓慢。因此在本实施例中,所述应用服务器2在监听到有字段数据操作时,即字段数据有发生变化时,通过所述应用服务器2判断发生变化的字段是否是标注有自定义注解的实体类字段。若发生变化的字段为标注有自定义注解的实体类字段时,所述应用服务器2监听到的数据变化记录。若发生变化的字段不是标注有自定义注解的实体类字段时,所述应用服务器2忽略该字段数据的变化信息,即不记录所述数据的变化。所述应用服务器2通过判断发生变化的字段是否标注有自定义注解的实体类字段,忽略不重要的字段数据变化信息,减轻服务器的***运行压力。Specifically, as can be seen from the above, in the first embodiment, the application server 2 listens to the field data operation through the listening module 202, but in the case that all the field data needs to be recorded, the server may be slow to run. Therefore, in the embodiment, when the application server 2 detects the field data operation, that is, when the field data changes, the application server 2 determines whether the changed field is an entity class marked with a custom annotation. Field. If the changed field is an entity class field marked with a custom annotation, the application server 2 listens to the data change record. If the changed field is not an entity class field marked with a custom annotation, the application server 2 ignores the change information of the field data, that is, does not record the change of the data. The application server 2 reduces the system running pressure of the server by judging whether the changed field is marked with a custom annotation entity class field, ignoring the unimportant field data change information.
步骤S606,将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。Step S606, converting the change record of the entity class field marked with a custom annotation into a user readable form.
通过上述步骤S601-S606,本申请所提出的自动记录字段变化方法,还能够当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据,若发生变化的字段为标注有自定义注解的实 体类字段时,获取数据变化记录。若发生变化的字段不是标注有自定义注解的实体类字段时,忽略该字段数据的变化信息,即不记录所述数据的变化,以减轻服务器的运行压力。Through the above steps S601-S606, the automatic record field changing method proposed by the present application can also determine whether the data is entity class data marked with a custom annotation when the data changes are monitored, and if the changed field is Get a data change record when an entity class field with a custom annotation is marked. If the changed field is not an entity class field marked with a custom annotation, the change information of the data of the field is ignored, that is, the change of the data is not recorded, so as to alleviate the running pressure of the server.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.

Claims (20)

  1. 一种自动记录字段变化方法,应用于应用服务器,其特征在于,所述方法包括:An automatic record field change method is applied to an application server, and the method includes:
    分析数据结构,在实体类字段标注自定义注解;Analyze the data structure and mark custom annotations in the entity class fields;
    监听字段数据操作;Listen for field data operations;
    当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;When the entity class field marked with a custom annotation changes, the data change record of the entity class field with the custom annotation is obtained.
    将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。The change record of the entity class field labeled with a custom annotation is converted into a user readable form.
  2. 如权利要求1所述的自动记录字段变化方法,其特征在于,所述分析数据结构,在实体类字段标注自定义注解的步骤,具体为:The automatic record field changing method according to claim 1, wherein the analyzing the data structure, the step of labeling the custom annotation in the entity class field, specifically:
    通过在实体字段添加自定义注解@Loggable,注明所述字段需要记录变化历史。By adding a custom annotation @Loggable to the entity field, note that the field needs to record the change history.
  3. 如权利要求2所述的自动记录字段变化方法,其特征在于,所述监听数据操作的步骤,具体包括如下步骤:The automatic record field changing method according to claim 2, wherein the step of monitoring the data operation comprises the following steps:
    建立***;Establish a listener;
    通过***精确追踪对实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除;Tracking changes to entity fields, changes in entity association/cascade relationships, addition of entity fields, and deletion of entity fields through the listener;
    记录字段变化前的值以及变化后的值。Record the value before the field change and the changed value.
  4. 如权利要求3所述的自动记录字段变化方法,其特征在于,所述将所述数据修改记录转换成用户可读形式的步骤,具体为:The automatic record field changing method according to claim 3, wherein the step of converting the data modification record into a user readable form is specifically:
    通过在实体类字段添加自定义注解@Readable,描述自身的可读形式。Describe your own readable form by adding a custom annotation @Readable to the entity class field.
  5. 如权利要求1所述的自动记录字段变化方法,其特征在于,所述当监听到标注有自定义注解的实体类数据发生变化时,获取监听 到的发生变化的数据记录,还包括如下步骤:The automatic record field changing method according to claim 1, wherein the intercepting the changed data record of the entity class marked with the custom annotation, and obtaining the monitored changed data record further comprises the following steps:
    当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据;When it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation;
    若发生变化的数据不是标注有自定义注解的实体类数据,不记录所述数据的变化。If the changed data is not the entity class data marked with a custom annotation, the change of the data is not recorded.
  6. 如权利要求2所述的自动记录字段变化方法,其特征在于,所述当监听到标注有自定义注解的实体类数据发生变化时,获取监听到的发生变化的数据记录,还包括如下步骤:The method for changing the automatic record field according to claim 2, wherein when the data of the entity class marked with the custom annotation is changed, the data record of the monitored change is obtained, and the following steps are further included:
    当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据;When it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation;
    若发生变化的数据不是标注有自定义注解的实体类数据,不记录所述数据的变化。If the changed data is not the entity class data marked with a custom annotation, the change of the data is not recorded.
  7. 如权利要求3所述的自动记录字段变化方法,其特征在于,所述当监听到标注有自定义注解的实体类数据发生变化时,获取监听到的发生变化的数据记录,还包括如下步骤:The method for changing the automatic record field according to claim 3, wherein when the data of the entity class marked with the custom annotation is changed, the data record of the monitored change is obtained, and the following steps are further included:
    当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据;When it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation;
    若发生变化的数据不是标注有自定义注解的实体类数据,不记录所述数据的变化。If the changed data is not the entity class data marked with a custom annotation, the change of the data is not recorded.
  8. 如权利要求4所述的自动记录字段变化方法,其特征在于,所述当监听到标注有自定义注解的实体类数据发生变化时,获取监听到的发生变化的数据记录,还包括如下步骤:The method for changing the automatic record field according to claim 4, wherein when the data of the entity class marked with the custom annotation is changed, the data record of the monitored change is obtained, and the following steps are further included:
    当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据;When it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation;
    若发生变化的数据不是标注有自定义注解的实体类数据,不记录 所述数据的变化。If the changed data is not the entity class data marked with a custom annotation, the change of the data is not recorded.
  9. 一种应用服务器,其特征在于,所述应用服务器包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的自动记录字段变化***,所述自动记录字段变化***被所述处理器执行时实现如下步骤:An application server, comprising: a memory, a processor, on the memory, an automatic record field change system operable on the processor, wherein the automatic record field change system is The processor implements the following steps when it executes:
    分析数据结构,在实体类字段标注自定义注解;Analyze the data structure and mark custom annotations in the entity class fields;
    监听字段数据操作;Listen for field data operations;
    当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;When the entity class field marked with a custom annotation changes, the data change record of the entity class field with the custom annotation is obtained.
    将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。The change record of the entity class field labeled with a custom annotation is converted into a user readable form.
  10. 如权利要求9所述的应用服务器,其特征在于,所述分析数据结构,在实体类字段标注自定义注解的步骤,具体为:The application server according to claim 9, wherein the analyzing the data structure, the step of labeling the custom annotation in the entity class field, specifically:
    通过在实体字段添加自定义注解@Loggable,注明所述字段需要记录变化历史;By adding a custom annotation @Loggable to the entity field, note that the field needs to record the change history;
    所述将所述数据修改记录转换成用户可读形式的步骤,具体为:The step of converting the data modification record into a user readable form is specifically:
    通过在实体类字段添加自定义注解@Readable,描述自身的可读形式。Describe your own readable form by adding a custom annotation @Readable to the entity class field.
  11. 如权利要求10所述的应用服务器,其特征在于,所述监听数据操作的步骤,具体包括如下步骤:The application server according to claim 10, wherein the step of listening to the data operation comprises the following steps:
    建立***;Establish a listener;
    通过***精确追踪对实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除;Tracking changes to entity fields, changes in entity association/cascade relationships, addition of entity fields, and deletion of entity fields through the listener;
    记录字段变化前的值以及变化后的值。Record the value before the field change and the changed value.
  12. 如权利要求11所述的应用服务器,其特征在于,所述将所 述数据修改记录转换成用户可读形式的步骤,具体为:The application server according to claim 11, wherein said step of converting said data modification record into a user readable form is specifically:
    通过在实体类字段添加自定义注解@Readable,描述自身的可读形式。Describe your own readable form by adding a custom annotation @Readable to the entity class field.
  13. 如权利要求9所述的应用服务器,其特征在于,所述当监听到标注有自定义注解的实体类数据发生变化时,获取监听到的发生变化的数据记录,还包括如下步骤:The application server according to claim 9, wherein when the data of the entity class marked with the custom annotation is changed, the data record of the monitored change is obtained, and the following steps are further included:
    当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据;When it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation;
    若发生变化的数据不是标注有自定义注解的实体类数据,不记录所述数据的变化。If the changed data is not the entity class data marked with a custom annotation, the change of the data is not recorded.
  14. 如权利要求10所述的应用服务器,其特征在于,所述当监听到标注有自定义注解的实体类数据发生变化时,获取监听到的发生变化的数据记录,还包括如下步骤:The application server according to claim 10, wherein when the data of the entity class marked with the custom annotation is changed, the data record of the monitored change is obtained, and the following steps are further included:
    当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据;When it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation;
    若发生变化的数据不是标注有自定义注解的实体类数据,不记录所述数据的变化。If the changed data is not the entity class data marked with a custom annotation, the change of the data is not recorded.
  15. 如权利要求11所述的应用服务器,其特征在于,所述当监听到标注有自定义注解的实体类数据发生变化时,获取监听到的发生变化的数据记录,还包括如下步骤:The application server according to claim 11, wherein when the data of the entity class marked with the custom annotation is changed, the data record of the monitored change is obtained, and the following steps are further included:
    当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据;When it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation;
    若发生变化的数据不是标注有自定义注解的实体类数据,不记录所述数据的变化。If the changed data is not the entity class data marked with a custom annotation, the change of the data is not recorded.
  16. 如权利要求12所述的应用服务器,其特征在于,所述当监 听到标注有自定义注解的实体类数据发生变化时,获取监听到的发生变化的数据记录,还包括如下步骤:The application server according to claim 12, wherein when the data of the entity class marked with the custom annotation is changed, the data record of the monitored change is obtained, and the following steps are further included:
    当监听到数据发生变化时,判断所述数据是否是标注有自定义注解的实体类数据;When it is detected that the data changes, it is determined whether the data is entity class data marked with a custom annotation;
    若发生变化的数据不是标注有自定义注解的实体类数据,不记录所述数据的变化。If the changed data is not the entity class data marked with a custom annotation, the change of the data is not recorded.
  17. 一种计算机可读存储介质,所述计算机可读存储介质存储有自动记录字段变化***,所述自动记录字段变化***可被至少一个处理器执行,以使所述至少一个处理器执行如下步骤:A computer readable storage medium storing an automatic record field change system, the automatic record field change system being executable by at least one processor to cause the at least one processor to perform the following steps:
    分析数据结构,在实体类字段标注自定义注解;Analyze the data structure and mark custom annotations in the entity class fields;
    监听字段数据操作;Listen for field data operations;
    当标注有自定义注解的实体类字段发生变化时,获取监听到的标注有自定义注解的实体类字段的数据变化记录;When the entity class field marked with a custom annotation changes, the data change record of the entity class field with the custom annotation is obtained.
    将所述标注有自定义注解的实体类字段的变化记录转换成用户可读形式。The change record of the entity class field labeled with a custom annotation is converted into a user readable form.
  18. 如权利要求17所述的计算机可读存储介质,其特征在于,所述分析数据结构,在实体类字段标注自定义注解的步骤,具体为:The computer readable storage medium according to claim 17, wherein the analyzing the data structure, the step of labeling the custom annotation in the entity class field, specifically:
    通过在实体字段添加自定义注解@Loggable,注明所述字段需要记录变化历史。By adding a custom annotation @Loggable to the entity field, note that the field needs to record the change history.
  19. 如权利要求18所述的计算机可读存储介质,其特征在于,所述监听数据操作的步骤,具体包括如下步骤:The computer readable storage medium according to claim 18, wherein the step of listening to the data operation comprises the following steps:
    建立***;Establish a listener;
    通过***精确追踪对实体字段修改、实体关联/级联关系的变更、实体字段增加、实体字段删除;Tracking changes to entity fields, changes in entity association/cascade relationships, addition of entity fields, and deletion of entity fields through the listener;
    记录字段变化前的值以及变化后的值。Record the value before the field change and the changed value.
  20. 如权利要求19所述的计算机可读存储介质,其特征在于,所述将所述数据修改记录转换成用户可读形式的步骤,具体为:The computer readable storage medium of claim 19, wherein the step of converting the data modification record into a user readable form is specifically:
    通过在实体类字段添加自定义注解@Readable,描述自身的可读形式。Describe your own readable form by adding a custom annotation @Readable to the entity class field.
PCT/CN2018/089723 2018-01-11 2018-06-03 Method for automatically recording field change, application server and computer-readable storage medium WO2019136914A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810026291.XA CN108415814B (en) 2018-01-11 2018-01-11 Method for automatically recording field change, application server and computer readable storage medium
CN201810026291.X 2018-01-11

Publications (1)

Publication Number Publication Date
WO2019136914A1 true WO2019136914A1 (en) 2019-07-18

Family

ID=63125527

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089723 WO2019136914A1 (en) 2018-01-11 2018-06-03 Method for automatically recording field change, application server and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN108415814B (en)
WO (1) WO2019136914A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112051985B (en) * 2020-07-23 2023-07-25 北京奇艺世纪科技有限公司 Event triggering method, device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102409A1 (en) * 2010-10-25 2012-04-26 At&T Intellectual Property I, L.P. Providing interactive services to enhance information presentation experiences using wireless technologies
CN104063409A (en) * 2013-04-11 2014-09-24 腾讯科技(深圳)有限公司 Field adding method and system of database
CN107193821A (en) * 2016-03-14 2017-09-22 阿里巴巴集团控股有限公司 Monitoring method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096623A (en) * 2009-12-14 2011-06-15 深圳速浪数字技术有限公司 Operation log generation method, server and business operational support system
CN102270225B (en) * 2011-06-28 2015-10-21 用友网络科技股份有限公司 Data change daily record method for supervising and data change daily record supervising device
CN105095056B (en) * 2015-08-14 2018-01-12 焦点科技股份有限公司 A kind of method of data warehouse data monitoring
CN107346277A (en) * 2017-06-29 2017-11-14 东软集团股份有限公司 Date storage method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102409A1 (en) * 2010-10-25 2012-04-26 At&T Intellectual Property I, L.P. Providing interactive services to enhance information presentation experiences using wireless technologies
CN104063409A (en) * 2013-04-11 2014-09-24 腾讯科技(深圳)有限公司 Field adding method and system of database
CN107193821A (en) * 2016-03-14 2017-09-22 阿里巴巴集团控股有限公司 Monitoring method and system

Also Published As

Publication number Publication date
CN108415814B (en) 2021-02-19
CN108415814A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
WO2019085471A1 (en) Database synchronization method, application server, and computer readable storage medium
WO2019062189A1 (en) Electronic device, method and system for conducting data table filing processing, and storage medium
US20160034273A1 (en) Attributing Authorship to Segments of Source Code
BR112012017294B1 (en) method, system and server for collecting software versions
WO2020019724A1 (en) Method for acquiring sensor data in server, acquisition system, and related apparatus
CN110069925B (en) Software monitoring method, system and computer readable storage medium
RU2586872C2 (en) Removal of corrupted styles from extensible markup language documents
WO2019095667A1 (en) Database data collection method, application server, and computer readable storage medium
WO2019095673A1 (en) Employee training enrollment method, application server, and computer readable storage medium
WO2019071968A1 (en) Salary calculation method, application server, and computer readable storage medium
CN113704790A (en) Abnormal log information summarizing method and computer equipment
CN112416957A (en) Data increment updating method and device based on data model layer and computer equipment
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
WO2019136914A1 (en) Method for automatically recording field change, application server and computer-readable storage medium
CN110008104A (en) A kind of management method of log information, system, equipment and storage medium
CN110717130A (en) Dotting method, dotting device, dotting terminal and storage medium
CN111626597A (en) Equipment alarm method, device, equipment and medium
CN113595762B (en) Network card configuration storage method and device
CN111324516A (en) Method and device for automatically recording abnormal event, storage medium and electronic equipment
CN114817134A (en) Snapshot task monitoring method, device, equipment and medium
CN111143302B (en) Method and device for tracking Office document content change
WO2019001321A1 (en) Yang model extension verification method, device, and computer readable storage medium
CN114416560A (en) Program crash analysis aggregation method and system
CN114356290A (en) Data processing method and device and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18899182

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1204A DATED 13.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18899182

Country of ref document: EP

Kind code of ref document: A1