CN105512314A - Separable data processing method realized in applications - Google Patents

Separable data processing method realized in applications Download PDF

Info

Publication number
CN105512314A
CN105512314A CN201510931851.2A CN201510931851A CN105512314A CN 105512314 A CN105512314 A CN 105512314A CN 201510931851 A CN201510931851 A CN 201510931851A CN 105512314 A CN105512314 A CN 105512314A
Authority
CN
China
Prior art keywords
pattern
page
data
application program
processing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510931851.2A
Other languages
Chinese (zh)
Inventor
宋健华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Song Lianxing
Original Assignee
Song Lianxing
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 Song Lianxing filed Critical Song Lianxing
Priority to CN201510931851.2A priority Critical patent/CN105512314A/en
Publication of CN105512314A publication Critical patent/CN105512314A/en
Pending legal-status Critical Current

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention provides a separable data processing method realized in applications. According to the separable data processing method, a persistent layer, a logical layer, a caching layer and a presentation layer are included, wherein the logical layer comprises two steps as follows: S21, an abstract page mode; S22, abstract page mode post-processing. The method has the advantages as follows: repeated coding work of most data processing type applications is reduced, and requirements of development of the applications for technicians are reduced; complete business logic is expressed by the aid of graphical interfaces, symbol expressions and form codes, and the realization period of the applications is shortened; meanwhile, the applications are very easy to upgrade and maintain due to real-time adjustability on all layers.

Description

One realizes separable data processing method in application program
Technical field
The present invention relates to computer applied algorithm field, particularly one realizes separable data processing method in application program.
Background technology
The development of internet and IT technology, makes distributed application program be applied to the every field such as production, life, business application more and more.Height for all kinds of distributed application program relies on, and makes people have to try every possible means to shorten R&D cycle, the reduction maintenance cost of distributed application program.Separable data processing method, designs for this situation just.
The method for designing of existing distributed application program as shown in Figure 1.It comprises persistent layer 1, logical layer 2, cache layer 3 and presentation layer 4.Data successively through persistent layer 1, logical layer 2, cache layer 3 and presentation layer 4 carrying out in each layer processing, export to user by presentation layer after the process such as classification; Otherwise, also can carry out processing in each layer by presentation layer 4, cache layer 3, logical layer 2 and persistent layer 1 successively from the data of user's input, the process such as classification.
Use Object Relation Mapping (ObjectRelationalMapping, be called for short ORM) can only the type that allows of supporting database in prior art persistent layer 1, some type of foundations other in actual demand need extra work, such as geographic position.Meanwhile, the information of binary file store data structure (databasescheme) is used in prior art.Such shortcoming is: adjust data structure at every turn, all will recompilate code.
Adopt manpower to write interface in prior art logical layer 2, manpower writes event, affairs, trigger.Such shortcoming is: a lot of repetitive work consumes very large human cost, time cost.
In prior art cache layer 3 operation technique personnel encode implementation rule and use compiling binary code storage rule.Such shortcoming is: data buffer storage rule can not real time modifying or amendment complexity.
Use in prior art presentation layer 4 that manpower writes control, manpower calls other layer method or interface, end interface is optimized in manpower typesetting, manpower solves compatibility issue.Such shortcoming is: take time and effort.
Summary of the invention
For solving the problem, the present invention proposes one and in application program, realizing separable data processing method, to solve the problem.
To achieve these goals, the present invention adopts following technical scheme:
One realizes separable data processing method in application program, comprises persistent layer, logical layer, cache layer and presentation layer; Logical layer comprises two steps, is respectively:
Step S21: abstract page pattern;
Step S22: abstract page pattern aftertreatment.
Preferably, in persistent layer database itself from the information of store data structure.
Preferably, described step S21 abstract page pattern is divided into two steps:
Step S211: the page is distinguished;
Step S212: the page distinguishes aftertreatment.
Preferred further, the described step S211 page is distinguished and is specifically adopted functional differentiation to the page itself, divides into newly-built page, page, list page or details page and 2 kinds and combination of more than two kinds above.
Preferred further, the step S212 page is distinguished aftertreatment and is divided into following step:
Step S2121: single page process;
Step S2122: relationship maps;
Step S2123: batch processing;
Step S2124: query processing;
Step S2125: statistical treatment.
Preferred further, the process of step S2121 single page can be divided into: the newly-built pattern of S2121-1 single page; S2121-2 single page edit pattern and S2121-3 single page details pattern; The newly-built pattern of S2121-1 single page: corresponding is any the situation operating single table data, and the action of operation is data inserting; S2121-2 single page edit pattern: the situation of corresponding is operation individual data table, the action of operation is more new data; S2121-3 single page details pattern: corresponding is the situation operating individual data table, the action of operation is inquiry.
Preferred further, step S2122 relationship maps can be divided into: S2122-1 associates creation mode; S2122-2 dependent compilation pattern and S2122-3 associate details pattern; 1+1,1+N or 1+M+N association can be divided into according to the difference of the number of affiliated partner.
Further preferred, S2122-1 associates creation mode and 1+1 can be divided into associate creation mode, 1+N association creation mode or 1+N+M association creation mode; 1+1 associates creation mode: operate 2 tables of data, and these two tables of data meet 1 couple 1 mapping relations of database aspect, the action of operation is synchronous insertion simultaneously; 1+N associates creation mode: operate 2 tables of data simultaneously, and these two tables of data, meet 1 pair of N mapping relations of database aspect, the action of operation is synchronous insertion.
Further preferred, S2122-2 dependent compilation pattern can be divided into 1+1 dependent compilation pattern, 1+N dependent compilation pattern or 1+N dependent compilation pattern; 1+1 dependent compilation pattern: simultaneously operate 2 tables of data, and these two tables of data, meet 1 couple 1 mapping relations of database aspect, the action of operation is synchronized update; 1+N dependent compilation pattern: simultaneously operate 2 tables of data, and these two tables of data, meet 1 pair of N mapping relations of database aspect, the action of operation is synchronized update.
Further preferred, S2122-3 associates details pattern and 1+1 can be divided into associate details pattern, 1+N association details pattern or 1+N+M association details pattern; 1+1 associates details pattern: operate 2 tables of data simultaneously, and these two tables of data, meet 1 couple 1 mapping relations of database aspect, the action of operation is inquiry 1+N dependent compilation pattern: operate 2 tables of data simultaneously, and these two tables of data, meet 1 pair of N mapping relations of database aspect, the action of operation is inquiry.
Preferred step S2123 batch processing can be divided into further: the S2123-1 newly-built pattern of batch and S2123-2 batch edit pattern; What the newly-built pattern of S2123-1 batch was corresponding is the single table of operation, and the action of operation is data inserting; S2123-2 batch edit pattern: corresponding is the single table of operation, the action of operation is more new data.
Preferred further, step S2124 query processing specifically refers to: the tables of data of any number of association, specifies search condition, sortord according to user, filters out the data query result of paging.
Preferred further, step S2125 statistical treatment specifically refers to: to any number of contingency table, arranges or after multiple row grouping, realize the pattern of statistical study by appointment 1.
Preferably, abstract page pattern aftertreatment S22 comprises the following steps, and is respectively:
Step S221: integrated data interface automatically;
Step S222: automatically generate necessary event;
Step S223: Graphic Interface Control flow process;
Step S224: data query, write;
Step S225: providing data formatting, event, triggering.
Preferred further, automatic integrated data interface S221 comprises the following steps:
Step S2211: select abstract page pattern;
Step S2212: configuration field;
Step S2213: calculate;
Step S2214: calculate aftertreatment.
Further preferred, step S2214 calculates aftertreatment and also comprises:
Step S22141 generating codes etc. are to be called;
Step S22142 generates general-purpose interface.
Preferably, character expression implementation rule and database purchase implementation rule is used in cache layer.
Preferably, in presentation layer, data type and expansion type have the unit control of acquiescence corresponding with it.
The present invention has the following advantages:
Decrease the repeated encoding work of most process data class application program, reduce the requirement of developing application for technician.Express complete business logic by graphical interfaces, character expression, fotmat code, shorten application program performance period.The whole property of real-time, tunable of every aspect, allows the upgrade maintenance of application program become very easy simultaneously.
Accompanying drawing explanation
In order to illustrate advantages and features of the invention further, present with reference to accompanying drawing.
The description more specifically of various design of the present invention.Be appreciated that modular design of the present invention only described by these accompanying drawings, therefore will not be considered to restriction on its scope.The present invention will describe by using accompanying drawing supplementary features and details and explain.
Figure 1 shows that the method for designing data flowchart of distributed application program in prior art.
Figure 2 shows that logical layer data flowchart of the present invention.
Figure 3 shows that the data flowchart of abstract page pattern in logical layer of the present invention.
Figure 4 shows that the automatic integrated data interface data flow process figure in logical layer of the present invention.
Embodiment
Do to illustrate in detail, intactly further to the present invention below in conjunction with embodiment and accompanying drawing.
The persistent layer of indication of the present invention is one group of software service, the data source that application program and this program use is separated, for whole invention provides a unification, safe, concurrent lasting data mechanism.It can be the method that programmer avoids hand-coding access data sources, is absorbed in the exploitation of service logic, and can reuse in disparity items.
The logical layer (that is: Business Logic) of indication of the present invention comprises the formulation that application program realizes business rule, the system that the realization of operation flow etc. are relevant with business demand.Such as: complete data interpolation, amendment and inquiry business etc.; Do not allow to input null character string in the text box of specifying; Whether data layout correct and data type checking; The validity judgement etc. of user right.By above many judgements to determine whether operation continued to transmit backward, the normal operation of guarantee program as far as possible.
The cache layer of indication of the present invention refers in particular to network-caching, is a kind of emerging network technology reducing Internet flow and improve end-user response time.
Indication presentation layer of the present invention is positioned at application program outermost layer (the superiors), closest to user.For showing the data of data and reception user input, for user provides a kind of interface of interactive operation.
Of the present invention focusing on is improved above-mentioned presentation layer, cache layer, logical layer and persistent layer and is optimized.
Separable finger data processing method can exist independent of translation and compiling environment.The present invention, by trustship system, sets up data system and persistent layer, logical layer, the self-adaptation rapport of cache layer and presentation layer.Trustship system itself is the distributed application program platform having compiled deployment.
Trustship system data structure and relevant database data structure form real-time synchronization relation.Trustship system implants service logic in real time by character expression, graphical interfaces, abstract page pattern, fotmat code (class javascript) etc.For the data set defined in trustship system, can based on conditional definition buffer memory.The behavior of presentation layer is realized with template automatically by abstract page pattern.Presentation layer can be computer terminal, also can be mobile terminal.
From aforementioned presentation layer, cache layer, logical layer and persistent layer four levels, the present invention will be described in detail respectively below.
Persistent layer:
Relative to the information of binary file store data structure of the prior art, (database here refers to general relevant database to adopt database in the present invention, in actual practice, auxiliary system database is same with Service Database, claims to distinguish purposes by different table names) information from store data structure own.In this case, adjustment data structure only needs the record in Update Table storehouse, directly can arrange amendment by trustship system backstage.Such benefit is: data structure is upgradeable in real time, reduces maintenance cost.
Such as: in form ordering system, because business need order table needs to add reimbursement field, universal method needs Update Table storehouse field, and amendment application source code, recompilates, and replaces software version, could finishing service expansion.Only need in the present invention to add on backstage the upgrading that reimbursement field just completes business demand, save cataloged procedure, save compiling and replace version process.
Object Relation Mapping in prior art persistent layer can only supporting database allow type.Relative to use Object Relation Mapping of the prior art, in persistent layer of the present invention, adopt trustship system persistence method.Persistence is the mechanism changed between permanent state and instantaneous state by routine data.The expansion of trustship system persistence method supports the type of foundation of multilist multi-field.Expansion type, in persistent layer, can call as the base data type of prior art relevant database.Expansion type comprises but is not limited only to: type of attachment, user right type, flow process type, tag types, succession type, multimode type, multiuser types, geographic location type.With reference to method of the present invention, the expansion type that other repeat usage of technician's definable is high.Expansion type simplifies business model, avoids a large amount of repeated coding work.
Such as: the geographic location type of definition, 4 fields are comprised: longitude, dimension, specific address or city digital are numbered.Technician is without the need to making entity class by oneself to realize this universal architecture.(it should be noted that: the database of part itself supports longitude, the geographic position of dimension at present).
Trustship system persistence method belongs to content of the present invention, and concrete practice is as follows: in relevant database, sets up system data table, unified management traffic table, traffic table field.All traffic table titles, traffic table field in system data table all existence anduniquess numbering.Then traffic table structure, traffic table field, is synchronized in distributed caching.When data persistence, first query caching obtains the table needed associated by persistence object, and the field of association, then generates database script by interpreter, realizes persistence.The maximum benefit of the method is, data structure real-time variable.
Logical layer:
Shown in logical layer data flowchart as of the present invention in Fig. 2.Mainly comprise two steps in logical layer, be respectively:
Step S21: abstract page pattern;
In above-mentioned steps S21, after each schema instance, all generate unique number in systems in which.
The object of numbering here conveniently calls, the pattern of an instantiation, represents a function, and when having unique number, as long as access number, system can this function of Automatically invoked.In large-scale application program, function is thousands of, only has by unique number, product function quantification, and could handled easily.
Step S22: abstract page pattern aftertreatment.
Data enter first through step S21 abstract page pattern after logical layer, and then carry out the aftertreatment of step S22 abstract page pattern.
Here step S21 have employed the method for designing of abstract page pattern.In abstract page pattern, the field of abstract two word finger print formulas and concrete practice has nothing to do, and pattern two word refers to the universal model after specific function removal field details.The benefit of the method for designing of abstract page pattern is: reduce human cost, shortens time cost.Abstract page pattern is core part of the present invention, below main definition and the method for designing explaining it.
In logical layer of the present invention as shown in Figure 3 abstract page pattern data flowchart shown in, step S21 abstract page pattern is mainly divided into two steps.
Step S211: the page is distinguished;
Step S212: the page distinguishes aftertreatment.
Below in conjunction with example, above-mentioned steps is described in detail.
The step S211 page is distinguished: current Generation Internet and the application of the overwhelming majority are the access modes in units of the page, so the page is a kind of general character of application program.To the page itself, we adopt functional differentiation: newly-built page, page, list page, details page, and 2 kinds and combination of more than two kinds above.This point-score is exactly the definition of abstract page pattern.
Such as: it is exactly list page pattern that shopping website browses series of products, check that the details of single product are exactly details page modes.Searching travelling route in tour site is exactly list page pattern, checks that the specifying information of single line, price etc. are exactly details page mode etc.
Distinguish aftertreatment for the step S212 page, it can be divided into step arranged side by side as follows:
Step S2121: single page process;
Step S2122: relationship maps;
Step S2123: batch processing;
Step S2124: query processing;
Step S2125: statistical treatment.
It should be noted that step S212 page differentiation aftertreatment has more than and be limited to above-mentioned 5 steps.
The process of step S2121 single page can be divided into: the newly-built pattern of S2121-1 single page; S2121-2 single page edit pattern and S2121-3 single page details pattern.Be specifically described as follows:
The newly-built pattern of S2121-1 single page: corresponding is any the situation operating single table data.The action of operation is data inserting.Such as: issue single merchandise news.
S2121-2 single page edit pattern: the situation of corresponding is operation individual data table, the action of operation is more new data.Such as: upgrade single merchandise news.
S2121-3 single page details pattern: corresponding is the situation operating individual data table, the action of operation is inquiry.
Step S2122 relationship maps can be divided into: S2122-1 associates creation mode; S2122-2 dependent compilation pattern and S2122-3 associate details pattern.1+1,1+N or 1+M+N association can be divided into according to the difference of the number of affiliated partner simultaneously.Here 1+1,1+N or 1+N+M are the corresponding relations in mathematical meaning.1+1 can be understood as mathematical 1 and maps 1; 1+N can be understood as the mapping of 1 couple of N; 1+N+M is the expansion of 1+N, refers in the tables of data simultaneously operated, and one is master meter, and other have more than one (M) to be the contingency table of 1 couple of N.
S2122-1 associates creation mode and 1+1 can be divided into associate creation mode, 1+N association creation mode or 1+N+M association creation mode.Be specifically described as follows:
1+1 associates creation mode: operate 2 tables of data, and these two tables of data meet 1 couple 1 mapping relations of database aspect, the action of operation is synchronous insertion simultaneously;
1+N associates creation mode: operate 2 tables of data simultaneously, and these two tables of data, meet 1 pair of N mapping relations of database aspect, the action of operation is synchronous insertion;
1+N+M associates creation mode by that analogy, has not just been described in detail.
S2122-2 dependent compilation pattern can be divided into 1+1 dependent compilation pattern, 1+N dependent compilation pattern or 1+N dependent compilation pattern.Be specifically described as follows:
1+1 dependent compilation pattern: simultaneously operate 2 tables of data, and these two tables of data, meet 1 couple 1 mapping relations of database aspect, the action of operation is synchronized update;
1+N dependent compilation pattern: simultaneously operate 2 tables of data, and these two tables of data, meet 1 pair of N mapping relations of database aspect, the action of operation is synchronized update;
1+N+M dependent compilation pattern by that analogy, has not just been described in detail.
S2122-3 associates details pattern and 1+1 can be divided into associate details pattern, 1+N association details pattern or 1+N+M association details pattern.Be specifically described as follows:
1+1 associates details pattern: operate 2 tables of data simultaneously, and these two tables of data, meet 1 couple 1 mapping relations of database aspect, the action of operation is inquiry;
1+N dependent compilation pattern: simultaneously operate 2 tables of data, and these two tables of data, meet 1 pair of N mapping relations of database aspect, the action of operation is synchronized update;
1+N+M dependent compilation pattern by that analogy, has not just been described in detail.
Here associate details pattern with 1+N to illustrate, as follows:
Check that news content and related commentary meet 1+N association details first for certain.Here necessary tables of data has 2 at least, and one is news content table (as shown in table 1), and one is user comment table (as shown in table 2).
Table 1: news content table
Numbering Title Content
1 Central authorities' news Fiscal and taxation system is reformed ...
2 Local items Achievement administered by haze ...
Table 2: the comment table of simplification
For any news item, such as numbering 1-central authorities news can have N bar related commentary.Namely { comment numbering 1, comment numbering 2, comment numbering 4} in comment table.Such situation is in database field, and we just say that news table and comment table meet the mapping of 1 couple of N.1+N is meant to the data simultaneously calling two tables, meets the data-mapping relation of 1 couple of N between invoked two tables.
The details page finally generated is as follows:
Central authorities' news
Fiscal and taxation system is reformed ...
........................
........................
Comment d-user d-time 11:54
Comment b-user b-time 11:52
Comment a-user a-time 11:51
Step S2123 batch processing can be divided into: the S2123-1 newly-built pattern of batch and S2123-2 batch edit pattern.Be specifically described as follows:
The newly-built pattern of S2123-1 batch: corresponding is the single table of operation, and the action of operation is data inserting.Refer to that this pattern can insert many records simultaneously in single table in batches;
S2123-2 batch edit pattern: corresponding is the single table of operation, the action of operation is more new data, refers to many records simultaneously upgraded in same table in batches.
Step S2124 query processing is also called intersection Query List pattern, specifically refers to: the tables of data of any number of association, specifies search condition, sortord according to user, filter out the data query result of paging.
Step S2125 statistical treatment is also called classified statistics pattern, specifically refers to: to any number of contingency table, arranges or after multiple row grouping, realize the pattern of statistical study by appointment 1.
Abstract page pattern aftertreatment S22 can comprise the following steps again, is respectively:
Step S221: integrated data interface automatically;
Step S222: automatically generate necessary event;
Step S223: Graphic Interface Control flow process;
Step S224: data query, write;
Step S225: providing data formatting, event, triggering.
Above-mentioned steps object is to meet the different demand of operation system.
Step S221, step S222, step S223 and step S224 have been calculated automatically by computing machine, and step S225 is the adjustment carried out to meet different business details in practice process, and this part needs manually to have come.
Data can carry out third party's data interaction after the automatic integrated data interface of step S221; Data generate automatically through step S222 must can optimized integration service logic after event; Data can realize upgrading or logic of activating business after step S223 Graphic Interface Control flow process, step S224 data query, write or step S225 providing data formatting, event, triggering.
The certain human cost of interface consumption is write, time cost relative to the skilled manpower of prior art; The automatic integrated data interface of step S221 of the present invention greatly promotes efficiency.In logical layer as of the present invention in Fig. 4 shown in step S221 automatic integrated data interface data flow process figure.Automatic integrated data interface S221 comprises the following steps:
Step S2211: select abstract page pattern;
Step S2212: configuration field;
Step S2213: calculate;
Step S2214: calculate aftertreatment.
After step S2211 selects abstract page pattern and this two step of step S2212 configuration field to operate, the essential information required for business function possesses completely.Step S2213 calculates and specifically refers to: computing machine, by a series of calculating, generates the necessary code of function that the abstract page pattern of selection is corresponding.
Being explained as follows of the function that the abstract page pattern selected is corresponding: such as, if the abstract page pattern selected above is the newly-built pattern of single page, the field details simultaneously configured issues the relevant field of second-hand information.So this function refers to that user issues this basic function of second-hand information.
Step S2214 calculates aftertreatment and also comprises:
Step S22141 generating codes etc. are to be called;
Step S22142 generates general-purpose interface.
Here step S22141 generating code etc. are to be called refers to after calculate the necessary code of function corresponding to abstract page pattern generating and select through step S2213, puts into internal memory etc. to be called, for common user access; Step S22142 generates general-purpose interface and refers to the general-purpose interface calculating this function generated through step S2213, calls for third party application.
For the automatic integrated data interface of step S221, be described with the example of news and comment here, describe as follows:
The automatic integrated data interface of abstract page pattern is exemplified below: suppose that the pattern selected is that 1+N associates details patterns, the function that realize is: third party's program just can obtain the review information of the content of news and this then news by numbering of transmitting news.
The parameter that in practice process, third party calls, send has 2.One is function corresponding to called pattern (here with unique number x citing), another be the news numbering that will obtain (such as: 1578).
The interpretation process of computing machine is such: the function x that third party's request mode is corresponding, pattern belonging to this function of computer inquery.Under this pattern of computer inquery, be associated with which tables of data, be configured with which field.Computing machine, according to table information, field information and institute's lectotype, generates corresponding database access script, accessing database.After data return, if domestic consumer's access presents result (web page news original text) in user interface mode; If third party's routine access is then by JSON data layout, provide machine understandable data.
Form is as follows: and ' title ': ' central news ', ' content ': ' fiscal and taxation system is reformed ... ', numbering ': ' 1 ' }
Above-mentioned example, in order to simplified model has concealed schema authorization process, in the process of actual practice, third party's program also needs configuration access key (auth_key), is only a complete interface.
Adopt skilled manpower to write affair, triggering etc. in prior art, human cost and time cost high; Abstract page pattern of the present invention, step S222 generates necessary event automatically, greatly improves efficiency.
Automatic generation must event steps flow chart with automatic integrated data interface be the same.Event must refer to: the abstract page pattern after each instantiation, represent a fixing systemic-function.
Such as: the example of the newly-built pattern of single page, operation database list table being carried out to data inserting is certainly led to.1+1 associates creation mode, certainly leads to meeting 1 operation to 1 two tables of data mapped data inserting simultaneously.
Automatic generative process is: under this pattern of computer inquery, be associated with which tables of data, be configured with which field.Computing machine is according to table information, field information and institute's lectotype, and generate corresponding database access script, accessing database, the form with user interface after data return presents to domestic consumer.
The scene of certain practical application is introduced complicated many than example.In the process of many times abstract page schema instance, there is a lot of details may have different adjustment.These adjustment comprise but are not limited only to extra providing data formatting, data cross, comparison, assignment, triggering, event and calculating etc.
The present invention is by step S223 Graphic Interface Control flow process, and step S224 realizes data query, write automatically; Step S225 is by character expression, and fotmat code, realizes extra event, providing data formatting.
Here: extra event, extra triggering all refers to not be included in other details in step S222 underlying business logic function.Extra is all nonessential situation.
Step S224 reality is automatically generating and must realize in event.
Step S223 is optional step, only just can use in the application program needing Row control.
Step 221, step 222, step 223 and step 224 are all automatically completed by machine, allly all relate to character expression; The part of fotmat code is all artificial treatment in fact, belongs to s225 step.
Step S225 is to step 221, step 222, step 223, and the expansion of step 224 is with supplementary.In schema instance process, in order to practical requirement may adjust some details.This adjustment needs step S225 to come.Step 225 still needs in the present invention to want the part of artificial treatment.
The benefit of this serial of methods is: when realizing business demand, only need be concerned about that the most abridged table of business function and business function reaches, without the need to being concerned about extra coded portion, being also not limited to and using any technology, when technology migration simultaneously, there is not compatibility issue.
For upgrading or the expansion of application program, prior art operation technique manpower amendment coding, Update Table structure; Operation technique manpower amendment interpolation event, affairs, triggering.And the present invention is by step S223 Graphic Interface Control flow process; Step S224 data query, write and step S225 providing data formatting, event, triggering, only just complete function with logical expression, practice process is simply a lot.
For step S225 providing data formatting, event, triggering;
Be exemplified below:
The fotmat code practice of implanted is as follows.
Demand: time when needing recording user to register.
Select the newly-built pattern of single page, in submission event, add following fotmat code:
OBJ. hour of log-on=system current time.
Just a simple assignment is expressed and is just completed function.General case may need a series of coding change to complete this function, and trustship system conceals unnecessary repetition.Allow the function in short can said, can with a codes implement.
The more advantages of abstract page pattern are: fixing pattern can use fixing abstract database store process to realize, and this storing process is global optimization.Substantially increase the performance of application program, achieve complete transactional, also eliminate the technical work of writing most storing process simultaneously.
Abstract page pattern is not limited to ten various ways that the present invention is enumerated.Other general abstract patterns, can design with reference to method for designing of the present invention.The data type of Universal Database kind more than 10 almost can store arbitrary data.Equally, tens of kinds of abstract page patterns just can contain the data function of most application programs.
Cache layer:
Cache layer of the present invention focus on buffer memory rale store position, how interpretative rule.Prior art operation technique personnel encode implementation rule and compiling two-stage system code storage rule.And cache layer of the present invention uses character expression implementation rule and database purchase implementation rule.The benefit done like this is: the data in database are revisable in real time, so the caching method of data, just can by the data real time modifying in Update Table storehouse, and character expression simplifies the expression process of rule simultaneously.
Presentation layer:
In prior art presentation layer, operation technique manpower writes control and skilled manpower calls other layer methods, interface, and the shortcoming done like this takes time and effort.
Presentation layer is the interface of user-operable, is generally made up of unit control and page composition layout.Data type of the present invention and expansion type have the unit control of acquiescence corresponding with it.After abstract page schema instance configuration field, control corresponding to field is also determined.Then, on interface, common template synthesizes general user interface with multiple corresponding set of controls.The imposition layout at corresponding interface carries out adjustment and can revise template details by skilled manpower and derive from and rewrite control and complete.
Presentation layer is exemplified below, such as: issue second-hand information process:
1. select single page creation mode.
2. configuration field trade name, service time, transaction value.
3. trade name is system characters string type form, and acquiescence control is input frame; Service time is system time type format, and acquiescence control is date choice box; Transaction value is value type form, and acquiescence control is input frame.
4. use control corresponding to template+the three step acquiescence to generate user interface.
Compared with prior art meaning of the present invention is: the data processing of application program, and after separated, most technician's repetitive work, is all built in abstract page pattern, allows machine, and saves a large amount of human costs; Reduce the technical difficulty realizing distributed application program, many times non-technical personnel also can create distributed application program as the technician having many years of experience; Greatly shorten performance period, abundant control time cost simultaneously; Hide unnecessary ins and outs simultaneously, allow the more absorbed business rule of application system itself; The business rule that most abridged table reaches, what allow application program updating safeguard to become is quite easy.

Claims (10)

1. in application program, realize a separable data processing method, comprise persistent layer, logical layer, cache layer and presentation layer; It is characterized in that: logical layer comprises two following steps:
Step S21: abstract page pattern;
Step S22: abstract page pattern aftertreatment.
2. one as claimed in claim 1 realizes separable data processing method in application program, it is characterized in that: described step S21 abstract page pattern is divided into two steps:
Step S211: the page is distinguished;
Step S212: the page distinguishes aftertreatment.
The described step S211 page is distinguished and is specifically adopted functional differentiation to the page itself; Divide into newly-built page, page, list page or details page and 2 kinds and combination of more than two kinds above.
3. one as claimed in claim 2 realizes separable data processing method in application program, it is characterized in that: the step S212 page is distinguished aftertreatment and is divided into following step:
Step S2121: single page process;
Step S2122: relationship maps;
Step S2123: batch processing;
Step S2124: query processing;
Step S2125: statistical treatment.
4. one as claimed in claim 3 realizes separable data processing method in application program, it is characterized in that: the process of step S2121 single page can be divided into: the newly-built pattern of S2121-1 single page; S2121-2 single page edit pattern and S2121-3 single page details pattern; The newly-built pattern of S2121-1 single page: corresponding is the situation only operating single table data, and the action of operation is data inserting; S2121-2 single page edit pattern: the situation of corresponding is operation individual data table, the action of operation is more new data; S2121-3 single page details pattern: corresponding is the situation operating individual data table, the action of operation is inquiry.
5. one as claimed in claim 3 realizes separable data processing method in application program, it is characterized in that: step S2122 relationship maps can be divided into: S2122-1 associates creation mode; S2122-2 dependent compilation pattern and S2122-3 associate details pattern; 1+1,1+N or 1+M+N association can be divided into according to the difference of the number of affiliated partner.
6. one as claimed in claim 3 realizes separable data processing method in application program, it is characterized in that: step S2123 batch processing can be divided into: the S2123-1 newly-built pattern of batch and S2123-2 batch edit pattern; What the newly-built pattern of S2123-1 batch was corresponding is the single table of operation, and the action of operation is data inserting; S2123-2 batch edit pattern: corresponding is the single table of operation, the action of operation is more new data.
7. one as claimed in claim 1 realizes separable data processing method in application program, it is characterized in that: abstract page pattern aftertreatment S22 comprises the following steps, and is respectively:
Step S221: integrated data interface automatically;
Step S222: automatically generate necessary event;
Step S223: Graphic Interface Control flow process;
Step S224: data query, write;
Step S225: providing data formatting, event, triggering.
8. one as claimed in claim 7 realizes separable data processing method in application program, it is characterized in that:
Automatic integrated data interface S221 comprises the following steps:
Step S2211: select abstract page pattern;
Step S2212: configuration field;
Step S2213: calculate;
Step S2214: calculate aftertreatment.
9. one as claimed in claim 8 realizes separable data processing method in application program, it is characterized in that: step S2214 calculates aftertreatment and also comprises:
Step S22141 generating codes etc. are to be called;
Step S22142 generates general-purpose interface.
10. one as claimed in claim 1 realizes separable data processing method in application program, it is characterized in that: in persistent layer, database itself is from the information of store data structure.
CN201510931851.2A 2015-12-15 2015-12-15 Separable data processing method realized in applications Pending CN105512314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510931851.2A CN105512314A (en) 2015-12-15 2015-12-15 Separable data processing method realized in applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510931851.2A CN105512314A (en) 2015-12-15 2015-12-15 Separable data processing method realized in applications

Publications (1)

Publication Number Publication Date
CN105512314A true CN105512314A (en) 2016-04-20

Family

ID=55720294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510931851.2A Pending CN105512314A (en) 2015-12-15 2015-12-15 Separable data processing method realized in applications

Country Status (1)

Country Link
CN (1) CN105512314A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357904A (en) * 2017-07-14 2017-11-17 上海瀚银信息技术有限公司 A kind of domain model data management system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1537392A (en) * 2001-05-24 2004-10-13 �Ҵ���˾ Service application architecture for integrated network service providers
CN1914594A (en) * 2003-12-19 2007-02-14 爱默吉斯公司 Method and system for creating and providing a multi-tier networked service
CN102279750A (en) * 2011-08-30 2011-12-14 浙江大学 Iterative code generation method based on domain knowledge sharing
CN103197932A (en) * 2013-04-19 2013-07-10 济南大学 Component business model for developing application of modeless documental database

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1537392A (en) * 2001-05-24 2004-10-13 �Ҵ���˾ Service application architecture for integrated network service providers
CN1914594A (en) * 2003-12-19 2007-02-14 爱默吉斯公司 Method and system for creating and providing a multi-tier networked service
CN102279750A (en) * 2011-08-30 2011-12-14 浙江大学 Iterative code generation method based on domain knowledge sharing
CN103197932A (en) * 2013-04-19 2013-07-10 济南大学 Component business model for developing application of modeless documental database

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李引: "基于领域驱动设计的应用系统模型", 《计算机工程与应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357904A (en) * 2017-07-14 2017-11-17 上海瀚银信息技术有限公司 A kind of domain model data management system
CN107357904B (en) * 2017-07-14 2020-12-18 上海瀚银信息技术有限公司 Domain model data management system

Similar Documents

Publication Publication Date Title
CN100458793C (en) Mapping conversion method between data access level Xml format data and relational data
CN102567539B (en) Intelligent WEB report implementation method and intelligent WEB report implementation system
CN109597661B (en) Service function configuration method and device
CN103714129B (en) Dynamic data structure based on conditional plan and the construction device of relation and construction method
CN100520716C (en) Code automatically generating device based on model component, system and method
CN101084494B (en) Method and device for managing workflow in computer environment
CN103383645B (en) Code generating method and system
CN110825362A (en) Low-code application software development system and method
CN109062567B (en) B/S structure-based information management system rapid development platform
CN100550020C (en) A kind of method and apparatus that is used to solve the Chinese software issue of supporting multilanguage
CN101650712A (en) Generating management method and system of self-defined report
CN101477462A (en) Model-driven software development method used for dynamically changing system behavior
CN103761082A (en) Componential research and development mode and domain driving model combined application development system and platform
CN104615425A (en) Method and system for developing software system based on features and feature tree
CN110020307A (en) A kind of method for drafting and device of client's end-view
CN103593414A (en) Showing method and device of webpages in browser
CN106407170A (en) Rapid generation method and system for data report
CN101488086A (en) Software generation method and apparatus based on field model
CN103489061A (en) Batch data processing device and batch data processing method
CN101714078A (en) Code generation method and device
CN104657384A (en) Dynamic allocation report data processing method based on two-dimension relationship
CN105183450A (en) E-government form model configuration system with foreground and background separation function
CN102184101A (en) Software application frame and development system thereof for smartphones
CN105204863A (en) Technical documentation for law violation data auditing system
CN108228762B (en) Method and system for configuring master database universal templates

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160420