CN105740131B - Software user behavior rollback processing method and device - Google Patents
Software user behavior rollback processing method and device Download PDFInfo
- Publication number
- CN105740131B CN105740131B CN201410746017.1A CN201410746017A CN105740131B CN 105740131 B CN105740131 B CN 105740131B CN 201410746017 A CN201410746017 A CN 201410746017A CN 105740131 B CN105740131 B CN 105740131B
- Authority
- CN
- China
- Prior art keywords
- user
- rollback
- operation behavior
- behavior
- inverse
- 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.)
- Active
Links
Images
Abstract
The invention discloses a software user behavior rollback processing method and device. The method comprises the following steps: identifying a user operation behavior event; and generating and storing an inverse operation behavior record corresponding to the user operation behavior, wherein the inverse operation behavior refers to an inverse database operation behavior corresponding to the user operation behavior. According to the method and the device, the corresponding inverse operation behavior record is generated for the user operation behavior of the user, and when the user needs to perform behavior rollback, corresponding database inverse operation is performed through the inverse operation behavior record, so that the data user behavior rollback work is completed. By adopting the invention, the problem that the user cannot realize rollback processing once the user submits (for example, saves) the operation transaction in the prior art can be solved.
Description
Technical Field
The invention relates to the technical field of computer software application, in particular to a software user behavior rollback processing method and device.
Background
The method is used for deleting some important data by a user due to own deleting operation behavior in the process of executing operation on computer software or executing specific application based on the software; or after a user performs behavior operations such as large-scale addition/deletion on a series of data, the user needs to abandon the operations and rollback the data to a certain time point, and after the behavior operation transactions are submitted, the user cannot realize automatic rollback processing of user behaviors through the prior art, so in this case, when the user wants to abandon the operations and rollback the data to a certain time point, the user needs to manually perform operation processing such as addition/deletion on the data again, which is time-consuming and labor-consuming.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present invention provide a method and an apparatus for processing software user behavior rollback.
The embodiment of the invention is realized by adopting the following technical scheme:
a software user behavior rollback processing method comprises the following steps:
identifying a user operation behavior event;
and generating and storing an inverse operation behavior record corresponding to the user operation behavior, wherein the inverse operation behavior refers to an inverse database operation behavior corresponding to the user operation behavior.
Preferably, before storing the reverse operation behavior record, the software user behavior rollback processing method further includes:
and setting a time stamp as an index for the inverse operation behavior record.
Further preferably, the software user behavior rollback processing method further includes:
identifying a user rollback operation event;
acquiring all records of reverse operation behaviors from a current time node to a rollback operation time node;
and executing all the inverse operation behaviors in a backspacing mode.
Further preferably, the software user behavior rollback processing method further includes:
and generating and storing a rollback reverse operation behavior record corresponding to the user rollback operation behavior.
A software user behavior rollback processing apparatus, comprising:
the first identification module is used for identifying a user operation behavior event;
the processing module is used for generating an inverse operation behavior record corresponding to the user operation behavior, wherein the inverse operation behavior refers to an inverse database operation behavior corresponding to the user operation behavior;
the storage module is used for storing the reverse operation behavior record to a rollback database;
and the rollback database is used for storing the reverse operation behavior record.
Preferably, the storage module stores the reverse operation behavior records in a rollback database with a corresponding timestamp as an index.
Further preferably, the software user behavior rollback processing device further includes:
the second identification module is used for identifying a user rollback operation event;
the acquisition module is used for acquiring all records of reverse operation behaviors from a current time node to a rollback operation time node;
and the backspacing execution module is used for backspacing and executing all the inverse operation behaviors.
Further preferably, the processing module is further configured to generate a rollback inverse operation behavior record corresponding to the rollback operation behavior of the user; the storage module is further used for storing the rollback operation reverse operation behavior record to a rollback database.
According to the method and the device, the corresponding inverse operation behavior record is generated for the user operation behavior of the user, and when the user needs to perform behavior rollback, corresponding database inverse operation is performed through the inverse operation behavior record, so that the data user behavior rollback work is completed. By adopting the invention, the problem that the user cannot realize rollback processing once the user submits (for example, saves) the operation transaction in the prior art can be solved.
Drawings
Fig. 1 is a schematic flow chart of a software user behavior rollback processing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a software user behavior rollback processing method according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a software user behavior rollback processing method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a software user behavior rollback processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a software user behavior rollback processing apparatus according to another embodiment of the present invention.
The object of the present invention, its functional characteristics and advantageous effects will be further described with reference to the following embodiments and drawings.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and can implement the present invention, but the embodiments are not limited to the present invention.
Referring to fig. 1, an embodiment of the present invention provides a software user behavior rollback processing method, including:
s10, identifying a user operation behavior event;
and S20, generating and storing an inverse operation behavior record corresponding to the user operation behavior, wherein the inverse operation behavior is an inverse database operation behavior corresponding to the user operation behavior.
In the step S10, the user operation behavior event includes, but is not limited to, an operation of adding, deleting, changing, etc. to the database by the user.
In step S20, the inverse operation behavior refers to an inverse database operation behavior corresponding to the user operation behavior, and if a user adds a certain data, the corresponding inverse operation behavior is to reduce the certain data; deleting a certain data by a user, wherein the corresponding inverse operation behavior is to add the corresponding certain data; if a user changes some data (where the change can be regarded as deleting first and then adding second), the corresponding inverse operation behavior is to delete the new data first and then add the old data.
Preferably, before storing the reverse operation behavior record, the software user behavior rollback processing method further includes:
and S30, setting a time stamp as an index for the reverse operation behavior record.
In this embodiment, the finally formed inverse operation behavior records are stored in a rollback database, and each of the inverse operation behavior records has a corresponding timestamp attribute, and each of the inverse operation behavior records uses a corresponding timestamp as an index.
For example, referring to table 1, a reverse operation behavior record table is maintained in the rollback database, and the timestamp and the operation serial number are used as the primary keys:
table 1:
in this embodiment, when the rollback function is enabled, a corresponding reverse operation behavior record is generated according to operations such as addition, deletion, and modification of a user at a client, where the reverse operation behavior record uses a time point when the user performs the user operation each time as an index, and uses id _ no to record a sequence in the whole operation process, and the id _ no is recorded in a small to large cumulative manner, so as to form the reverse operation behavior record in the whole operation behavior process.
Of course, in order to facilitate the user to quickly perform the rollback operation, a person skilled in the art may adopt other indexing manners besides using the timestamp as an index.
Further preferably, referring to fig. 2, in this embodiment, the software user behavior rollback processing method further includes:
s40, identifying a user rollback operation event;
s50, acquiring all records of reverse operation behaviors from the current time node to the rollback operation time node;
and S60, executing all the inverse operation behaviors in a rollback mode.
When a user performs a rollback operation, first a rollback operation event of the user is identified, in a specific embodiment, all inverse operation behavior record summaries between a current time node and a historical time node are also provided in advance, so that the user can conveniently perform a selecting operation of the rollback operation, wherein a time span from the current time node to the historical time node can be set by the user. Secondly, after the operation event of the user rollback is identified, all the inverse operation behavior records from the current time node to the rollback operation time node are obtained, and finally, all the inverse operation behaviors are executed according to the time sequence rollback.
Further preferably, as shown in fig. 3, the software user behavior rollback processing method further includes:
and S70, generating and storing a rollback reverse operation behavior record corresponding to the rollback operation behavior of the user.
Referring to fig. 4, an embodiment of the present invention further provides a software user behavior rollback processing apparatus, which includes:
the first identification module 10 is used for identifying a user operation behavior event;
a processing module 20, configured to generate an inverse operation behavior record corresponding to the user operation behavior, where the inverse operation behavior refers to an inverse database operation behavior corresponding to the user operation behavior;
a storage module 30, configured to store the reverse operation behavior record to a rollback database 40;
and the rollback database 40 is used for storing the reverse operation behavior record.
Preferably, the storage module 30 stores the reverse operation behavior records in the rollback database 40 with the corresponding timestamps as an index.
Further preferably, as shown in fig. 5, the software user behavior rollback processing apparatus further includes:
a second recognition module 50, configured to recognize a user rollback operation event;
an obtaining module 60, configured to obtain all records of inverse operation behaviors from a current time node to a rollback operation time node;
and a rollback executing module 70, configured to rollback and execute all the inverse operation behaviors.
Further preferably, the processing module 20 is further configured to generate a rollback inverse operation behavior record corresponding to the rollback operation behavior of the user; the storage module 30 is further configured to store the rollback operation inverse operation behavior record in a rollback database 40.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (4)
1. A software user behavior rollback processing method is characterized by comprising the following steps:
identifying a user operation behavior event, wherein the user operation behavior event comprises addition, deletion and change of a database by a user;
generating an inverse operation behavior record corresponding to the user operation behavior, setting a timestamp as an index for the inverse operation behavior record, and storing the inverse operation behavior record, wherein the inverse operation behavior refers to an inverse database operation behavior corresponding to the user operation behavior;
identifying a user rollback operation event;
acquiring all records of inverse operation behaviors from a current time node to a backspacing operation time node, wherein the time span from the current time node to a historical time node can be set by a user independently;
and executing all the inverse operation behaviors according to time sequence backspacing.
2. The software user behavior rollback processing method of claim 1, further comprising:
and generating and storing a rollback reverse operation behavior record corresponding to the user rollback operation behavior.
3. A software user behavior rollback processing apparatus, comprising:
the system comprises a first identification module, a second identification module and a third identification module, wherein the first identification module is used for identifying a user operation behavior event, and the user operation behavior event comprises addition, deletion and change of a database by a user;
the processing module is used for generating an inverse operation behavior record corresponding to the user operation behavior, wherein the inverse operation behavior refers to an inverse database operation behavior corresponding to the user operation behavior;
the storage module is used for storing the reverse operation behavior records in a rollback database by taking the corresponding time stamp as an index;
a rollback database for storing the reverse operation behavior record;
the second identification module is used for identifying a user rollback operation event;
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring all records of reverse operation behaviors from a current time node to a backspacing operation time node, and the time span from the current time node to a historical time node can be set by a user independently;
and the backspacing execution module is used for backspacing and executing all the inverse operation behaviors.
4. The software user behavior rollback processing apparatus of claim 3, wherein the processing module is further configured to generate a rollback inverse operational behavior record corresponding to the user rollback operational behavior; the storage module is further used for storing the rollback operation reverse operation behavior record to a rollback database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410746017.1A CN105740131B (en) | 2014-12-09 | 2014-12-09 | Software user behavior rollback processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410746017.1A CN105740131B (en) | 2014-12-09 | 2014-12-09 | Software user behavior rollback processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105740131A CN105740131A (en) | 2016-07-06 |
CN105740131B true CN105740131B (en) | 2020-09-25 |
Family
ID=56237133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410746017.1A Active CN105740131B (en) | 2014-12-09 | 2014-12-09 | Software user behavior rollback processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105740131B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107329854A (en) * | 2017-06-20 | 2017-11-07 | 算丰科技(北京)有限公司 | Operation repealing method and device, electronic equipment |
CN109597978A (en) * | 2018-11-02 | 2019-04-09 | 天津字节跳动科技有限公司 | Edit methods, device, storage medium and the electronic equipment of online electrical form |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043318A (en) * | 2007-03-19 | 2007-09-26 | 华为技术有限公司 | Method for synchronizing front-background data and apparatus thereof |
WO2011051098A1 (en) * | 2009-10-31 | 2011-05-05 | International Business Machines Corporation | Synchronizing database and non-database resources |
CN102142024A (en) * | 2010-02-01 | 2011-08-03 | 微软公司 | Logical data backup and rollback using incremental capture in a distributed database |
CN102067118B (en) * | 2008-03-14 | 2013-11-20 | Abb技术有限公司 | Method and device for storing data belonging to an alarm or event message containing multiple attributes |
CN103678532A (en) * | 2013-12-02 | 2014-03-26 | 中国移动(深圳)有限公司 | Alternation statement reverse analysis method, database alternating and backspacing method and database alternating and backspacing system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080040588A1 (en) * | 2004-11-12 | 2008-02-14 | Justsystems Corporation | Data Processing Device and Data Processing Method |
US9022279B2 (en) * | 2010-06-15 | 2015-05-05 | Apple Inc. | Method and system for locating an accessory and an application for use with a user device |
-
2014
- 2014-12-09 CN CN201410746017.1A patent/CN105740131B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043318A (en) * | 2007-03-19 | 2007-09-26 | 华为技术有限公司 | Method for synchronizing front-background data and apparatus thereof |
CN102067118B (en) * | 2008-03-14 | 2013-11-20 | Abb技术有限公司 | Method and device for storing data belonging to an alarm or event message containing multiple attributes |
WO2011051098A1 (en) * | 2009-10-31 | 2011-05-05 | International Business Machines Corporation | Synchronizing database and non-database resources |
CN102142024A (en) * | 2010-02-01 | 2011-08-03 | 微软公司 | Logical data backup and rollback using incremental capture in a distributed database |
CN103678532A (en) * | 2013-12-02 | 2014-03-26 | 中国移动(深圳)有限公司 | Alternation statement reverse analysis method, database alternating and backspacing method and database alternating and backspacing system |
Also Published As
Publication number | Publication date |
---|---|
CN105740131A (en) | 2016-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101013810B1 (en) | An excel-based management system for updating db tables and the method thereof | |
US8219582B2 (en) | System, method, and computer readable media for identifying a user-initiated log file record in a log file | |
JP2005532615A5 (en) | ||
CN103092997B (en) | For interlock inquiry system and the interlock querying method of statement analysis | |
CN104657387A (en) | Data query method and device | |
CN110806866A (en) | Generation method and device of front-end management system | |
CN104021219A (en) | Method and device for generating data template | |
CN105808775A (en) | Method and device for synchronizing layout file information into database | |
CN112434027A (en) | Indexing method and device for multi-dimensional data, computer equipment and storage medium | |
CN113434482A (en) | Data migration method and device, computer equipment and storage medium | |
CN104636401A (en) | Data rollback method and device for SCADA system | |
CN105740131B (en) | Software user behavior rollback processing method and device | |
CN104361032B (en) | A kind of method of operation log management | |
US11042516B2 (en) | Flexible schema table | |
CN104216977A (en) | Time series data search method and device | |
US11429660B2 (en) | Photo processing method, device and computer equipment | |
CN110659295B (en) | Method, apparatus and medium for recording valid data based on HAWQ | |
CN103092955B (en) | Checkpointed method, Apparatus and system | |
CN109063215B (en) | Data retrieval method and device | |
CN113127490B (en) | Key name generation method and device and computer readable storage medium | |
CN106372121B (en) | Server and data processing method | |
RU2515565C1 (en) | Method of updating structured data in relational database management system | |
CN105893445A (en) | Data processing method, server and terminal device | |
WO2020018223A1 (en) | Binding query scope to directory attributes | |
CN104239475A (en) | Method and device for analyzing time series data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518000 Guangdong province Shenzhen city streets Nanshan District Keyuan Guangdong Road No. 3099 building six layer storage Applicant after: SHENZHEN ZNV TECHNOLOGY Co.,Ltd. Address before: 518057 Nanshan District science and technology zone, Guangdong, Zhejiang Province, South Road, building W1-A, the first floor of the building, building two Applicant before: Shenzhen Zhongxing Liwei Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |