Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
See also Fig. 1, be the structural representation of the embodiment of dynamic data processing device of the present invention; As shown in Figure 1, this device comprises: first load-on module 10, and enquiry module 20, the second load-on modules 30, dynamic relationship is set up module 40 and processing module 50.
This first load-on module 10 is used at least one table or the view that load at least one database and load said database; In concrete the realization, can be through getting into the configuration management interface of database, the IP or the machine name at input database server place; The input or select one or more databases, import or select at least one database, load through this first load-on module 10; After database loads successfully, inquire the tables of data or the Data View that are comprised in the said loaded data storehouse, and therefrom select at least one these table or view to carry out; Load through this first load-on module 10; Particularly, tables of data or Data View also can be carried in carrier (such as: tree construction), concrete loading procedure is identical with the loading of the layoutprocedure of existing data source; When selecting a database to load, compatible with prior art.In addition, the configuration of data source is included, but are not limited to loading of databases, also can load XML (Extensible Markup Language; Extend markup language) data file; Or XSD (XML Schemas Definition, XML organization definition) data file or the like, do not give unnecessary details at this.
This enquiry module 20 is used for from the said table of said first load-on module 10 loadings or all fields of view;
This second load-on module 30 is used for the said field that said enquiry module 20 inquires is loaded into first carrier; In concrete the realization, this first carrier is positioned at presentation layer, is used for ccontaining or loading data.Particularly, this first carrier is the entity in the application program, can include but not limited to: any one or more in tree construction, window and the control.
This dynamic relationship is set up module 40, is used for selecting any or a plurality of field from said first carrier, and the field of said selection is dragged to second carrier, makes the field of said second carrier and said selection set up data relationship; In concrete the realization, this second carrier is used for ccontaining or loading data for being positioned at presentation layer.Particularly, this second carrier is the entity in the application program, can include but not limited to: any one or more in tree construction, window and the control.
This processing module 50 is used for handling the data in the field on said second carrier in application.In concrete the realization; The processing of processing module 50 in application is according to the difference of each application; Its processing mode is also different; Such as: this processing module 50 is handled the field on said second carrier in application processing mode can include but not limited to: show the data in this field, delete in data and the data of revising in this field in this field any one or more.
See also Fig. 1 again, this device also comprises: sending module 60.
This sending module 60 is used for the data of the field after said processing module 50 processing are sent to the database that said field belongs to; Said processing module 50 can also be sent to other databases with the data in the field after handling; In concrete the realization; After the data of 50 pairs of fields of this processing module are handled; This sending module 60 can resend the data after handling to database, so that the data in the database are used in follow-up application.
Or: this sending module 60 is used for the data of the field after said processing module 50 processing are sent to new application, in concrete the realization; Can there be a plurality of application simultaneously in data access; So, after the data of 50 pairs of fields of this processing module were handled accordingly, this sending module 60 can also send to the data after handling other application and use these data; Like this, can be implemented in other application of processing in the application program.
The data stream of the dynamic data processing of present embodiment specifically can be the DFD of dynamic data processing system of the present invention to the data processing referring to Fig. 2.
The present invention makes more horn of plenty of Data Source through in one or more databases, extracting data; In the mode that presentation layer drags, set up data relationship intuitively, dynamically, and data are handled accordingly at presentation layer, comprise demonstration, modification, deletion or the like, make presentation layer more flexible to the processing of data.
For clearer explanation the present invention, will set up module to the dynamic relationship of dynamic data processing device of the present invention below and do detailed introduction.
See also Fig. 3, set up the structural representation of the embodiment of module for the dynamic relationship of dynamic data processing device of the present invention; This dynamic relationship is set up module 40 and comprised: selected cell 401 drags unit 402, storage unit 403, loading unit 404 and acquiring unit 405.
This selected cell 401 is used for selecting any or a plurality of field from said first carrier; In concrete the realization, can use some data,, in concrete the realization, can realize selection through click from one or more fields at these data places of said first carrier selection according to needs in using at this.
This drags unit 402, is used to drag field to the second carrier of said selection; In concrete the realization; This drags unit 402 can carry out dragging of field through mouse; Such as: with the field that left mouse button (or right button) some residence is selected, drag this field to the second carrier then after, unclamp left mouse button (or right button); Promptly realized the process that drags of field, this process that drags has been showed the dynamic foundation of data relationship comparatively intuitively.
This storage unit 403 is used for dragging the process that unit 402 drags said, writes down the table or the view at the said field that drags, the said field place that drags, and the database at the said field place that drags;
This loading unit 404 is used to load the said field that drags to said second carrier, and after loading through this loading unit 404, second carrier has promptly loaded this field that drags;
In concrete the realization, see also Fig. 4, set up the structural representation of embodiment of the loading unit of module for dynamic relationship of the present invention; This loading unit 404 comprises: judging unit 411, the first loading units 412 and second loading unit 413.
This judging unit 411 is used to judge on said second carrier whether field is arranged;
This first loading unit 412 is used for being judged as when being when said judging unit 411, loads the said field that drags to said second carrier to replace original field;
This second loading unit 413 is used for when said judging unit 411 is judged as not, directly loading the said field that drags to said second carrier.
See also Fig. 3 again:
This acquiring unit 405; Be used for obtaining the table at the said field place that drags or the database at view and place from said storage unit 403; After this acquiring unit 405 carries out corresponding obtaining, promptly set up the data relationship of second carrier and the field on it, in application; Promptly can be connected to the data of extracting in the field in the database and handle accordingly according to data relationship.
The present invention makes more horn of plenty of Data Source through in one or more databases, extracting data; In the mode that presentation layer drags, set up data relationship intuitively, dynamically, and data are handled accordingly at presentation layer, comprise demonstration, modification, deletion or the like, make presentation layer more flexible to the processing of data.
For clearer explanation the present invention, will do detailed introduction to the processing module of dynamic data processing device of the present invention below.
See also Fig. 5, be the structural representation of the embodiment of the processing module of dynamic data processing device of the present invention; This processing module 50 comprises: data linkage unit 501 and data-reading unit 502.
This data linkage unit 501 is used for the said database, table or the view that obtain according to said acquiring unit 405, is connected to the said database that obtains, and inquires said table that obtains or view;
This data-reading unit 502 is used for finding the field on said second carrier from table or view that said data linkage unit 501 inquires, and reads the data in the said field.
See also Fig. 5 again, this processing module 50 also comprises: display unit 503, revise unit 504 and delete cells 505.
This display unit 503 is used for showing the data that said data-reading unit reads in application;
This revises unit 504, is used for revising the data that said data-reading unit reads in application;
This delete cells 505 is used for the data that read in the said data-reading unit of application deletion.
In concrete the realization; This processing module 50 comprises above-mentioned display unit 503, revises in unit 504 and the delete cells 505 any one or more, and this mainly is to be determined by the processing mode to each application; Because using, each has difference; Its processing mode is also different, and therefore, this processing module 50 is not limited to above-mentioned three kinds of pairing unit of processing mode.Particularly; Above-mentioned three kinds of processing modes of this processing module 50 can exist simultaneously; It is only handled simultaneously need read the data that will handle through above-mentioned data linkage unit 501 and data-reading unit 502; Handle accordingly then, so just overcome to handle in the prior art at every turn and all need set up specific database in advance and be connected this technological deficiency with tables of data.
The present invention makes more horn of plenty of Data Source through in one or more databases, extracting data; In the mode that presentation layer drags, set up data relationship intuitively, dynamically, and data are handled accordingly at presentation layer, comprise demonstration, modification, deletion or the like, make presentation layer more flexible to the processing of data.
For clearer explanation the present invention, will do detailed introduction to data dynamically-processing method of the present invention below.
See also Fig. 6, be the process flow diagram of first embodiment of data dynamically-processing method of the present invention; As shown in Figure 6, this method comprises:
S101 loads at least one database and loads at least one table or the view in the said database;
S102, all fields of inquiring about the table or the view of said loading are loaded into said field on first carrier;
S103 selects any or a plurality of field from said first carrier, and the field of said selection is dragged to second carrier, makes the field of said second carrier and said selection set up data relationship;
S104 handles the data in the field on said second carrier in application.
In concrete the realization; Difference according to each application; The processing mode of S104 is also different; Such as: S104 handles the field on said second carrier in application processing mode can include but not limited to: show the data in this field, delete in data and the data of revising in this field in this field any one or more.
The present invention makes more horn of plenty of Data Source through in one or more databases, extracting data; In the mode that presentation layer drags, set up data relationship intuitively, dynamically, and data are handled accordingly at presentation layer, comprise demonstration, modification, deletion or the like, make presentation layer more flexible to the processing of data.
See also Fig. 7, be the process flow diagram of second embodiment of data dynamically-processing method of the present invention; Particularly, the dynamically flow process of foundation of data relationship that embodied embodiment illustrated in fig. 7; As shown in Figure 7, this method comprises:
S201 selects any or a plurality of field from said first carrier; In concrete the realization, can use some data,, in concrete the realization, can realize selection through click from one or more fields at these data places of said first carrier selection according to needs in using at this.
S202, mouse drag field to the second carrier of said selection; In concrete the realization; Such as: with the field that left mouse button (or right button) some residence is selected, drag this field to the second carrier then after, unclamp left mouse button (or right button); Promptly realized the process that drags of field, this process that drags has been showed the dynamic foundation of data relationship comparatively intuitively.
In concrete the realization, mouse drags implementation procedure can drag the synoptic diagram of realization referring to Fig. 8 for mouse; As shown in Figure 8:
Left mouse button (right button) is selected a literary name section on the carrier, pins mouse and does not put, and drags field; In the process of dragging, the literary name section that drags of record in have storage unit, can begin to monitor mouse state by calling system API (Application Programming Interface, API) then; The field that mouse drags gets in second carrier, and second carrier is caught the cursor of mouse, changes the Show Styles of cursor; On second carrier, unclamp mouse, API monitors mousebutton and unclamps, and composes the data of the field of memory to second carrier then, discharges API, stops mouse and monitors, and it is initial state that mouse state is set.The process that mouse drags is not given unnecessary details at this with existing similar to utilizing of mouse.Use mouse to drag the foundation that realizes data relationship, more directly perceived.
See also Fig. 7 again:
S203 writes down the table or the view at the said field that drags, the said field place that drags, and the database at the said field place that drags;
S204, whether second carrier on have field, if judged result is for being then to carry out step S205 if judging; If judged result is then carried out step S206 for not;
S205 replaces original field; In concrete the realization, original field replaced through loading the said field that drags to said second carrier realize.
S206 directly loads the said field that drags to said second carrier;
S207 obtains said field place table or the view that drags, and the database at the said field place that drags.
The present invention makes more horn of plenty of Data Source through in one or more databases, extracting data; In the mode that presentation layer drags, set up data relationship intuitively, dynamically, and data are handled accordingly at presentation layer, comprise demonstration, modification, deletion or the like, make presentation layer more flexible to the processing of data.
See also Fig. 9, be the process flow diagram of the 3rd embodiment of data dynamically-processing method of the present invention, this method comprises:
S301 according to the database that obtains, table or view, is connected to the said database that obtains, and inquires said table that obtains or view;
S302 finds the field on said second carrier, and reads the data on the said field from said table that inquires or view;
S303 shows the data that read among the S302 in application;
S304 revises the data that read among the S302 in application;
S305, the data that in application, read among the deletion S302;
S306 sends the database at data to the said data place after S303, S304 and S305 handle, or sends data to the new application after S303, S304 and S305 handle.
The present invention makes more horn of plenty of Data Source through in one or more databases, extracting data; In the mode that presentation layer drags, set up data relationship intuitively, dynamically, and data are handled accordingly at presentation layer, comprise demonstration, modification, deletion or the like, make presentation layer more flexible to the processing of data.
For clearer explanation the present invention, will do detailed introduction to data dynamically-processing method of the present invention with an instantiation below.
Figure 10-17 is the synoptic diagram of the 4th embodiment of data dynamically-processing method of the present invention.See also Figure 10, be the synoptic diagram that database loads, shown in figure 10:
Through the interface of database configuration management, the IP or the machine name at input database server place; Input or selection database; The input username and password; The description of input database (mainly being to manage for ease).Click to preserve then, attempt connecting the server at database place with username and password, if successful connection then add freelist to, otherwise prompting makes mistakes.After successfully connecting, then accomplished the loading of database.
See also Figure 11, be the synoptic diagram of the loading of any table or view in the database, shown in figure 11:
From above-mentioned freelist, select a database, click when confirming, can inquire tables of data or Data View that this database comprises.Then, can load these tables or view by tree construction (carrier).Further shown in figure 11, this tree construction is with database masterpiece root node, and table and view are done child node, and table name and view name are done leaf.
See also Figure 12, be the synoptic diagram that table or the field of view load, shown in figure 12:
Select any table or view, can inquire when click confirming this table or view all fields, add these fields on the tree construction (first carrier) to.Wherein, database masterpiece root node, table or view are done child node, and field is done leaf.
Figure 13-16 is field and the second carrier (control in the webpage: display field) set up synoptic diagram under each state in the process of data relationship.See also Figure 13, for data relationship of the present invention is set up first view in the process; Shown in figure 13:
As above-mentioned, database has been arranged, tables of data (view) and field;
See also Figure 14, for data relationship of the present invention is set up second view in the process, shown in figure 14:
The leaf node of click data table tree is chosen one of them field;
See also Figure 15, for data relationship of the present invention is set up the third state synoptic diagram in the process, shown in figure 15:
Press left mouse button (right button) and do not put, move to mouse in the applying web page, in the process of dragging, write down this leaf node and monitor mouse state, unclamp mouse, stop to monitor, recover mouse to original state in the place of display field;
See also Figure 16, for data relationship of the present invention is set up the four condition synoptic diagram in the process, shown in figure 16:
Display field promptly obtains the leaf node data (field) that drag, and sets up data relationship with this field.
See also Figure 17, be the synoptic diagram of the application processes of the 4th embodiment of data dynamically-processing method of the present invention, being applied as in the present embodiment opened news web page, and application processes is the data of display field, and is shown in figure 17:
Through aforesaid operations, be connected to database server, from data of database table or view, extract the data of respective field, then in the corresponding data of position display of the display field of webpage.
Through the description of the foregoing description, the present invention makes more horn of plenty of Data Source through in one or more databases, extracting data; In the mode that presentation layer drags, set up data relationship intuitively, dynamically, and data are handled accordingly at presentation layer, comprise demonstration, modification, deletion or the like, make presentation layer more flexible to the processing of data.
Above disclosedly be merely a kind of preferred embodiment of the present invention; Certainly can not limit the present invention's interest field with this; One of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description; And, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.