CN104298757B - A kind of method and system of compatible multi version mobile client and database - Google Patents
A kind of method and system of compatible multi version mobile client and database Download PDFInfo
- Publication number
- CN104298757B CN104298757B CN201410566541.0A CN201410566541A CN104298757B CN 104298757 B CN104298757 B CN 104298757B CN 201410566541 A CN201410566541 A CN 201410566541A CN 104298757 B CN104298757 B CN 104298757B
- Authority
- CN
- China
- Prior art keywords
- data
- database
- server
- client
- information
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of compatible multi version mobile client and the method for database, and server receives the first data of client, and be matched as the second data that server can identify by the first data;Server connection data storehouse, obtains the treatable all business information of database, and server judges whether database supports the second data according to this information;If support, the 3rd data that then server based on data storehouse information can identify the second Data Matching into database, database performs associated storage process according to the 3rd data, server is fed back to according to implementing result, client is sent to by server, otherwise for the direct return information of server to client, the present invention also provides a kind of compatible multi version mobile client and the system of database so that server can compatible miscellaneous editions mobile client and miscellaneous editions database.
Description
Technical field
The present invention relates to a kind of compatible multi version mobile client and the method and system of database.
Background technology
One's own server can be all used in some enterprises or chain store, and these servers are not joined
Net, also other shops are not given to use, can all shops again in earliest version when the enterprise development after a APP
Use, but after upgrade-system and APP is started, APP will be caused to be used in some shops, incompatible version occur
Situation, such as:KTV information systems are made up of various versions and with the tides of mobile Internet, and KTV information systems are also badly in need of adding
Enter mobility solution, for KTV information systems after a KTV enterprise disposes, current enterprise only can be relatively-stationary using one
Version, i.e., version is suitably fixed relatively using one, will not carry out system upgrade easily in PC client information softwares, database,
And be independent work between KTV enterprises, database server is stored on each enterprise servers, but introduces mobile Internet product
Afterwards, because characteristic is issued in the exploitation of mobile Internet product, such as IOS systems are unified to carry out software hair using APP Store
Cloth, and the frequency of mobile terminal software iterative development is higher.And used because mobile terminal software is mounted on personal mobile phone, with
The upgrading of mobile terminal software, because the custom of each user will not upgrade every time, have led to depositing under same server
Used simultaneously in the client of different editions, the client functionality and Tongxu agreement of different editions are different, are required for this
Server can downward and upward-compatible all clients use, and because KTV information systems are to be deployed in each KTV enterprises
In, the database of KTV enterprise information systems will not upgrade easily, while the newest client of server-compatible is required for this
The normal operation on old database, ensure the old storing process energy normal use of new agreement.Traditional mode is according to different editions
Mobile client and parameter actual use database modified for server, but enterprise deployment it is more, occur
Enterprise's version it is also more, if the server of each enterprise is targetedly changed, now just need the clothes of each enterprise
Business device and database all upgraded, workload will be caused huge, than if any 3000 places using different versions it is necessary to
Carry out the specific aim modification of 3000 times.
The content of the invention
The technical problem to be solved in the present invention, it is to provide a kind of compatible multi version mobile client and the method for database
And system so that server can compatible miscellaneous editions mobile client and miscellaneous editions database.
Technical scheme one:
A kind of method of compatible multi version mobile client and database, comprises the following steps:
Step 1, server receive the first data of client, and the first data are carried out being matched as server to identify
The second data;
Step 2, server connection data storehouse, obtain the treatable all business information of database, and server is believed according to this
Breath judges whether database supports the second data;If supporting, server based on data storehouse information is by the second Data Matching into number
The 3rd data that can be identified according to storehouse, database perform associated storage process according to the 3rd data, feed back to clothes according to implementing result
Business device, is sent to client, otherwise the direct return information of server to client by server.
Further, storing process title and storage of the treatable all business information of the database for the database
Required parameter information.
Further, the step 2 is specially:Server connection data storehouse, obtain the treatable all business of database
Information, the storing process title in the information of server based on data storehouse judge whether database supports the second data;If supporting, clothes
Business device matches according to parameter information needed for the storage of database to the second data, obtains the 3rd number that database can identify
According to database performs associated storage process according to the 3rd data, feeds back to server according to implementing result, is sent to by server
Client.
Further, the step 1 is specially further:
Server receives the first data of client, and the communications protocol that the first data can be identified according to the server is entered
Row splicing is deleted as the second data.
Further, first data are the request data that user end to server is initiated.
Technical scheme two:
The system of a kind of compatible multi version mobile client and database, including following module:
Client data modular converter, for server receive client the first data, and by the first data carry out
With the second data that can be identified as server;
Data processing module, the treatable all business information of database, server based on data are obtained for server
Storehouse information judges whether database supports the processing of the second data;If supporting, server based on data storehouse information counts second
The 3rd data that can be identified into database according to matching, database perform associated storage process according to the 3rd data, and foundation performs knot
Fruit feeds back to server, and client is sent to by server, otherwise the direct return information of server to client.
Further, storing process title and storage of the treatable all business information of the database for the database
Required parameter information.
Further, the data processing module is specially further:
Storing process title in the information of server based on data storehouse judges whether database supports the second data;If branch
Hold, server matches according to parameter information needed for the storage of database to the second data, obtain that database can identify the
Three data, database perform associated storage process according to the 3rd data, feed back to server according to implementing result, are sent out by server
Client is given, otherwise the direct return information of server to client.
Further, the client data modular converter is specially further:
Server receives the first data of client, and the communications protocol that the first data can be identified according to the server is entered
Row splicing is deleted as the second data.
Further, first data are the request data that user end to server is initiated.
The invention has the advantages that:The method of a kind of compatible multi version mobile client of the present invention and database and it is
System, its can simultaneously compatible all version clients communications protocol, be this it is ensured that the mobile client of different editions
Use, simultaneously because the data of the compatible different editions of generic server energy, are performed for this can on former database, without right
Database is upgraded, and greatly reduces Operating Complexity.
Brief description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the compatible multi version client schematic diagram of the present invention.
Fig. 2 is the compatible multi-version database schematic diagram of the present invention.
Embodiment
As depicted in figs. 1 and 2, the compatible multi version mobile client of the present invention and the method for database, comprise the following steps:
Step 1, server receive the first data of client, and the communication that the first data can be identified according to the server
Agreement is spliced or deleted as the second data, and first data are the request data that user end to server is initiated;
Step 2, server connection data storehouse, obtain the treatable all business information of database, server based on data
Storing process title in the information of storehouse judges whether database supports the second data;If supporting, server is deposited according to database
Parameter information needed for storage matches to the second data, obtains the 3rd data that database can identify, database counts according to the 3rd
According to associated storage process is performed, server is fed back to according to implementing result, client is sent to by server, otherwise server is straight
Return information is connect to client, the treatable all business information of database are the storing process title of the database and deposited
Parameter information needed for storage, the business information that the request data that user end to server is initiated can obtain with server from database are entered
Row matching.
As depicted in figs. 1 and 2, the compatible multi version mobile client of the present invention and the system of database, including:
Client data modular converter, the first data of client are received for server, and by the first data according to this
The communications protocol that server can identify is spliced or deleted as the second data, and first data are user end to server
The request data of initiation;
Data processing module, judge whether database props up for the storing process title in the information of server based on data storehouse
Hold the second data;If supporting, server matches according to parameter information needed for the storage of database to the second data, is counted
The 3rd data that can be identified according to storehouse, database perform associated storage process according to the 3rd data, feed back to clothes according to implementing result
Business device, is sent to client, otherwise the direct return information of server to client, the treatable institute of database by server
There is parameter information needed for the storing process title and storage that business information is the database.
As shown in figure 1, for different editions user client communication (such as the version 1.0 of client 1, the version 2 .0 of client 2,
The version 3 .0 of client 3), user end to server, which sends request data (i.e. the first data) wherein request data, includes data
Library storage process title, server receives the request data, and carries out parsing identification to the version of user client communication agreement, afterwards
Deleting request data progress automatic Mosaic according to the communications protocol that this version server can identify can identify as server
Request data (i.e. the second data), assign default value, ensure the client energy normal communications of different editions.Such as redaction
Client drinks, which fall, singly to be added " the single signature of point " function, the client of legacy version is without this function, the client initiation of legacy version
Correlation communications protocol lacks when falling single submit " the single signature of point " field, find that this field lacks after server retrieval associated communication agreement
It is few, increase field in related protocol automatically " the single signature of point ", and be that sky carries out submission processing by relevant field.
As shown in Fig. 2 after server operation connection database, this edition wide area information server information (i.e. database is obtained
Middle institute all storing process titles in need and all parameter informations of associated storage), when client (such as the version of client 1
1.0th, the version 2 .0 of client 2, the version 3 .0 of client 3) service initiated with database store process when need to communicate, server
First judging storing process title, (storing process title is for example:Client needs to use a single signature function, and now server just needs
Search) it whether there is, do not support this function (to return and believe by server in the absence of the feedback current server version of client
Breath causes user to know that the server version does not support this function to client), in the case of storing process is present, according to original
The storing process parameter of acquisition is filled in, and is filled in for the parameter that legacy client lacks by default value, is existed for client
And the parameter that storing process lacks performs storing process in database and obtains returned data by not handled, and will
Returned data feeds back to client, ensure new legacy client can on the database of current version normal use.
The invention has the advantages that:The method of a kind of compatible multi version mobile client of the present invention and database and it is
System, its can simultaneously compatible all version clients communications protocol, be this it is ensured that the mobile client of different editions
Use, simultaneously because the data of the compatible different editions of generic server energy, are performed for this can on former database, without pin
The server being used for the version pin of different enterprise information systems individually change and upgrade, and greatly reduces operation
Complexity.
Although the foregoing describing the embodiment of the present invention, those familiar with the art should manage
Solution, the specific embodiment described by us are merely exemplary, rather than for the restriction to the scope of the present invention, are familiar with this
The equivalent modification and change that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's
In scope of the claimed protection.
Claims (8)
1. a kind of method of compatible multi version mobile client and database, it is characterised in that:Comprise the following steps:
Step 1, server receive the first data of client, and the communications protocol that the first data can be identified according to the server
Spliced or deleted as the second data;
Step 2, server connection data storehouse, obtain the treatable all business information of database, and server is sentenced according to this information
Whether disconnected database supports the second data;If supporting, server based on data storehouse information is by the second Data Matching into database
The 3rd data that can be identified, database perform associated storage process according to the 3rd data, feed back to server according to implementing result,
Client is sent to by server, otherwise the direct return information of server to client.
2. the method for a kind of compatible multi version mobile client according to claim 1 and database, it is characterised in that:Institute
State parameter information needed for the storing process title and storage that the treatable all business information of database are the database.
3. the method for a kind of compatible multi version mobile client according to claim 2 and database, it is characterised in that:Institute
Stating step 2 is specially:Server connection data storehouse, obtain the treatable all business information of database, server based on data
Storing process title in the information of storehouse judges whether database supports the second data;If supporting, server is deposited according to database
Parameter information needed for storage matches to the second data, obtains the 3rd data that database can identify, database counts according to the 3rd
According to associated storage process is performed, server is fed back to according to implementing result, client is sent to by server, otherwise server is straight
Return information is connect to client.
4. the method for a kind of compatible multi version mobile client according to claim 1 and database, it is characterised in that:Institute
It is the request data that user end to server is initiated to state the first data.
A kind of 5. system of compatible multi version mobile client and database, it is characterised in that:Including following module:
Client data modular converter, the first data of client are received for server, and by the first data according to the service
The communications protocol that device can identify is spliced or deleted as the second data;
Data processing module, the treatable all business information of database, server based on data storehouse letter are obtained for server
Breath judges whether database supports the processing of the second data;If supporting, server based on data storehouse information is by the second data
The 3rd data that database can identify are made into, database performs associated storage process according to the 3rd data, anti-according to implementing result
Feed server, client is sent to by server, otherwise the direct return information of server to client.
6. the system of a kind of compatible multi version mobile client according to claim 5 and database, it is characterised in that:Institute
State parameter information needed for the storing process title and storage that the treatable all business information of database are the database.
7. the system of a kind of compatible multi version mobile client according to claim 6 and database, it is characterised in that:Institute
Stating data processing module is specially further:
Storing process title in the information of server based on data storehouse judges whether database supports the second data;If supporting, clothes
Business device matches according to parameter information needed for the storage of database to the second data, obtains the 3rd number that database can identify
According to database performs associated storage process according to the 3rd data, feeds back to server according to implementing result, is sent to by server
Client, the otherwise direct return information of server to client.
8. the system of a kind of compatible multi version mobile client according to claim 5 and database, it is characterised in that:Institute
It is the request data that user end to server is initiated to state the first data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410566541.0A CN104298757B (en) | 2014-10-22 | 2014-10-22 | A kind of method and system of compatible multi version mobile client and database |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410566541.0A CN104298757B (en) | 2014-10-22 | 2014-10-22 | A kind of method and system of compatible multi version mobile client and database |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104298757A CN104298757A (en) | 2015-01-21 |
CN104298757B true CN104298757B (en) | 2018-01-12 |
Family
ID=52318482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410566541.0A Active CN104298757B (en) | 2014-10-22 | 2014-10-22 | A kind of method and system of compatible multi version mobile client and database |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104298757B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105871976A (en) * | 2015-11-24 | 2016-08-17 | 乐视体育文化产业发展(北京)有限公司 | Data cross-domain request method and system, and devices |
CN108667710B (en) * | 2017-03-28 | 2022-03-11 | 腾讯科技(深圳)有限公司 | Information processing method and device |
CN108279987A (en) * | 2018-01-19 | 2018-07-13 | 口碑(上海)信息技术有限公司 | The method for edition management and device of application program |
CN109034781B (en) * | 2018-06-27 | 2022-02-22 | 美味不用等(上海)信息科技股份有限公司 | Recognition method and recognition device for cash register system and computer readable storage medium |
CN115062092B (en) * | 2022-08-10 | 2023-02-03 | 阿里云计算有限公司 | Database access method, device, system and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794222A (en) * | 2010-01-13 | 2010-08-04 | 腾讯科技(深圳)有限公司 | Software version collecting method, management system and software upgrading detection method and system |
CN103645951A (en) * | 2013-12-19 | 2014-03-19 | 北京邮电大学 | Cross-platform mobile data management system and method |
CN103780700A (en) * | 2014-01-26 | 2014-05-07 | 长沙裕邦软件开发有限公司 | Application system and method for achieving compatibility and sharing among multi-source heterogeneous systems |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8266104B2 (en) * | 2008-08-26 | 2012-09-11 | Sap Ag | Method and system for cascading a middleware to a data orchestration engine |
-
2014
- 2014-10-22 CN CN201410566541.0A patent/CN104298757B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101794222A (en) * | 2010-01-13 | 2010-08-04 | 腾讯科技(深圳)有限公司 | Software version collecting method, management system and software upgrading detection method and system |
CN103645951A (en) * | 2013-12-19 | 2014-03-19 | 北京邮电大学 | Cross-platform mobile data management system and method |
CN103780700A (en) * | 2014-01-26 | 2014-05-07 | 长沙裕邦软件开发有限公司 | Application system and method for achieving compatibility and sharing among multi-source heterogeneous systems |
Also Published As
Publication number | Publication date |
---|---|
CN104298757A (en) | 2015-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104298757B (en) | A kind of method and system of compatible multi version mobile client and database | |
CN102819461B (en) | Desktop synchronous method, device, equipment and system | |
US10129305B2 (en) | Method, user equipment, server, and apparatus for implementing information sharing | |
CN103810011B (en) | Method for realizing OTA (over the air) upgrading through file server | |
CN1988535A (en) | Synchronous method, system for file storage and customer terminal | |
CN103916482A (en) | Data synchronous transmission method based on sqlite | |
CN101977121A (en) | Configuration file processing method, device and system | |
CN102868731A (en) | Method and device for software online updating and downloading acceleration | |
CN104158886A (en) | Flow-type performing method for applications | |
CN101136025A (en) | Method for downloading network resource, system and equipment thereof | |
CN103763358B (en) | The method for pushing and device of a kind of information | |
CN107515933A (en) | Change method, server, system and the storage medium of source data database table structure | |
CN103078899A (en) | Method and device for synchronizing enterprise address book | |
CN103823700A (en) | Method and device for upgrading application software of client | |
CN104537301B (en) | Login method, device and the mobile terminal of application | |
CN111343590B (en) | Short message sending system with high concurrency and high stability | |
CN103200247A (en) | Data downloading method and personal computer (PC) downloading client side | |
CN107395385A (en) | Method for upgrading software and device | |
CN103379476A (en) | Terminal and contact information updating method | |
CN103220643B (en) | Information providing method and device, ATL matching process and device | |
CN103123651A (en) | Method of rapidly searching multiple same-kind paper, device and mobile equipment | |
JP2022516280A (en) | Express delivery inquiry method, server, and terminal | |
CN102158351B (en) | Method and device for managing device management tree under multiple servers of device management client | |
CN103377052A (en) | Method and system for automatically downloading adaptive application programs on basis of file synchronization service | |
CN101146282A (en) | Method for application recognition module to download electronic documents |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |