CN104216902B - A kind of paged data stowage, device and system based on server paging - Google Patents

A kind of paged data stowage, device and system based on server paging Download PDF

Info

Publication number
CN104216902B
CN104216902B CN201310215082.7A CN201310215082A CN104216902B CN 104216902 B CN104216902 B CN 104216902B CN 201310215082 A CN201310215082 A CN 201310215082A CN 104216902 B CN104216902 B CN 104216902B
Authority
CN
China
Prior art keywords
data
wcf
paged
server
interfaces
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
Application number
CN201310215082.7A
Other languages
Chinese (zh)
Other versions
CN104216902A (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.)
Siemens AG
Original Assignee
Siemens AG
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 Siemens AG filed Critical Siemens AG
Priority to CN201310215082.7A priority Critical patent/CN104216902B/en
Publication of CN104216902A publication Critical patent/CN104216902A/en
Application granted granted Critical
Publication of CN104216902B publication Critical patent/CN104216902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Abstract

Embodiment of the present invention discloses a kind of paged data stowage, device and system based on server paging.Method includes:The request of data for including data screening order is received, and when the data screening order meets data screening rule, which is sent to by server by WCF interfaces;The paged data that command search goes out is screened by server based on data by WCF interfaces.Embodiment of the present invention is not necessarily to change the database of server side in storing process using WCF as middleware.

Description

A kind of paged data stowage, device and system based on server paging
Technical field
The present invention relates to the communications field, more particularly to a kind of paged data stowage based on server paging, dress It sets and system.
Background technology
With the deep development of mobile Internet and cloud computing, it is generally stored inside positioned at cloud with the various relevant data of service In the server at end.When client needs using these data, service can be called and download corresponding data from server, and In user interface(UI)Upper display data.Currently based on the management software of database using increasingly extensive, for big data quantity number According to the increasing of library table, the operations such as to delete, change, look into more and more frequent.In order to improve system response time, enhances user experience, exist at present The function based on server paging is all used when searching Volume data library table.With locally applied difference, it is located at cloud The application at end is proposed developer and client new challenge.When client needs data, taken from high in the clouds by paging mode Device downloading data of being engaged in may be preferable selection.
There are many paged data download control methods at present.The first is that client-based paged data is downloaded.In base In the paged data downloading mode of client, client downloads all data from server, and is held to data by client Row paging activity and all paging logic of processing.This client-based paging mode is realized simply, but there are nets The problem of performance declines when network transmission quantity is big and large-scale data.Second is that the paged data based on server is downloaded. In paged data downloading mode based on server, client does not need to download all data from server, and only needs Download the data set being consistent with query term.Due to only needing to download low volume data, this processing mode has preferable network Transmission performance, and there is no degradation problems when scale data.However, downloading skill in the paged data based on server In art, the database of modification server side is usually required in increasing the operations such as storage paged data, and to server side Database is modified and can not sometimes be executed, therefore the scope of application of this processing mode limits to very much.
Invention content
Embodiment of the present invention proposes a kind of paged data stowage based on server paging, without to server side Database is modified, to expand the scope of application.
Embodiment of the present invention proposes a kind of paged data loading attachment based on server paging, without to server side Database is modified, to which the scope of application is more extensive.
Embodiment of the present invention proposes a kind of paged data Load System based on server paging, without to server side Database is modified, to which the scope of application is more extensive.
The technical solution of embodiment of the present invention is as follows:
A kind of paged data stowage based on server paging, including:
The request of data for including data screening order is received, and when the data screening order meets data screening rule, The request of data is sent to server by WCF interfaces;
The paged data that command search goes out is screened by server based on data by WCF interfaces.
The request of data further comprises data sorting order;
It is described when data screening order meets data screening rule, by WCF interface data request be sent to server For:
When the data sorting order meets data sorting rule and data screening order meets data screening rule, pass through The request of data is sent to server by WCF interfaces.
It is described the request of data is sent to by server by WCF interfaces to include:
The data sorting order and data screening order is added in the basis inquiry BaseQuery of WCF interfaces with shape The querying command is sent to server at querying command, and by WCF interface context Context.
It is described the paged data that goes out of command search is screened by server based on data by WCF interfaces to include:Pass through The paged data gone out by server based on data screening command search is returned to the basic entity set of WCF interfaces by WCF interfaces BaseEntitySet。
This method further comprises:Paged data is obtained from the basic entity set BaseEntitySet of WCF interfaces, and At least one of following operation is executed to paged data:Increase data, crosses filter data, loads the page, refresh data, mobile number According to, storage data and grouped data.
This method further comprises:Receive comprising data sorting order and data screening order request of data it Afterwards, WCF formats pre-process before being inquired the request of data.
This method further comprises:Before the inquiry after the pretreatment of WCF formats, judges locally whether to be stored with and be somebody's turn to do Corresponding paged data is ordered in the screening of data sorting order and data, if so, then recalling the corresponding paging from local Data, if it is not, the request of data is sent to server by WCF interfaces.
This method further comprises:Point that command search goes out is being screened by server based on data by WCF interfaces After page data, further judge locally whether be stored with the paged data, if so, this flow is then exited, if it is not, The paged data is being locally stored.
A kind of paged data loading attachment based on server paging, the device include data screening rule setting unit and Data request processing unit, wherein:Data screening rule setting unit, for data screening rule to be arranged;Data request processing Unit, for receiving the request of data for including data screening order, and when the data screening order meets data screening rule, The request of data is sent to server by WCF interfaces, and is screened and is ordered by server based on data by WCF interfaces The paged data retrieved.
Above-mentioned apparatus further comprises:Data sorting rule setting unit is used to be arranged data sorting rule;Data are asked Processing unit is sought, for the request of data of packet receiving order and data containing data sorting screening order, and works as the data sorting order Meet data sorting rule and data screening order is when meeting data screening rule, is sent the request of data by WCF interfaces To server, and the paging gone out by server based on data sequentialize commands and data screening command search by WCF interfaces Data.
Above-mentioned data request processing unit can be also used for adding in the basis inquiry BaseQuery of WCF interfaces described The screening order of data sorting order and data is ordered the inquiry by WCF interface context Context with forming querying command Order is sent to server.Above-mentioned data request processing unit can be also used for connecing paged data back to WCF by WCF interfaces The basic entity set BaseEntitySet of mouth.
Above-mentioned data request processing unit may further be used to receive comprising the screening of data sorting order and data After the request of data of order, WCF formats pre-process before being inquired the request of data.
Above-mentioned data request processing unit is further used for before inquiry after the pretreatment of WCF formats, whether judges local It is stored with paged data corresponding with data sorting order and data screening order, if so, then recalling the phase from local Corresponding paged data, if it is not, the request of data is sent to server by WCF interfaces.
Above-mentioned data request processing unit further by WCF interfaces after server receives the paged data, Further judge locally whether be stored with paged data, if so, this flow is then exited, if it is not, being locally stored State paged data.
Another real-time mode of the present invention also discloses a kind of paged data Load System based on server paging, The system includes client and server, wherein:
Client is provided with data screening rule, for receiving the request of data for including data screening order, and works as the number When meeting data screening rule according to screening order, which is sent to by server by WCF interfaces;
Server for filtering out paged data according to data screening order, and returns to institute by WCF interfaces to client State paged data.
Client is further provided with data sorting rule, and receives comprising the screening order of data sorting order and data Request of data, and when the data sorting order meet data sorting rule and data screening order meet data screening rule When, which is sent to by server by WCF interfaces;
Server goes out paged data for screening command search according to data sorting order and data, and passes through WCF interfaces The paged data is returned to client.
A kind of machine readable storage medium is stored for making machine execute the finger of the method described in any one as above It enables.
A kind of computer program executes the machine when the computer program is run in machine as above any one Method described in.
In embodiments of the present invention, setting data screening rule;The request of data for including data screening order is received, and When the data screening order meets data screening rule, which is sent to by server by WCF interfaces;Server Paged data is filtered out according to data screening order, and the paged data is returned to by WCF interfaces.It can be seen that of the invention For embodiment using WCF as middleware, client can be with dynamic generation query expression, without changing clothes in storing process The database of business device side, therefore expand the scope of application of embodiment of the present invention.
Moreover, embodiment of the present invention only needs to assign the parameters such as BaseQuery, Context and BaseEntitySet Value without being concerned about that other data load logic, therefore reduces realization difficulty, improves the data rate of loading.In addition, Embodiment of the present invention keeps the context instance of WCF RIA services, can be certainly by calling the intrinsic function of context automatically It is dynamic to execute the operations such as increase, deletion, update.Not only in this, number is locally stored due to that can be detected first in data request processing According to, therefore embodiment of the present invention can also support local built-in caching.
Description of the drawings
Fig. 1 is according to paged data stowage flow chart of the embodiment of the present invention based on server paging.
Fig. 2 is to service schematic diagram according to the WCF RIA of embodiment of the present invention.
Fig. 3 is according to paged data loading attachment structure chart of the embodiment of the present invention based on server paging.
Fig. 4 is the sterogram according to paged data load units of the embodiment of the present invention based on server paging.
Fig. 5 is according to paged data Load System structure chart of the embodiment of the present invention based on server paging.
Fig. 6 is that the paged data based on server paging loads flow chart according to embodiment of the present invention.
Specific implementation mode
In order to make technical scheme of the present invention and advantage be more clearly understood, below in conjunction with drawings and the embodiments, to this Invention is further elaborated.It should be appreciated that the specific embodiments described herein are only used to illustrative illustrate originally Invention, is not intended to limit the scope of protection of the present invention.
In embodiments of the present invention, the process flow of client-side includes:Receive the data for including data screening order Request, and when the data screening order meets data screening rule, which is sent to by service by WCF interfaces Device, then the paged data that command search goes out is screened by server based on data by WCF interfaces.
In embodiments of the present invention, the request of data for including data screening order is received, and works as the data screening order When meeting data screening rule, which is sent to by server by WCF interfaces;Server based on data screening order Paged data is retrieved, and the paged data is returned to by WCF interfaces.
Wherein, data sorting order can also be carried in request of data, and when the data sorting order is further full The request of data is just sent to by server by WCF interfaces when sufficient data screening rule;Server based on data screening order Paged data is retrieved with data sequentialize commands, and the paged data is returned to by WCF interfaces.
Fig. 1 is according to paged data stowage flow chart of the embodiment of the present invention based on server paging.
As shown in Figure 1, this method includes:
Step 101:Data sorting rule and data screening rule are set.
Herein, can data sorting rule and data screening rule be set in client.Data sorting rule for pair The format of data sorting order is defined;Data screening rule is for being defined the format of data screening order.Here, The step that can be omitted setting data sorting rule, because paged data load units itself as shown in following Fig. 4 include Therefore DefaultSort, i.e. data Default Classmark attribute in the case of no special requirement, can use the Default Classmark category Property as data screening rule.
Step 102:The request of data for including the screening order of data sorting order and data is received, and when the data sorting is ordered Order meets data sorting rule and data screening order is when meeting data screening rule, is sent out the request of data by WCF interfaces It is sent to server.
Herein, WCF RIA services can be installed in client, be configured to WCF RIA clients.The client receives packet The request of data of the screening order of order and data containing data sorting, and when the data sorting order meets data sorting rule and number When meeting data screening rule according to screening order, which is sent to the server positioned at high in the clouds by WCF interfaces.
In one embodiment:
Client asks the data after receiving the request of data comprising the screening order of data sorting order and data WCF formats before being inquired are asked to pre-process, to ensure the every format for allowing request of data to meet WCF RIA agreement.Client Before having executed inquiry after the pretreatment of WCF formats, local whether be stored with and the data sorting order can be further judged With the corresponding paged data of data screening order, if so, then the corresponding paged data is recalled from local, if do not had Have, then the request of data is sent to by server by WCF interfaces.
In one embodiment:
WCF RIA clients additional data sequentialize commands and data screening in the basis inquiry BaseQuery of WCF interfaces The querying command is sent to server by order to form querying command by WCF interface context Context.
Step 103:Server based on data sequentialize commands and data screening command search go out paged data, and pass through WCF Interface returns to the paged data.
After server receives the request of data of client transmission, data sorting order is parsed among request of data With data screening order, and paged data is filtered out according to the screening order of data sorting order and data, then passes through WCF interfaces Paged data is returned to client.
In one embodiment:Paged data is returned to the basis of client WCF interfaces by WCF interfaces by server Entity set BaseEntitySet.Preferably, client after server paging data, further judges by WCF interfaces It is local whether to be stored with the paged data, if so, this flow is then exited, if it is not, the paged data is locally stored.
In one embodiment:Client obtains paging number from the basic entity set BaseEntitySet of WCF interfaces According to, and at least one of following operation is executed to paged data:Increase data;Cross filter data;Load the page;Refresh data; Mobile data;Store data;Grouped data, etc..
Fig. 2 is to service schematic diagram according to the WCF RIA of embodiment of the present invention.
As shown in Fig. 2, WCF RIA services are simplified for abundant Internet application programs (RIA)(Such as Silverlight application programs)N-layer solution deployment.Exploitation n-layer RIA solutions a FAQs be exactly The coordinate application logic between middle layer and expression layer.In order to make best user experience, RIA service clients are needed It can know application logic resident on the server, but be not intended to all develop in expression layer and middle layer and safeguard this Application logic.RIA services make the application logic on server can be used for RIA service clients but are not necessarily to by providing The frame assembly, tool and service for replicating the programmed logic manually, solve the above problem.It can be created in local client A RIA service client is built, which knows business rule and know is recompilating solution every time When will automatically update the RIA service clients using newest middle-tier logic.In order to smoothly realize that RIA is serviced, need When local side installs Visual Studio2010, Silverlight Developer operation, SDK and Toolkit and WCF The application software such as RIA Services and its kit.
Embodiment of the present invention proposes a kind of paged data loading attachment based on server paging.The device can wrap Data screening rule setting unit and data requesting processing are included, wherein:Data screening rule setting unit, for number to be arranged According to screening rule;Data request processing unit for receiving the request of data for including data screening order, and works as the data screening When order meets data screening rule, which is sent to by server by WCF interfaces, and pass through WCF interfaces The paged data gone out by server based on data screening command search.
Preferably, data sorting order can also be carried in the request of data, and works as the data sorting order into one The request of data is just sent to by server by WCF interfaces when step meets data screening rule;Server is sieved further according to data It selects order and data sequentialize commands to retrieve paged data, and the paged data is returned to by WCF interfaces.At this point, specifically, The device may further include data sorting rule setting unit, for data sorting rule to be arranged.At this point, at request of data Unit is managed, for the request of data of packet receiving order and data containing data sorting screening order, and when the data sorting order meets When data sorting is regular and data screening order meets data screening rule, which is sent to by clothes by WCF interfaces Business device, and the paged data gone out by server based on data sequentialize commands and data screening command search by WCF interfaces.
Based on above-mentioned detailed analysis, embodiment of the present invention also proposed a kind of paged data dress based on server paging It carries and sets.
Fig. 3 is according to paged data loading attachment structure chart of the embodiment of the present invention based on server paging.
As shown in figure 3, the device include data sorting rule setting unit 301, data screening rule setting unit 302, Data request processing unit 303, wherein:
Data sorting rule setting unit 301, for data sorting rule to be arranged;
Data screening rule setting unit 302, for data screening rule to be arranged;
Data request processing unit 303, for receiving the request of data for including the screening order of data sorting order and data, And it when the data sorting order meets data sorting rule and data screening order meets data screening rule, is connect by WCF The request of data is sent to server by mouth, and is sieved by server based on data sequentialize commands and data by WCF interfaces Select the paged data that command search goes out.
Fig. 4 is the sterogram according to paged data load units of the embodiment of the present invention based on server paging.
As shown in figure 4, the entity of data sorting rule setting unit includes attribute(Properties)Group and method (Methods)Group.Indicate no matter be specially which kind of form due to data, can be indicated by the data structure of similar table, therefore Data sorting rule setting unit and data screening rule setting unit can use the expression pair of associated abstract data table The restriction of data sorting rule.
The set of properties of data sorting rule setting unit can specifically include:
AssociateGrid:Indicate the abstract table for BaseEntitySet in display data requesting processing Lattice;
CurrentSelectedItem:In abstract table it is currently selected in item;
DataGridCollapseAction:Indicate the execution side when the abstract table that can be layered when folding hierarchical structure Method;
DataGridFiltering:The method called is needed when abstract table is ready for screening, calls this method By screening parameter, (including symbol is more than and is less than or equal to etc.;Data compare the data after symbol) it substitutes at request of data It manages in unit;
The method group of data sorting rule setting unit can specifically include:
DataGridFiltered:The method called is needed when abstract table screening is completed;
DataGridRowExpanding:When the abstract table that can be layered needs the side called when hierarchical structure is unfolded Method;
DataGridSorting:When (parameter is for method that abstract table needs to call when executing ordering action SortDescriptor arrays)
Refresh:When abstract table needs the method called when executing refresh activity;
RefreshByForce:When abstract table needs the method called (to force to refresh and mean when forcing to refresh The modification to local data is abandoned, uses server-side Refresh Data local data completely).
Similarly, data screening rule setting element entity also includes attribute(Properties)Group and method (Methods)Group.
The set of properties of data screening rule setting unit includes:
Direction:Sort Direction, including ascending order and descending;
Property:The attribute-name of sequence, such as Name, Age etc..
Similarly, data request processing element entity also includes attribute(Properties)Group and method(Methods)Group.
The set of properties of data request processing unit includes:
BaseEntitySet:By solid framework(Entity Framework)The entity set of offer, can be by context (context)It keeps, and internal entity is mapped to the truth table of server side;
BaseQuery:Inquiry(Query)The basic query item of operation.BaseQuery should not have sequence expression formula or Date expression.
Context:For the client instance of WCF RIA services(instance).It keeps all with server communication Data capsule and method.
DefaultSort:Indicate default retrieval direction.
KeyProperty:The main key for the table that most probable is queried(key);
PageSize:Row counts measured page data size.
The method group of data screening rule setting unit includes:Increase data(Add), cross filter data(Filtered), dress Carry the page(LoadPage), refresh data(Refresh), mobile data(Remove), storage data(Save)And grouped data (Sorted)Etc..
Although listing data sorting rule setting unit, data screening rule setting unit and request of data in detail above The entity structure of processing unit is enumerated only exemplary, is not used to pair it will be appreciated by those of skill in the art that this The protection domain of embodiment of the present invention is defined.
In one embodiment:
Data request processing unit 303, for adding the data row in the basis inquiry BaseQuery of WCF interfaces The screening order of sequence order and data is sent the querying command by WCF interface context Context with forming querying command To server.
In one embodiment:
Data request processing unit 303, the basic entity for paged data to be returned to WCF interfaces by WCF interfaces Collect BaseEntitySet.
In one embodiment:
Data request processing unit 303 is further used for obtaining from the basic entity set BaseEntitySet of WCF interfaces Paged data is taken, and at least one of following operation is executed to paged data:Increase data, crosses filter data, loads the page, brush New data, mobile data, storage data, grouped data.
In one embodiment:
Data request processing unit 303 is further used for receiving comprising the screening order of data sorting order and data Request of data after, before being inquired the request of data WCF RIA formats pre-process.
In one embodiment:
Data request processing unit 303 is further used for before inquiry after the pretreatment of WCF RIA formats, judges local Whether with data sorting order and data screening order corresponding paged data is stored with, if so, then being recalled from local The corresponding paged data, if it is not, the request of data is sent to server by WCF interfaces.
In one embodiment:
Data request processing unit 303, further by WCF interfaces after server receives the paged data, Further judge locally whether be stored with paged data, if so, this flow is then exited, if it is not, being locally stored State paged data.
Based on above-mentioned detailed analysis, embodiment of the present invention also proposed a kind of paged data dress based on server paging Loading system, the system include client and server.Client is provided with data screening rule, includes data screening for receiving The request of data of order, and when the data screening order meets data screening rule, sent out the request of data by WCF interfaces It is sent to server;Server for going out paged data according to data screening command search, and is returned by WCF interfaces to client Return the paged data.
Similarly, data sorting order can also be carried in the request of data, and works as the data sorting order into one The request of data is just sent to by server by WCF interfaces when step meets data screening rule;Server is sieved further according to data It selects order and data sequentialize commands to retrieve paged data, and the paged data is returned to by WCF interfaces.
Fig. 5 is according to paged data Load System structure chart of the embodiment of the present invention based on server paging.
As shown in figure 5, the system includes client 501 and server 502, wherein:
Client 501 is provided with data sorting rule and data screening rule, for receiving comprising data sorting order and The request of data of data screening order, and data sorting is regular and data screening order meets number when the data sorting order meets When according to screening rule, which is sent to by server by WCF interfaces;
Server 502 goes out paged data for screening command search according to data sorting order and data, and passes through WCF Interface returns to the paged data to client.
In one embodiment:
Client 501, for adding the data sorting order sum number in the basis inquiry BaseQuery of WCF interfaces According to screening order to form querying command, and the querying command is sent to by server by WCF RIA contexts Context 502。
In one embodiment:
Server 502, the basic entity set for paged data to be returned to WCF interfaces by WCF interfaces BaseEntitySet。
In one embodiment:
Client 501, for obtaining paged data from the basic entity set BaseEntitySet of WCF interfaces, and to dividing Page data executes at least one of following operation:Increase data, cross filter data, load the page, refresh data, mobile data, Store data, grouped data.
Fig. 6 is that the paged data based on server paging loads flow chart according to embodiment of the present invention.
As shown in fig. 6, this method includes:
Step 601:Client receives the request of data for including the screening order of data sorting order and data.
Step 602:Client judges that the data sorting order meets data sorting rule and data screening order meets number After screening rule, WCF formats pre-process before being inquired request of data.After the pretreatment of WCF formats, judge in client Whether end is local preserves paged data corresponding with the screening order of data sorting order and data, if it is not, executing Step 603 and its subsequent step, if so, thening follow the steps 605 and its subsequent step.
Step 603:Data sorting expression formula is generated based on data sorting order, data sieve is generated based on data screening order Select expression formula.
Step 604:Using WCF interfaces, obtained and data sorting expression formula and data screening expression formula phase from server The paged data met.
Step 605:Post-query processing is executed to paged data.
Indeed, it is possible to be embodied that embodiment of the present invention proposed by diversified forms based on server paging Paged data stowage.
For example, the application programming interfaces of certain specification can be followed, by the paged data loading side based on server paging Method is written as the plug-in card program being installed in various computing devices, can also be encapsulated for application program for user voluntarily under It carries and uses.When being written as plug-in card program, a variety of card formats such as ocx, dll, cab can be implemented as.It can also pass through The particular techniques such as Flash plug-in units, RealPlayer plug-in units, MMS plug-in units, MIDI staffs plug-in unit, ActiveX plug-in units implement this The paged data stowage based on server paging that invention embodiment is proposed.
Embodiment of the present invention can be proposed based on server point by the storing mode of instruction or instruction set storage The paged data stowage of page is stored on various storage mediums.These storage mediums include but is not limited to:Floppy disk, light Disk, DVD, hard disk, flash memory, USB flash disk, CF cards, SD card, mmc card, SM cards, memory stick(Memory Stick), xD cards etc..
Furthermore it is also possible to which embodiment of the present invention to be proposed to the paged data stowage application based on server paging To based on flash memory(Nand flash)Storage medium in, such as USB flash disk, CF cards, SD card, SDHC cards, mmc card, SM cards, memory Stick, xD cards etc..
In conclusion in embodiments of the present invention, setting data screening rule;Receive the number for including data screening order According to request, and when the data screening order meets data screening rule, which is sent to by service by WCF interfaces Device;Server based on data screening order filters out paged data, and returns to the paged data by WCF interfaces.Thus may be used See, using WCF RIA as middleware, client can stored embodiment of the present invention with dynamic generation query expression Without changing the database of server side in journey, therefore expand the scope of application of embodiment of the present invention.
Moreover, embodiment of the present invention only needs to assign the parameters such as BaseQuery, Context and BaseEntitySet Value without being concerned about that other data load logic, therefore reduces realization difficulty, and improves the data rate of loading. In addition, embodiment of the present invention keeps the context instance of WCF RIA services, by calling the intrinsic function of context automatically, It can be performed automatically the operations such as increase, deletion, update.Not only in this, since local can be detected in data request processing first Data are stored, therefore embodiment of the present invention can also support local built-in caching.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in the protection of the present invention Within the scope of.

