CN102662995A - Method for quickly positioning data updating of mobile phone applications - Google Patents

Method for quickly positioning data updating of mobile phone applications Download PDF

Info

Publication number
CN102662995A
CN102662995A CN2012100677588A CN201210067758A CN102662995A CN 102662995 A CN102662995 A CN 102662995A CN 2012100677588 A CN2012100677588 A CN 2012100677588A CN 201210067758 A CN201210067758 A CN 201210067758A CN 102662995 A CN102662995 A CN 102662995A
Authority
CN
China
Prior art keywords
data
monitoring
state
record
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012100677588A
Other languages
Chinese (zh)
Other versions
CN102662995B (en
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.)
Borqs Beijing Ltd.
Original Assignee
Beijing Borqs Software Technology 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 Beijing Borqs Software Technology Co Ltd filed Critical Beijing Borqs Software Technology Co Ltd
Priority to CN201210067758.8A priority Critical patent/CN102662995B/en
Publication of CN102662995A publication Critical patent/CN102662995A/en
Application granted granted Critical
Publication of CN102662995B publication Critical patent/CN102662995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

A method for quickly positioning data updating of mobile phone applications includes the steps of selecting data sheets to be monitored and fields to be monitored, creating a base sheet, and determining the data sheets whose data is updated; comparing the status of the updated data sheets with the status of data recorded on the base sheet, and determining data updating records; and recording the data updating to a database. By the method, data updating can be monitored in real time to determine data which is updated, and notification on necessary applications can be issued.

Description

