CN103186564A - Data object processing method and system - Google Patents

Data object processing method and system Download PDF

Info

Publication number
CN103186564A
CN103186564A CN2011104487605A CN201110448760A CN103186564A CN 103186564 A CN103186564 A CN 103186564A CN 2011104487605 A CN2011104487605 A CN 2011104487605A CN 201110448760 A CN201110448760 A CN 201110448760A CN 103186564 A CN103186564 A CN 103186564A
Authority
CN
China
Prior art keywords
data
data object
medium
transaction
medium object
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.)
Pending
Application number
CN2011104487605A
Other languages
Chinese (zh)
Inventor
蒋建波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kingdee Middleware Co ltd
Original Assignee
Shenzhen Kingdee Middleware Co ltd
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 Shenzhen Kingdee Middleware Co ltd filed Critical Shenzhen Kingdee Middleware Co ltd
Priority to CN2011104487605A priority Critical patent/CN103186564A/en
Publication of CN103186564A publication Critical patent/CN103186564A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a data object processing method and a data object processing system. The method comprises the following steps of: creating a transaction object associated with a data object and an intermediate object, and associating the intermediate object and the transaction object; transferring the operation on the data object to the intermediate object, and recording the change data generated by performing the operation on the intermediate object; and calling the committing operation of the transaction object, and assigning the change data to the data object. By the data object processing method and the data object processing system, the operation of the data object is transferred to the intermediate object, and then the recorded change data is updated to the data object by calling the committing operation of the transaction object, so that only the change data of the data object is updated, the data volume is reduced, the operation is simple, the operation on the data object is buffered by the intermediate object, and the atomicity, the consistency, the isolation and the continuity of the transaction operation performed on the data object are ensured.

Description