Claims (7)

1. a kind of paged data stowage based on server paging, which is characterized in that including:
The request of data for including data screening order and data sequentialize commands is received, WCF RIA formats pre-process before being inquired, Judge it is local whether be stored with paged data corresponding with data sorting order and data screening order, if so, then from Locally recall the corresponding paged data;If not provided, and when the data screening order meets data screening rule and data When sequentialize commands meet data sorting rule, which is sent to by server by WCF interfaces;
The paged data that order and data sequentialize commands retrieve will be screened by WCF interfaces by server based on data to return to The basic entity set BaseEntitySet of WCF interfaces, wherein the basis entity set is kept by WCF interface contexts, and will be interior Portion's entity is mapped to the truth table of server;
This method further comprises:
Paged data is obtained from the basic entity set BaseEntitySet of WCF interfaces;
By calling the intrinsic function of WCF interface contexts automatically, at least one of following operation is executed to paged data:
Increase data, crosses filter data, loads the page, refresh data, mobile data, storage data and grouped data.
2. the paged data stowage according to claim 1 based on server paging, which is characterized in that
It is described the request of data is sent to by server by WCF interfaces to include:
The data sorting order and data screening order is added in the basis inquiry BaseQuery of WCF interfaces to look into be formed Order is ask, and the querying command is sent to by server by WCF interface context Context.
3. the paged data stowage according to claim 1 based on server paging, which is characterized in that this method into One step includes:
After screening the paged data that command search goes out by server based on data by WCF interfaces, further judge It is local whether to be stored with the paged data, if so, this flow is then exited, if it is not, the paging number is locally stored According to.
4. a kind of paged data loading attachment based on server paging, which is characterized in that the device includes data screening rule Setting unit, data sorting rule setting unit and data requesting processing, wherein:
Data screening rule setting unit, for data screening rule to be arranged;
Data sorting rule setting unit, for data sorting rule to be arranged;
Data request processing unit is looked into for receiving the request of data for including data screening order and data sequentialize commands Whether WCF RIA formats pretreatment before asking judges locally to be stored with corresponding with data sorting order and data screening order Paged data, if so, then recalling the corresponding paged data from local;If not provided, and working as the data screening order Meet data screening rule and data sorting order is when meeting data sorting rule, is sent the request of data by WCF interfaces To the paging number that order and data sequentialize commands retrieve be screened by server based on data to server, and by WCF interfaces According to the basic entity set BaseEntitySet back to WCF interfaces, wherein the basis entity set is protected by WCF interface contexts It holds, and internal entity is mapped to the truth table of server;It is obtained from the basic entity set BaseEntitySet of WCF interfaces Paged data is taken, paged data is obtained from the basic entity set BaseEntitySet of WCF interfaces;By calling WCF to connect automatically The intrinsic function of mouth context executes at least one of following operation to paged data:Increase data, crosses filter data, loads The page, refresh data, mobile data, storage data and grouped data.
5. the paged data loading attachment according to claim 4 based on server paging, which is characterized in that
Data request processing unit, for WCF interfaces basis inquiry BaseQuery in add the data sorting order and The querying command is sent to service by data screening order to form querying command by WCF interface context Context Device.
6. the paged data loading attachment according to claim 4 based on server paging, which is characterized in that
Data request processing unit further after server receives the paged data, is further sentenced by WCF interfaces Whether disconnected local is stored with paged data, if so, this flow is then exited, if it is not, the paging number is locally stored According to.
7. a kind of paged data Load System based on server paging, which is characterized in that including client and server, In:
Client is provided with data screening rule and data ordering rule, is arranged comprising data screening order and data for receiving The request of data of sequence order, WCF RIA formats pre-process before being inquired, and judge that local whether be stored with is ordered with the data sorting Order and the corresponding paged data of data screening order, if so, then recalling the corresponding paged data from local;If not yet Have, and when the data screening order meets data screening rule, which be sent to by server by WCF interfaces, And it is by WCF interfaces that the basis that paged data back to WCF interfaces that command search goes out are screened by server based on data is real Internal entity wherein the basis entity set is kept by WCF interface contexts, and is mapped to clothes by body collection BaseEntitySet The truth table of business device;Paged data is obtained from the basic entity set BaseEntitySet of WCF interfaces, from the base of WCF interfaces Paged data is obtained in plinth entity set BaseEntitySet;By calling the intrinsic function of WCF interface contexts automatically, to dividing Page data executes at least one of following operation:Increase data, cross filter data, load the page, refresh data, mobile data, Store data and grouped data;
Server, for retrieving paged data according to data screening order and data sequentialize commands, and by WCF interfaces to visitor Family end returns to the paged data.
CN201310215082.7A 2013-05-31 2013-05-31 A kind of paged data stowage, device and system based on server paging Active CN104216902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310215082.7A CN104216902B (en) 2013-05-31 2013-05-31 A kind of paged data stowage, device and system based on server paging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310215082.7A CN104216902B (en) 2013-05-31 2013-05-31 A kind of paged data stowage, device and system based on server paging

Publications (2)

Publication Number Publication Date
CN104216902A CN104216902A (en) 2014-12-17
CN104216902B true CN104216902B (en) 2018-10-02

Family

ID=52098405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310215082.7A Active CN104216902B (en) 2013-05-31 2013-05-31 A kind of paged data stowage, device and system based on server paging

Country Status (1)

Country Link
CN (1) CN104216902B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632300B (en) * 2017-03-15 2021-12-10 阿里巴巴集团控股有限公司 Data synchronization system, method, server, client and electronic equipment
CN107679077B (en) * 2017-08-28 2020-03-24 平安科技(深圳)有限公司 Paging implementation method and device, computer equipment and storage medium
CN110555034B (en) * 2018-03-28 2021-11-09 武汉斗鱼网络科技有限公司 Data query paging method, device, server and medium
CN108647347B (en) * 2018-05-14 2023-07-11 中国平安财产保险股份有限公司 Paging display method, user equipment, storage medium and device
CN110134893B (en) * 2019-04-03 2022-05-31 广州朗国电子科技股份有限公司 Multi-mechanism retrieval display method and device based on cloud information publishing system
CN110134888B (en) * 2019-04-03 2022-05-31 广州朗国电子科技股份有限公司 Tree structure node retrieval method, device, storage medium and server
CN110134831B (en) * 2019-04-03 2021-08-10 广州朗国电子科技有限公司 Tree structure node retrieval display method and device based on cloud server
CN111581562B (en) * 2020-04-30 2023-04-11 北京字节跳动网络技术有限公司 Resource refreshing display method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209076A (en) * 2011-06-03 2011-10-05 用友软件股份有限公司 Method and system for interaction between server and client
CN102411585A (en) * 2010-09-21 2012-04-11 厦门市美亚柏科信息股份有限公司 Webpage paging data pre-loading method and system
CN102609445A (en) * 2010-12-10 2012-07-25 微软公司 Matching queries to data operations using query templates
CN102932453A (en) * 2012-10-31 2013-02-13 江苏博智软件科技有限公司 Method for achieving data center security system based on cloud computation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411585A (en) * 2010-09-21 2012-04-11 厦门市美亚柏科信息股份有限公司 Webpage paging data pre-loading method and system
CN102609445A (en) * 2010-12-10 2012-07-25 微软公司 Matching queries to data operations using query templates
CN102209076A (en) * 2011-06-03 2011-10-05 用友软件股份有限公司 Method and system for interaction between server and client
CN102932453A (en) * 2012-10-31 2013-02-13 江苏博智软件科技有限公司 Method for achieving data center security system based on cloud computation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于WCF服务框架与Silverlight的Web应用研究;谭淇;《计算机与现代化》;20110131(第1期);全文 *
基于WCF的远程数据访问技术研究;顾悦等;《电脑知识与技术》;20101130;第6卷(第31期);全文 *