A kind of quick locating cellphone application data method for updating
Technical field
The present invention relates to database technical field, relate in particular to the localization method that data of database is upgraded.
Background technology
In the prior art, find that the means that the smart mobile phone application data is upgraded mainly contain: the Trigger mechanism of Observer Pattern (android Observer) and application data base table.
Observer Pattern is called issue-subscription (Publish/Subscribe) pattern, model-view (Model/View) pattern, source-audiomonitor (Source/Listener) pattern or subordinate (Dependents) pattern again.Observer Pattern has defined a kind of dependence of one-to-many, lets a plurality of observer's objects monitor some subject simultaneously.When this subject changes, can notify all observer's objects on state, make them can upgrade oneself automatically.
The Trigger mechanism of application data base table, it closely links to each other with table, sets up the part of visual tabulation based on table.It can not be called by explicit, and after the user created trigger, when the data in the table were inserted, deleted or revise, trigger is operation automatically.Trigger mechanism can make a plurality of different users keeping the operation of making amendment under data integrity and the conforming good environment.
Above-mentioned Observer Pattern can only monitor the table level, that is to say, can only confirm that through Observer variation has taken place which table, can not navigate to which bar record variation has taken place.Trigger mechanism excites treatment S QL operation when the variation that monitors record, application processing function is skipped in the variation of data recording, makes the user to do further processing to using the record variation.
Summary of the invention
In order to solve the deficiency that prior art exists, the object of the present invention is to provide a kind of quick locating cellphone application data method for updating, for wanting the data monitored table; At first create the state before base table upgrades with record data; Utilize Observer Pattern (android Observer) then when Data Update, confirm to take place the Data Update tables of data, the state and the base table data recorded state of the tables of data after comparison is upgraded; Find out both inconsistent records, the record that specified data is upgraded.
To achieve these goals, a kind of data fast classification method provided by the invention may further comprise the steps:
1) selection needs the field of data monitored table and needs monitoring, creates base table, utilizes Observer Pattern then, when Data Update, confirms to take place the Data Update tables of data;
The state and the base table data recorded state of the tables of data after 2) comparison is upgraded are found out both inconsistent records, the record that specified data is upgraded;
3) the above-mentioned Data Update of record records database.
Other features and advantages of the present invention will be set forth in instructions subsequently, and, partly from instructions, become obvious, perhaps understand through embodiment of the present invention.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, and with content of the present invention and embodiment, is used to explain the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is according to quick locating cellphone application data method for updating process flow diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that embodiment described herein only is used for explanation and explains the present invention, and be not used in qualification the present invention.
Method of the present invention, for wanting the data monitored table, the record original state is monitored application data based on Observer Pattern (android Observer), and when data variation, variation has taken place in which tables of data that can be determined to which application; Then, tables of data state and original state after relatively changing are found out variation, confirm that variation has taken place which bar record.
Fig. 1 is according to quick locating cellphone application data method for updating process flow diagram of the present invention, below with reference to Fig. 1, quick locating cellphone application data method for updating of the present invention is described in detail:
At first, in step 101, selection will be monitored the tables of data and the field that needs monitoring at application data place, and finds out and can indicate the field that needs the monitoring field whether to change.These field values that can indicate Monitoring Data whether to change are linked to be character string, and the cryptographic hash of calculating character string, according to these cryptographic hash, be recorded as the original state of Monitoring Data table, create base table; The main field of base table comprises: " _ id " (Monitoring Data table sign), and " state_value " (state value), " uri " (indication data monitored table), " recordId " (corresponding in the data monitored table _ id).State value is the cryptographic hash of calculating according to the monitoring field of Monitoring Data table.Here the field of selecting data monitored table and monitoring is to select according to user's needs, scanning data monitored table record original state;
In step 102, when android Observer monitors Data Update,, contrast the original state of base table according to " uri " specified data data updated table, find out the physical record of data variation.
The method of two tables of contrast is: at first utilize " uri " press order that " recordId " successively decrease from base table taking-up data D1, utilize order that uri successively decreases by " _ id " from the data updated table D2 that fetches data.Then, get D1 successively, the D2 record compares.
If a) D1 " recordId " is greater than D2 " _ id ", explain that the record that " _ id " in the corresponding Monitoring Data table of D2 equals " recordId " deletes.Get next bar record of D1, the D2 record is constant, compares next time.As shown in table 1, recordId>_ id, delete _ id=6.
Table 1: data deletion
(D1)recordId (D2) _id
9 9
8 8
6 ?
5 5
4 4
B) if D1 " recordId " less than D2 " _ id ", explains that this record in the corresponding Monitoring Data table of D2 is the new record that adds.Get next bar record of D2, the D1 record is constant, compares next time.As shown in table 2, recordId < _ id, interpolation _ id=9.
Table 2: data are added
(D1)recordId (D2) _id
? 9
8 8
6 6
5 5
4 4
C) if D1 " recordId " equals D2 " _ id "; Then calculate the corresponding cryptographic hash of field of the monitoring of data monitored table; And with base table in corresponding " state_value " compare, if two values are identical, the expression data are not upgraded; If different, explain that this record in the corresponding Monitoring Data table of D2 has upgraded.Get D1, next bar record of D2, compare next time.As shown in table 3, in corresponding cryptographic hash not simultaneously, Data Update is arranged.
Table 3: Data Update
(D1)recordId (D2) _id
9 9
8 8
6 6
5 5
4 4
D) if there is not record among the D1, also have record among the D2, explain that these records all are new the interpolations among the D2.As shown in table 4, there is not record among the D1, also have record among the D2, these corresponding data are new interpolations in the Monitoring Data table.
Table 4:
(D1)recordId (D2) _id
? 5
? 4
? 3
? 2
  1
E), also have record among the D1, explain among the D2 if there is not record among the D2 " _ id " equal " recordId " these records all deleted.As shown in table 5, there is not record among the D2, also have record among the D1, these corresponding in Monitoring Data table data have all been deleted.
Table 5:
(D1)recordId (D2) _id
9 ?
8 ?
6 ?
5 ?
4  
In step 103, write down the database that records of above-mentioned variation, supply other to use and use.
At present, on smart mobile phone, there is plurality of applications that the variation of some data of other application extremely is concerned about, hopes to obtain the change information of these application.Such as, handset dialing need be known the variation of address book data, so that through the address list dialing, need know the variation of short message, knows that which contact person gets in touch often, so that the user finds these contact persons the most easily.Search need be known the variation of each application data for another example, so that existing information is arrived in user search, search less than non-existent information, or the like.But the current means of other application change of finding also are nowhere near, and adopt quick locating cellphone application data method for updating of the present invention, and Monitoring Data is upgraded in real time, confirm data updated takes place, and the application of notice needs.
One of ordinary skill in the art will appreciate that: the above is merely the preferred embodiments of the present invention; Be not limited to the present invention; Although the present invention has been carried out detailed explanation with reference to previous embodiment; For a person skilled in the art, it still can be made amendment to the technical scheme of aforementioned each embodiment record, perhaps part technical characterictic wherein is equal to replacement.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. quick locating cellphone application data method for updating may further comprise the steps:
1) field of selection Monitoring Data table and monitoring is created base table, and confirms to take place the tables of data of Data Update;
2) state and the base table data recorded state of the tables of data after will upgrading compare, the record that specified data is upgraded;
3) the above-mentioned Data Update of record records database.
2. quick locating cellphone application data method for updating according to claim 1 is characterized in that, the field of selecting in the said step 1) to detect comprises: Monitoring Data table sign " _ id "; State value " state_value ", indication Monitoring Data table " uri " and corresponding in the Monitoring Data table _ id " recordId ".
3. quick locating cellphone application data method for updating according to claim 1; It is characterized in that; The tables of data of confirming the generation Data Update in the said step 1) is when utilizing Observer Pattern to monitor Data Update; According to the identifier that needs the data monitored table, specified data data updated table.
4. quick locating cellphone application data method for updating according to claim 2 is characterized in that, said state value " state_value " is the cryptographic hash of calculating according to the monitoring field of Monitoring Data table.
5. quick locating cellphone application data method for updating according to claim 1; It is characterized in that; Said step 2) is to utilize " uri " press data that order that " recordId " successively decrease takes out from base table and utilization " uri " to press order that " _ id " successively decrease data, compares successively from the taking-up of data updated table.
CN201210067758.8A 2012-03-15 2012-03-15 A kind of method that quick position mobile phone application data upgrades Active CN102662995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210067758.8A CN102662995B (en) 2012-03-15 2012-03-15 A kind of method that quick position mobile phone application data upgrades

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210067758.8A CN102662995B (en) 2012-03-15 2012-03-15 A kind of method that quick position mobile phone application data upgrades

Publications (2)

Publication Number Publication Date
CN102662995A true CN102662995A (en) 2012-09-12
CN102662995B CN102662995B (en) 2015-09-30

Family

ID=46772486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210067758.8A Active CN102662995B (en) 2012-03-15 2012-03-15 A kind of method that quick position mobile phone application data upgrades

Country Status (1)