The disposal route of data object and system
[technical field]
The present invention relates to data processing field, particularly a kind of disposal route of data object and system.
[background technology]
Affairs refer to the set of one group of instruction, if wherein failure is carried out in any instruction, all operations all can return back to affairs and begin state before.Affairs are base units of concurrent control and recovery.Affairs have four attributes: atomicity, consistance, isolation and continuation.Atomicity (atomicity) refers to that affairs are indivisible work units, the instruction that comprises in the affairs and operation or all do, or do not do.Consistance (consistency) refers to that affairs must be to make database change to another coherency state from a coherency state.Wherein, consistance and atomicity are closely-related, also namely mean not have intermediateness.Isolation (isolation) refers to that the execution of affairs can not be disturbed by other affairs, namely the data of the operation of an affairs inside and use are isolated other concurrent affairs, can not interfere with each other between each affairs of concurrent execution, that is to say the data in the affairs internal modification, before the affairs normal termination, the outside is the change that is not aware of data.Persistence (durability) also claims permanent (permanence), refers to affairs in case submit to, and it just should be nonvolatil to the change of data in the database, and ensuing other operations or fault should not have any influence to it.
In order to realize the transaction operation of data object, traditional method of operating is that preservation-restoring method, modification-abandon method and exchange process are arranged.Wherein, preservation-restoring method refers to use extra variable to preserve the data of required protection, when generation is unusual, the data of these preservations is recovered again; Revise-method of abandoning refers to after the data object modification, if generation is then directly abandoned unusually; Exchange process refers to data object replication be gone out copy, and copy is carried out various operations when revising data object, during normal termination, with copy directly and the place-exchange of data object, then copy is abandoned unusually if take place.Yet, realizing in preceding two kinds of methods that transaction operation does not possess four attributes of affairs, exchange process need be safeguarded complicated data relationship, complicated operation.
[summary of the invention]
Based on this, be necessary to provide a kind of disposal route of data object simple to operate.
A kind of disposal route of data object may further comprise the steps:
The transaction object that is associated with data object and the medium object created, and related described medium object and described transaction object;
To arrive described medium object to the transition of operation of described data object, and record carries out the change data that described operation produces to described medium object;
Call the submit operation of described transaction object, give described data object with described change data.
Preferably, the step of described related medium object and described transaction object is: described medium object is registered in the described transaction object.
Preferably, also comprise step: obtain the read operation to described data object, directly read described data object.
Preferably, described will be to the transition of operation of described data object to described medium object, and record comprises the step that described medium object carries out the change data that described operation produces:
To transfer to described medium object to the write operation of described data object, and record carries out the change data that write operation produces to described medium object.
Preferably, also comprise step:
After giving described data object with described change data, destroy described medium object;
When to described medium object operation exception, then destroy described transaction object and the medium object related with described transaction object.
In addition, also be necessary to provide a kind of disposal route of data object simple to operate.
A kind of disposal system of data object comprises:
Make up module, be used for the transaction object that is associated with data object and the medium object of establishment, and related described medium object and described transaction object;
Processing module is used for and will arrives described medium object to the transition of operation of described data object, and record is carried out the change data that described operation produces to described medium object;
Update module for the submit operation that calls described transaction object, is given described data object with described change data.
Preferably, described structure module also is used for described medium object is registered to described transaction object.
Preferably, described processing module also is used for obtaining the read operation to described data object, directly reads described data object.
Preferably, described processing module also is used for and will transfers to described medium object to the write operation of described data object, and record carries out the change data that write operation produces to described medium object.
Preferably, also comprise the destruction module, described destruction module is used for destroying described medium object after giving described data object with described change data, and also be used for when to described medium object operation exception, then destroying described transaction object and reaching the medium object related with described transaction object.
The disposal route of above-mentioned data object and system, adopt and create transaction object and the medium object that is associated with data object, medium object is related with transaction object, to arrive medium object to the transition of operation of data object, and then call the submit operation of transaction object, with the record the change Data Update in data object, so, only will change data to the data object upgrades, reduced data volume, simple to operate, and by using medium object to cushion operation to the data object, guaranteed that the transaction operation that the data object carries out has been possessed atomicity, consistance, isolation and continuation.
[description of drawings]
Fig. 1 is the process flow diagram of the disposal route of data object among the embodiment;
Fig. 2 is the structural representation of the disposal system of data object among the embodiment;
Fig. 3 is the structural representation of the disposal system of data object among another embodiment.
[embodiment]
Disposal route and system to the data object is described in detail below in conjunction with specific embodiment and accompanying drawing, so that its purpose and technical scheme are clearer.
As shown in Figure 1, in one embodiment, a kind of disposal route of data object may further comprise the steps:
Step S10 creates the transaction object and the medium object that are associated with data object, and related medium object and transaction object.
In the present embodiment, data object can be the internal data in the internal memory.Affairs are the operation to the data object, obtain the transaction operation to the data object, namely create a transaction object (Transaction), and simultaneously, the data object (TransObject example) that is retrieved as action required is created related medium object (Modifier.Then, this medium object is related with this transaction object.Wherein, transaction object is used for the life cycle of control and management transaction, can preserve the interface reference of relevant medium object, and transaction object support nest relation each other.Medium object is identical with the external interface of data object, and data content is identical, and medium object is responsible for tackling and acting on behalf of all to the read-write operation of data object.In one embodiment, medium object is related with transaction object step is: medium object is registered in this transaction object.
Step S20 will arrive medium object to the transition of operation of data object, and record carries out the change data that this operation produces to middle object.
In the present embodiment, all operations to the data object can be transferred to the medium object related with this data object and operated, medium object cushions all operations, the change data that record produces because of operation.In addition, repeated execution of steps S20 is till all operations to the data object are all finished.
Further, in one embodiment, obtain the read operation to the data object, then directly read this data object.In addition, also can read medium object.
Further, in one embodiment, will transfer to this medium object to the write operation of data object, and record carries out the change data that write operation produces to this medium object.This write operation is to the retouching operation of data object, increases operation or deletion action etc.
Step S30 calls the submit operation of this transaction object, should change data and give data object.
In the present embodiment, call the submit operation of transaction object, namely transaction object calls application (doApply) operation successively with relevant medium object, and the change data that middle Object Operations is produced of record are composed data object to association.Call finish after, medium object is destroyed.
Further, in one embodiment, the disposal route of above-mentioned data object also comprises step: when to this medium object operation exception, then destroy this transaction object and the medium object related with this transaction object.When unusual to middle Object Operations, mistake namely appears, then destroy transaction object and related medium object thereof.
Please join shown in Figure 2ly, in one embodiment, a kind of disposal system of data object comprises making up module 10, processing module 20 and update module 30.
Make up module 10 and be used for creating transaction object and the medium object that is associated with data object, and this medium object is related with this transaction object.In the present embodiment, data object can be the internal data in the internal memory.Affairs are the operation to the data object, structure module 10 is obtained the transaction operation to the data object, namely create a transaction object (Transaction), simultaneously, the data object (TransObject example) that is retrieved as action required is created related medium object (Modifier).Then, this medium object is related with this transaction object.Wherein, transaction object is used for the life cycle of control and management transaction, can preserve the interface reference of relevant medium object, and transaction object support nest relation each other.Medium object is identical with the external interface of data object, and data content is identical, and medium object is responsible for tackling and acting on behalf of all to the read-write operation of data object.
In one embodiment, making up module 10 also is used for medium object is registered to this transaction object.
Processing module 20 is used for and will the transition of operation of this data object be arrived this medium object, and record is operated the change data that produce to this medium object.In the present embodiment, all operations to the data object can be transferred to the medium object related with this data object and operated, medium object cushions all operations, the change data that record produces because of operation.In addition, processing module 20 repeats, till all operations to the data object are all finished.
Further, in one embodiment, processing module 20 also is used for obtaining the read operation to the data object, then directly reads this data object.In addition, also can read medium object.
Further, in one embodiment, processing module 20 also is used for obtaining the write operation to the data object, this write operation is transferred to this medium object is carried out write operation, and record is to the change data of this medium object operation generation.This write operation is to the retouching operation of data object, increases operation or deletion action etc.
Update module 30 is used for calling the submit operation of this transaction object, gives described data object with described change data.In the present embodiment, call the submit operation of transaction object, namely transaction object calls application (doApply) operation successively with relevant medium object, and the change data that middle Object Operations is produced of record are composed data object to association.
Further, in one embodiment, join shown in Figure 3ly, the disposal system of above-mentioned data object also comprises and destroys module 40.Destroying module 40 is used for destroying this medium object, and also for when to this medium object operation exception, then destroying this transaction object and reach the medium object related with this transaction object after should changing data and giving this data object.When unusual to middle Object Operations, mistake namely appears, then destroy transaction object and related medium object thereof.
The disposal route of above-mentioned data object and system can preserve one group of medium object in transaction object, realize that medium object revises the unified of data object, can support multistage subtransaction.
The disposal route of above-mentioned data object and system, adopt and create transaction object and the medium object that is associated with data object, and it is medium object is related with transaction object, to arrive medium object to the transition of operation of data object, and then call the submit operation of transaction object, with the record the change Data Update in the data object related with medium object, so, only will change data to the data object upgrades, reduced data volume, simple to operate, and by using medium object to cushion operation to the data object, guaranteed that the transaction operation that the data object carries out has been possessed atomicity, consistance, isolation and continuation.
In addition, adopt when unusual, return to state before the operation, guaranteed that further the transaction operation that the data object carries out has been possessed atomicity, consistance, isolation and continuation.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. the disposal route of a data object may further comprise the steps:
The transaction object that is associated with data object and the medium object created, and related described medium object and described transaction object;
To arrive described medium object to the transition of operation of described data object, and record carries out the change data that described operation produces to described medium object;
Call the submit operation of described transaction object, give described data object with described change data.
2. the disposal route of data object according to claim 1 is characterized in that, the step of the described medium object of described association and described transaction object is: described medium object is registered in the described transaction object.
3. the disposal route of data object according to claim 1 is characterized in that, also comprises step: obtain the read operation to described data object, directly read described data object.
4. the disposal route of data object according to claim 1 is characterized in that, described will be to the transition of operation of described data object to described medium object, and record comprises the step that described medium object carries out the change data that described operation produces:
To transfer to described medium object the write operation of described data object, and record carries out the change data that write operation produces to described medium object.
5. the disposal route of data object according to claim 1 is characterized in that, also comprises step:
After giving described data object with described change data, destroy described medium object;
When to described medium object operation exception, then destroy described transaction object and the medium object related with described transaction object.
6. the disposal system of a data object is characterized in that, comprising:
Make up module, be used for the transaction object that is associated with data object and the medium object of establishment, and related described medium object and described transaction object;
Processing module is used for and will arrives described medium object to the transition of operation of described data object, and record is carried out the change data that described operation produces to described medium object;
Update module, the submit operation for calling described transaction object will record described change data and give described data object.
7. the disposal system of data object according to claim 6 is characterized in that, described structure module also is used for described medium object is registered to described transaction object.
8. the disposal system of data object according to claim 6 is characterized in that, described processing module also is used for obtaining the read operation to described data object, directly reads described data object.
9. the disposal system of data object according to claim 6, it is characterized in that, described processing module also is used for and will transfers to described medium object to the write operation of described data object, and record carries out the change data that write operation produces to described medium object.
10. the disposal system of data object according to claim 6, it is characterized in that, also comprise the destruction module, described destruction module is used for after giving described data object with described change data, destroy described medium object, and also be used for when to described medium object operation exception, then destroying described transaction object and reaching the medium object related with described transaction object.
CN2011104487605A 2011-12-28 2011-12-28 Data object processing method and system Pending CN103186564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104487605A CN103186564A (en) 2011-12-28 2011-12-28 Data object processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104487605A CN103186564A (en) 2011-12-28 2011-12-28 Data object processing method and system

Publications (1)

Publication Number Publication Date
CN103186564A true CN103186564A (en) 2013-07-03

Family

ID=48677733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104487605A Pending CN103186564A (en) 2011-12-28 2011-12-28 Data object processing method and system

Country Status (1)

Country Link
CN (1) CN103186564A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004040399A2 (en) * 2002-10-28 2004-05-13 Jgr Acquisition, Inc. Transparent ejb support and horizontal data partitioning
CN1652111A (en) * 2005-02-24 2005-08-10 中兴通讯股份有限公司 Method for implementing realtime database routine operation
CN1858745A (en) * 2006-04-05 2006-11-08 华为技术有限公司 Processing method for realizing consistency of internal storage data and data bank data service
CN101563684A (en) * 2005-08-08 2009-10-21 微软公司 Unified storage security model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004040399A2 (en) * 2002-10-28 2004-05-13 Jgr Acquisition, Inc. Transparent ejb support and horizontal data partitioning
CN1652111A (en) * 2005-02-24 2005-08-10 中兴通讯股份有限公司 Method for implementing realtime database routine operation
CN101563684A (en) * 2005-08-08 2009-10-21 微软公司 Unified storage security model
CN1858745A (en) * 2006-04-05 2006-11-08 华为技术有限公司 Processing method for realizing consistency of internal storage data and data bank data service

Similar Documents

Publication Publication Date Title
CN100440155C (en) Method and apparatus for creating a virtual data copy
CN105868343B (en) Database migration method and system
US7730099B2 (en) Storage and retrieval of richly typed hierarchical network models
US8001091B2 (en) Apparatus, system, and method for hierarchical rollback of business operations
CN101089857A (en) Internal store data base transaction method and system
CN102103642B (en) Data-erasure method based on OLTP, system and graphic data base server
CN105302575A (en) Foundational development framework
CN107273440A (en) Computer application, date storage method, micro services and microdata storehouse
CN102541691B (en) Log check point recovery method applied to memory data base OLTP (online transaction processing)
JP2007272648A (en) Database system operating method, database system, database device and backup program
CN114925084B (en) Distributed transaction processing method, system, equipment and readable storage medium
CN103823708B (en) The method and apparatus that virtual machine read-write requests are processed
CN107977446A (en) A kind of memory grid data load method based on data partition
CN104937564B (en) The data flushing of group form
CN105447051A (en) Database operation method and device
CN105574026A (en) Method and device for service supporting by using non-relational database
CN104268097A (en) Metadata processing method and system
CN100369038C (en) Method for implementing realtime database routine operation
CN104142943A (en) Database expansion method and database
CN101794217B (en) Method and system for implementing interaction between application and extended module of document library system
CN103186564A (en) Data object processing method and system
CN111429140A (en) Method and device for realizing atomicity of multi-level intelligent contract stack
CN111026783A (en) Anti-jamming data storage method, system and device
CN102163164A (en) Processing method and processor for critical data in shared memory
CN107844387A (en) A kind of conventional data backup method, system and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130703

RJ01 Rejection of invention patent application after publication