Also Published As

Publication number Publication date
CN104216902A (en) 2014-12-17

Similar Documents

Publication Publication Date Title
CN104216902B (en) A kind of paged data stowage, device and system based on server paging
CN104252342B (en) Embedded application implementation method and device capable of configuring parameters
CN103678494B (en) Client synchronization services the method and device of end data
CN103049515A (en) Method, device and equipment for classifying application programs
US20150134913A1 (en) Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
WO2018213311A1 (en) Distributed versioning of applications using cloud-based systems
CN109446570B (en) Business process display method, device, computer equipment and storage medium
CN109408699B (en) Method for realizing rapid retrieval of tree nodes by synchronous cache zTree
CN102455930A (en) Method for classifying and installing application programs
CN111596965A (en) Project engineering initialization method, device, computer equipment and storage medium
CN101840418A (en) User word library synchronous update method, update server and input method system
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN111737609B (en) WEB system menu bar display method, terminal and storage medium
CN112099800B (en) Code data processing method, device and server
CN112114849B (en) Resource updating method and device
CN110659261A (en) Data mining model publishing method, model and model service management method
CN104461702A (en) Business processing method and business processing device
CN110069264A (en) Construct method, apparatus, computer equipment and the storage medium of resource packet
CN112149035A (en) Website static resource processing method and device
CN106446289B (en) Information query method and device based on Pinpoint
CN110471686A (en) Method, apparatus, computer equipment and the storage medium of automatic downloading driving
CN104572981B (en) A kind of Webpage method for caching and processing and mobile terminal device
CN110109880A (en) Image documents collecting method, device, equipment and computer readable storage medium
CN108897858A (en) The appraisal procedure and device, electronic equipment of distributed type assemblies index fragment
CN116339694B (en) Extension method and device of low-code platform assembly, electronic equipment and storage medium

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