Country Link
CN (1) CN102662995B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539520A (en) * 2014-12-27 2015-04-22 宁波江东远通计算机有限公司 Message sending management method and device
CN106850307A (en) * 2017-02-21 2017-06-13 青岛海信移动通信技术股份有限公司 A kind of attribute information processing method and processing device
CN107368513A (en) * 2017-04-25 2017-11-21 阿里巴巴集团控股有限公司 The method and device of client database renewal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1673972A (en) * 2004-08-04 2005-09-28 上海宝信软件股份有限公司 Dynamic monitoring system and method for data base list update
CN101192214A (en) * 2006-11-27 2008-06-04 中兴通讯股份有限公司 Processing method for EMS memory data-base content variation real time notification task
CN101202934A (en) * 2006-12-13 2008-06-18 中兴通讯股份有限公司 Device for processing internal storage data base content variety real-time informing business
CN102053982A (en) * 2009-11-02 2011-05-11 阿里巴巴集团控股有限公司 Method and equipment for managing database information
CN102073824A (en) * 2011-01-12 2011-05-25 深圳昂楷科技有限公司 Method for generating and updating unique identifier of encrypted document
CN102289433A (en) * 2010-06-18 2011-12-21 中兴通讯股份有限公司 Method and device for realizing function of database trigger

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1673972A (en) * 2004-08-04 2005-09-28 上海宝信软件股份有限公司 Dynamic monitoring system and method for data base list update
CN101192214A (en) * 2006-11-27 2008-06-04 中兴通讯股份有限公司 Processing method for EMS memory data-base content variation real time notification task
CN101202934A (en) * 2006-12-13 2008-06-18 中兴通讯股份有限公司 Device for processing internal storage data base content variety real-time informing business
CN102053982A (en) * 2009-11-02 2011-05-11 阿里巴巴集团控股有限公司 Method and equipment for managing database information
CN102289433A (en) * 2010-06-18 2011-12-21 中兴通讯股份有限公司 Method and device for realizing function of database trigger
CN102073824A (en) * 2011-01-12 2011-05-25 深圳昂楷科技有限公司 Method for generating and updating unique identifier of encrypted document

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539520A (en) * 2014-12-27 2015-04-22 宁波江东远通计算机有限公司 Message sending management method and device
CN106850307A (en) * 2017-02-21 2017-06-13 青岛海信移动通信技术股份有限公司 A kind of attribute information processing method and processing device
CN106850307B (en) * 2017-02-21 2020-07-07 青岛海信移动通信技术股份有限公司 Attribute information processing method and device
CN107368513A (en) * 2017-04-25 2017-11-21 阿里巴巴集团控股有限公司 The method and device of client database renewal
CN107368513B (en) * 2017-04-25 2020-08-14 阿里巴巴集团控股有限公司 Method and device for updating client database

Also Published As

Publication number Publication date
CN102662995B (en) 2015-09-30

Similar Documents

Publication Publication Date Title
JP6419319B2 (en) Synchronize shared folders and files
CN106325933B (en) Batch data synchronous method and device
CN107977396B (en) Method and device for updating data table of KeyValue database
TWI512491B (en) Data synchronization methods for synchronizing data in communication systems and communication systems
CN107688664B (en) Chart generation method and device, computer equipment and storage medium
CN109064031B (en) Project affiliate credit evaluation method based on block chain, block chain and storage medium
US9864736B2 (en) Information processing apparatus, control method, and recording medium
US20110264692A1 (en) System for searching property listings based on location
EP2472417A1 (en) Method and device for accessing file resources
DE602007007820D1 (en) METHOD AND DEVICE FOR DEBATING THE STORAGE OF USER DATA IN DIGITAL CELLULAR 3G TELECOMMUNICATIONS SYSTEMS
US10650085B2 (en) Providing interactive preview of content within communication
JP2009104229A (en) Input check device and input check method
TW201342095A (en) Information processing system, method for controlling information processing system, program, and information recording medium
CN106537388A (en) Partitioning a database
US20120078971A1 (en) Data management method
CN111782728A (en) Data synchronization method, device, electronic equipment and medium
CN102662995A (en) Method for quickly positioning data updating of mobile phone applications
CN113301203B (en) Method and device for updating historical information data based on address book
KR101588375B1 (en) Method and system for managing database
CN104077053B (en) Terminal information operating method and device and mobile terminal
EP3671459B1 (en) Method and apparatus for generating log data having increased filterability
CN106855804B (en) Code change management and control method and device
CN103870603A (en) Directory management method and electronic device
CN104239307A (en) User information storage method and system
CN111953722B (en) Synchronization method and device for terminal address book

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: BORQS COMMUNICATION TECHNOLOGY (BEIJING) CO., LTD.

Free format text: FORMER OWNER: BEIJING BORQS SOFTWARE TECHNOLOGY CO., LTD.

Effective date: 20131203

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100102 CHAOYANG, BEIJING TO: 100015 CHAOYANG, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20131203

Address after: 100015, B23A, Hengtong business garden, No. 10, Jiuxianqiao Road, Beijing, Chaoyang District

Applicant after: Borqs Beijing Ltd.

Address before: 100102 D building, building 9, South Central Road, Chaoyang District, Wangjing, Beijing, Wangjing

Applicant before: Beijing Borqs Software Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant