CN103383645B - Code generating method and system - Google Patents
Code generating method and system Download PDFInfo
- Publication number
- CN103383645B CN103383645B CN201310322858.5A CN201310322858A CN103383645B CN 103383645 B CN103383645 B CN 103383645B CN 201310322858 A CN201310322858 A CN 201310322858A CN 103383645 B CN103383645 B CN 103383645B
- Authority
- CN
- China
- Prior art keywords
- file
- class file
- generate
- title
- code
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000003068 static effect Effects 0.000 claims abstract description 118
- 230000002688 persistence Effects 0.000 claims abstract description 11
- 230000009471 action Effects 0.000 claims description 28
- 230000008569 process Effects 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 14
- 230000008859 change Effects 0.000 claims description 8
- 238000011161 development Methods 0.000 abstract description 13
- 230000015572 biosynthetic process Effects 0.000 abstract description 2
- 230000008439 repair process Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 13
- 239000000203 mixture Substances 0.000 description 7
- 238000013461 design Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000009434 installation Methods 0.000 description 4
- 230000002045 lasting effect Effects 0.000 description 4
- 238000010438 heat treatment Methods 0.000 description 3
- 230000002085 persistent effect Effects 0.000 description 3
- 239000012141 concentrate Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of code generating method and system, described system comprises: static list read module, the java server page (JSP) generation module, Data Persistence Layer generation module, controller generation module and configuration file generation module; Described JSP generation module generates view layer jsp file; Described Data Persistence Layer generation module generates simple JAVA object (POJO) class file and DAO (DAO) class file; Described controller generation module, formation controller java class file; Described configuration file generation module generates extend markup language (XML) configuration file. Adopt technical scheme of the present invention, can generate service code according to the concrete framework of difference software to be developed efficiently, and reduce development cost.
Description
Technical field
The present invention relates to service code generation technique, relate in particular to a kind of code generating method and system.
Background technology
Current, use Code Generator to assist project development, solve nonstandard the asking of developer's codeTopic, the reusability, the reduction development cost that improve development efficiency and software code become trend, but currentCode Generator can not generate service code according to the concrete framework of difference project to be developed, can only generateThere is the code of miscellaneous function, with the service logic that realizes basic increasing, deletes, changes, looks into; Meanwhile, currentCode Generator carries out the control of service logic change, but configures or learn existing regulation engine and realizeMore complicated, cost is higher.
Therefore, how to generate service code according to the concrete framework of difference software to be developed efficiently, and reduceDevelopment cost, becomes problem demanding prompt solution.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of code generating method and system, with efficientlyGround generates service code according to the concrete framework of difference project to be developed, and reduces development cost.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of code generating system, this system comprises:
Static list read module, for reading the code of control of static list, according to described static listThe code of control determine the attribute of described control; Described control is encapsulated as to control object, according to described controlThe corresponding attribute of part object, is stored to described control object in corresponding variables set;
The server page (JSP, JavaServerPages) generation module, for according to described variables setThe attribute of control object, generates the JavaScript code of corresponding different attribute variables set, according to describedThe code of the control of JavaScript code and described static list, generates view layer jsp file;
Data Persistence Layer generation module, operates corresponding business datum table for reading form data, according to instituteState the data structure of business datum table, generate corresponding with the title of described business datum table respectively simple JAVAThe simple JAVA object of object (POJO, PlainOldJavaObjects) class file and data access pairResemble (DAO, DataAccessObject) class file;
Controller generation module, for according to the attribute of described variables set control object and described POJOThe example of the example of class file and described DAO class file, generates corresponding with the title of described static listController java class file, described controller java class file comprises: process the controller of checking form requestThe controller java class file of java class file and the request of processing submission form;
Configuration file generation module, for generating extend markup language (XMLExtensibleMarkupLanguage) configuration file, attribute and the institute of action (action) node in described XML configuration fileState the title correspondence of static list.
Preferably, described JSP generation module is also corresponding with the title of described static list for generating titleEmpty jsp file; In described jsp file, add and outreach Cascading Style Sheet (CSS, CascadingStyleSheet) file, static HTML (HTML, HypertextMarkupLanguage) markSign; Add the code of the control of described static list to main body (body) label in described jsp fileIn;
Determine the variable that reads the control of form data in described static list, generate with described in read list numberAccording to label front end code corresponding to the variable of control and be described in read the variable of the control of form dataThe JavaScript code of assignment, and write described jsp file; Determine in described static list and preserve listThe variable of the control of the data non-NULL that data and requirement are preserved, generation checking form controls legitimacyJavaScript code, and write described jsp file;
Generation prevents that list from repeating the JavaScript code of submitting to, and writes described jsp file.
Preferably, described Data Persistence Layer generation module, also for generating and the title of described business datum tableCorresponding empty POJO class file, obtains field type and the field name of described business datum table, to instituteState POJO class file and write the attribute corresponding with the field type of described business datum table and field name;
Generate the empty DAO class file corresponding with the title of described business datum table, to described DAO class literary compositionPart writes the attribute corresponding with the field type of described business datum table and field name;
Instantiation the first string variable (StringBuilder), generate call Hibernate interface increasing,The source file of the basic operation of deleting, change, looking into, writes a described StringBuilder by described source file,And a described StringBuilder is write to described DAO class file.
Preferably, described controller generation module, also checks empty first of form request for generating to processController java class file, the title of described the first controller java class file and the title of described static listCorresponding;
Instantiation the 2nd StringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described the first controller java class file, generates correspondingObtain (getter) of the instance variable of described the first controller java class file applies and arranges (setter)Application, adds described getter application and described setter application in a described StringBuilder to;
Generate execution (execute) application of corresponding described the first controller class java class file, described in inciting somebody to actionExecute application is added in a described StringBuilder;
A described StringBuilder is added in described the first controller java class file;
Generate the empty second controller java class file of processing submission form request, described second controllerThe title of java class file is corresponding with the title of described static list;
Instantiation Three S's tringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described second controller java class file, generates correspondingThe getter application of described instance variable and setter application, by described getter application and described setter applicationAdd in described Three S's tringBuilder;
Generate the execute application of corresponding described second controller java class file, by described execute applicationAdd in described Three S's tringBuilder;
Described Three S's tringBuilder is added in described second controller java class file.
Preferably, described configuration file generation module, also for generating empty XML configuration file, in instituteState and in XML configuration file, generate corresponding bag (package) node and corresponding with described static form nameAction node, generate empty XML configuration file;
Instantiation the 4th StringBuilder, adds the statement of described XML configuration file the to described the 4thIn StringBuilder;
The package node of generation XML configuration file and corresponding with the title of described static listAction node, and add in described the 4th StringBuilder;
Described the 4th StringBuilder is write to the XML configuration file of described sky.
The present invention also provides a kind of code generating method, and the method comprises:
Read the code of the control of static list, determine described control according to the code of the control of described static listThe attribute of part; Described control is encapsulated as to control object, according to the corresponding attribute of described control object, willDescribed control object is stored in corresponding variables set;
According to the attribute of control object in described variables set, generate the JavaScript of corresponding different attribute variables setCode, according to the code of the control of described JavaScript code and described static list, generates viewLayer jsp file;
Read business datum table, according to the data structure of described business datum table, generate respectively with described businessCorresponding simple JAVA object POJO class file and the DAO DAO class of title of tables of dataFile;
According to the example of the attribute of control object in described variables set and described POJO class file and described inThe example of DAO class file, generates the controller java class file corresponding with the title of described static list,Described controller java class file comprises: process and check that controller java class file and the processing of form request carryHand over the controller java class file of form request;
Generate XML configuration file, the attribute of the action node in described XML configuration file and described quietThe title correspondence of state list.
Preferably, described according to the attribute of control object in described variables set, generate corresponding different attribute variableThe JavaScript code of collection, according to the generation of the control of described JavaScript code and described static listCode, generates view layer jsp file, comprising:
Generate the title empty jsp file corresponding with the title of described static list; In described jsp fileAdd and outreach CSS file, static html tag; The code of the control of described static list is added toIn main body body label in described jsp file;
Determine the variable that reads the control of form data in described static list, generate with described in read list numberAccording to label front end code corresponding to the variable of control and be described in read the variable of the control of form dataThe JavaScript code of assignment, and write described jsp file; Determine in described static list and preserve listThe variable of the control of the data non-NULL that data and requirement are preserved, generation checking form controls legitimacyJavaScript code, and write described jsp file;
Generation prevents that list from repeating the JavaScript code of submitting to, and writes described jsp file.
Preferably, described in read business datum table, according to the data structure of described business datum table, generate pointNot POJO class file and the DAO DAO class literary composition corresponding with the title of described business datum tablePart, comprising:
Generate the empty POJO class file corresponding with the title of described business datum table, obtain described business numberAccording to field type and the field name of table, write and the word of described business datum table to described POJO class fileThe attribute that segment type and field name are corresponding;
Generate the empty DAO class file corresponding with the title of described business datum table, to described DAO class literary compositionPart writes the attribute corresponding with the field type of described business datum table and field name;
Instantiation the one StringBuilder, generates and calls the increasing of Hibernate interface, the base of deleting, change, looking intoThe source file of this operation, writes a described StringBuilder by described source file, and by described firstStringBuilder writes described DAO class file.
Preferably, described according to the attribute of control object in described variables set and described POJO class fileExample and the example of described DAO class file, generate the controller corresponding with the title of described static listJava class file, comprising:
Generate and process the first empty controller java class file of checking form request, described the first controllerThe title of java class file is corresponding with the title of described static list;
Instantiation the 2nd StringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described the first controller java class file, generates correspondingThe getter application of the instance variable of described the first controller java class file and setter application, by described getterApplication and described setter application are added in a described StringBuilder;
Generate the execute application of corresponding described the first controller class java class file, should by described executeWith adding in a described StringBuilder;
A described StringBuilder is added in described the first controller java class file;
Generate the empty second controller java class file of processing submission form request, described second controllerThe title of java class file is corresponding with the title of described static list;
Instantiation Three S's tringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described second controller java class file, generates correspondingThe getter application of described instance variable and setter application, by described getter application and described setter applicationAdd in described Three S's tringBuilder;
Generate the execute application of corresponding described second controller java class file, by described execute applicationAdd in described Three S's tringBuilder;
Described Three S's tringBuilder is added in described second controller java class file.
Preferably, described generation expandable mark language XML configuration file, in described XML configuration fileThe attribute of action action node corresponding with the title of described static list, comprising:
Generate empty XML configuration file, in described XML configuration file, generate corresponding package jointPoint and the action node corresponding with described static form name, generate empty XML configuration file;
Instantiation the 4th StringBuilder, adds the statement of described XML configuration file the to described the 4thIn StringBuilder;
The package node of generation XML configuration file and corresponding with the title of described static listAction node, and add in described the 4th StringBuilder;
Described the 4th StringBuilder is write to the XML configuration file of described sky.
Provided by the present invention based on model-view-controller (MVC, Model-View-Controller) frameThe technical scheme that the code of workflow webpage (Web) application of structure generates, generates by JSP generation moduleThe front end code of the human activity page, by controller generation module, Data Persistence Layer generation module and configurationFile generating module generates Web backstage code, has improved developer's development stream Web application systemEfficiency, and improved code quality.
Brief description of the drawings
Fig. 1 a is the composition structural representation of the code generating system of the embodiment of the present invention;
Fig. 1 b is the composition structural representation of the another code generating system of the embodiment of the present invention;
Fig. 2 is the realization flow schematic diagram of the code generating method of the embodiment of the present invention;
Fig. 3 is the code generating system of the embodiment of the present invention schematic diagram in Workflow system;
Fig. 4 is the application signal in workflow Web development environment of the code generating system of the embodiment of the present inventionFigure mono-;
Fig. 5 is the code generating system of the embodiment of the present invention application schematic diagram in workflow applied environmentTwo;
Fig. 6 is the realization flow schematic diagram that reads static list of the embodiment of the present invention;
Fig. 7 is the realization flow schematic diagram of the generation front end JSP view file of the embodiment of the present invention;
Fig. 8 is that the realization flow of the rear end code file of the generation Hibernate persistent layer of the embodiment of the present invention showsIntention;
Fig. 9 is the realization flow schematic diagram of the generation Struts2 key-course code file of the embodiment of the present invention;
Figure 10 is the realization flow schematic diagram of the generation Struts2XML configuration file of the embodiment of the present invention.
Detailed description of the invention
Basic thought of the present invention is: practical item development cost often concentrate on operation flow module exploitation,Processing to leak (Bug) after project development completes, the amendment of business change post code and amendedBug processes and code tester. If adopt the mode based on template aspect code generation, user can rootCarry out corresponding stencil design according to different frameworks; In workflow development environment, design with process definition languageFlow chart, is designed for man-machine interactively for each artificial task activity node by static Form DesignerStatic list, is read and is analyzed the code of the control of static list, to generate target by code generating systemCode.
Below in conjunction with drawings and the specific embodiments, the present invention is described in further detail again.
Fig. 1 a is the composition structural representation of the code generating system of the embodiment of the present invention, as shown in Figure 1a,Comprise:
Static list read module 11, for reading the code of control of static list, according to described static tableThe code of single control is determined the attribute of described control; Described control is encapsulated as to control object, according to describedThe corresponding attribute of control object, is stored to described control object in corresponding variables set;
JSP generation module 12, for according to the attribute of described variables set control object, generates corresponding differentThe JavaScript code of attribute variable collection, according to described JavaScript code and described static listThe code of control, generates view layer jsp file;
Data Persistence Layer generation module 13, operates corresponding business datum table for reading form data, according toThe data structure of described business datum table, generates corresponding with the title of described business datum table respectively POJOClass file and DAO class file;
Controller generation module 14, for according to the attribute of described variables set control object and described inThe example of the example of POJO class file and described DAO class file, generates the title pair with described static listThe controller java class file of answering, described controller java class file comprises: process the control of checking form requestThe controller java class file of device java class file processed and the request of processing submission form;
Configuration file generation module 15, for generating XML configuration file, in described XML configuration fileThe attribute of action action node corresponding with the title of described static list.
Preferably, described JSP generation module is also corresponding with the title of described static list for generating titleEmpty jsp file; In described jsp file, add and outreach CSS file, static html tag;The code of the control of described static list is added in the body label in described jsp file;
Determine the variable that reads the control of form data in described static list, generate with described in read list numberAccording to label front end code corresponding to the variable of control and be described in read the variable of the control of form dataThe JavaScript code of assignment, and write described jsp file; Determine in described static list and preserve listThe variable of the control of the data non-NULL that data and requirement are preserved, generation checking form controls legitimacyJavaScript code, and write described jsp file;
Generation prevents that form data from repeating JavaScript code and the closing described static list of submitting toThe JavaScript code that method is verified, and write described jsp file.
Preferably, described Data Persistence Layer generation module, also for generating and the title of described business datum tableCorresponding empty POJO class file, obtains field type and the field name of described business datum table, to instituteState POJO class file and write the attribute corresponding with the field type of described business datum table and field name;
Generate the empty DAO class file corresponding with the title of described business datum table, to described DAO class literary compositionPart writes the attribute corresponding with the field type of described business datum table and field name;
Instantiation the first string variable (StringBuilder), generate call Hibernate interface increasing,The source file of the basic operation of deleting, change, looking into, writes a described StringBuilder by described source file,And a described StringBuilder is write to described DAO class file.
Preferably, described controller generation module, also checks empty first of form request for generating to processController java class file, the title of described the first controller java class file and the title of described static listCorresponding;
Instantiation the 2nd StringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described the first controller java class file, generates correspondingObtain (getter) of the instance variable of described the first controller java class file applies and arranges (setter)Application, adds described getter application and described setter application in a described StringBuilder to;
Generate execution (execute) application of corresponding described the first controller class java class file, described in inciting somebody to actionExecute application is added in a described StringBuilder;
A described StringBuilder is added in described the first controller java class file;
Generate the empty second controller java class file of processing submission form request, described second controllerThe title of java class file is corresponding with the title of described static list;
Instantiation Three S's tringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described second controller java class file, generates correspondingThe getter application of described instance variable and setter application, by described getter application and described setter applicationAdd in described Three S's tringBuilder;
Generate the execute application of corresponding described second controller java class file, by described execute applicationAdd in described Three S's tringBuilder;
Described Three S's tringBuilder is added in described second controller java class file.
Described configuration file generation module, also, for generating empty XML configuration file, joins at described XMLPut and in file, generate corresponding package node and the action node corresponding with described static form name,Generate empty XML configuration file;
Instantiation the 4th StringBuilder, adds the statement of described XML configuration file the to described the 4thIn StringBuilder;
The package node of generation XML configuration file and corresponding with the title of described static listAction node, and add in described the 4th StringBuilder;
Described the 4th StringBuilder is write to described XML configuration file.
Fig. 1 b is the composition structural representation of the another code generating system of the embodiment of the present invention, as Fig. 1 b instituteShow, except comprising above-mentioned static list read module 11, JSP generation module 12, Data Persistence Layer generation module13, outside controller generation module 14 and configuration file generation module 15, this system can also comprise:
Workflow engine 16, generates view layer jsp file, i.e. Web for dispatching JSP generation module 12The front end code of the application system human activity page; Data dispatching persistent layer generation module 13, controller generateModule 14 and the corresponding generation POJO class file of configuration file generation module 15 and DAO class file, controllerJava class file and XML configuration file, i.e. the Web backstage of the Web application system human activity pageCode.
Fig. 2 is the realization flow schematic diagram of the code generating method of the embodiment of the present invention, as shown in Figure 2, and bagDraw together:
Step 201: read the code of the control of static list, according to the code of the control of described static listDetermine the attribute of described control; Described control is encapsulated as to control object, according to a described control object correspondenceAttribute, described control object is stored in corresponding variables set;
Step 202: according to the attribute of control object in described variables set, generate corresponding different attribute variables setJavaScript code, according to the code of the control of described JavaScript code and described static list,Generate view layer jsp file;
In a preferred embodiment of step 202, generate title corresponding with the title of described static listEmpty jsp file; In described jsp file, add and outreach CSS file, static html tag;The code of the control of described static list is added in the main body body label in described jsp file;
Determine the variable that reads the control of form data in described static list, generate with described in read list numberAccording to label front end code corresponding to the variable of control and be described in read the variable of the control of form dataThe JavaScript code of assignment, and write described jsp file; Determine in described static list and preserve listThe variable of the control of the data non-NULL that data and requirement are preserved, generation checking form controls legitimacyJavaScript code, and write described jsp file;
Generation prevents that list from repeating the JavaScript code of submitting to, and writes described jsp file.
Step 203: read business datum table, according to the data structure of described business datum table, generate respectivelySimple JAVA object POJO class file and the data access corresponding with the title of described business datum tableObject DAO class file;
In a preferred embodiment of step 203, generate corresponding with the title of described business datum tableEmpty POJO class file, obtains field type and the field name of described business datum table, to described POJOClass file writes the attribute corresponding with the field type of described business datum table and field name;
Generate the empty DAO class file corresponding with the title of described business datum table, to described DAO class literary compositionPart writes the attribute corresponding with the field type of described business datum table and field name;
Instantiation the one StringBuilder, generates the Object Relation Mapping framework that calls open source codeThe source file of the increasing of Hibernate interface, the basic operation of deleting, change, looking into, described in described source file is writeThe one StringBuilder, and a described StringBuilder is write to described DAO class file.
Step 204: according to the attribute of control object in described variables set and described POJO class fileThe example of example and described DAO class file, generates the controller Java corresponding with the title of described static listClass file, described controller java class file comprises: process the controller Java that checks the request of business datum tableThe controller java class file of business datum table request is submitted in class file and processing to;
In a preferred embodiment of step 204, generate and process the first empty control of checking form requestDevice java class file processed, the title of described the first controller java class file and the title pair of described static listShould;
Instantiation the 2nd StringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described the first controller java class file, generates correspondingThe getter application of the instance variable of described the first controller java class file and setter application, by described getterApplication and described setter application are added in a described StringBuilder;
Generate the execute application of corresponding described the first controller class java class file, should by described executeWith adding in a described StringBuilder;
A described StringBuilder is added in described the first controller java class file;
Generate the empty second controller java class file of processing submission form request, described second controllerThe title of java class file is corresponding with the title of described static list;
Instantiation Three S's tringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described second controller java class file, generates correspondingThe getter application of described instance variable and setter application, by described getter application and described setter applicationAdd in described Three S's tringBuilder;
Generate the execute application of corresponding described second controller java class file, by described execute applicationAdd in described Three S's tringBuilder;
Described Three S's tringBuilder is added in described second controller java class file.
Step 205: generate XML configuration file, the genus of the action node in described XML configuration fileProperty is corresponding with the title of described static list.
In a preferred embodiment of step 205, generate empty XML configuration file, at described XMLIn configuration file, generate corresponding package node and the action node corresponding with described static form name.Generate empty XML configuration file;
Instantiation the 4th StringBuilder, adds the statement of described XML configuration file the to described the 4thIn StringBuilder;
The package node of generation XML configuration file and corresponding with the title of described static listAction node, and add in described the 4th StringBuilder;
Described the 4th StringBuilder is write to described XML configuration file.
Below as an example of repair reporting system example and in conjunction with Fig. 3~Fig. 5, the code generating method to the embodiment of the present invention andSystem is further described.
Fig. 3 is the code generating system of the embodiment of the present invention position view in Workflow system, as figureShown in 3, user carrys out operational administrative and reports workflow webpage Web application system for repairment by reporting flow process console for repairment,Flow process developer is by required static list in static Form Designer design repair reporting system, and code generatesSystem is using the attribute of the control of static repair reporting system list as input, and exports human task in repair reporting systemNode moves the file of required object code, finally the file of object code is saved in server specifyPosition.
Fig. 4 is the application signal in workflow Web development environment of the code generating system of the embodiment of the present inventionFigure mono-, as shown in Figure 4, repair reporting system flow process developer sets up engineering by workflow development environment guide,Then design visually repair reporting system human task node required static list and report by flow scheme design deviceRepair system flow defined file. Be specially: in workbench, double-click human task node, select this node pairThe static list of answering, invoke code generation system generates order corresponding to this human task node in repair reporting systemMark code, comprise JSP view file and POJO class file, DAO class file, controller file andXML configuration file.
Fig. 5 is the code generating system of the embodiment of the present invention application schematic diagram in workflow applied environmentTwo, as shown in Figure 5, in repair reporting system application process, when process flow operation is when reporting human activity node for repairment,User initiates to read after the request of static list to repair reporting system server, and the controller of code generating system is rawBecome module 14 reading and saving in the business datum of reporting for repairment in business datum table, and according to the result of data processing toUser returns to the front end JSP view file of generation, and this front end JSP view file is shown business datum to userAfter, user can obtain in the control that reports business datum for repairment and fill in and report business datum for repairment to this static state list, andBe submitted to the background server of repair reporting system, the Data Persistence Layer generation module 13 of code generating system will report for repairmentBusiness datum is persisted in Service Database, and calls the end human task joint that workflow engine 16 providesThe application programming interfaces (API, ApplicationProgramInterface) of point, make to report for repairment flow process and continue circulation.
Website in heating installation repair reporting system is reported for repairment and is applied for that artificial active node is example below, to the embodiment of the present inventionCode generating method be described in further detail.
Report for repairment and apply for that artificial active node is designed for the static table of man-machine interaction visually for initiation websiteSingle, by static list called after newApply, static list comprises 7 controls, is respectively and reports people's name for repairment(attribute name=" userName ", type=" readnotNull ", table=" user ", field=" userName "), reportRepair people's landline telephone (attribute name=" telephone ", type=" read ", table=" user ", field=" telephone"), report for repairment people's home address (attribute is name=" address ", type=" readnotNull", table=" user ", field=" address "), (attribute is name=" mobile to report people's mobile phone for repairment", type=" readnotNull ", table=" user ", field=" mobile "), report for repairment boiler room, place, people community (belong toProperty be name=" ceilName ", type=" read ", table=" user ", field=" ceilName "), report for repairment type (belong toProperty is name=" repairType ", type=" insert ", table=" repair ", field=" repairType "), report for repairment in(attribute is name=" repairDetail ", type=" insert ", table=" repair to hold control ",field="repairDetail")。
The website of double-clicking in flow chart is reported the artificial task node of application for repairment, for this human task node is selected websiteReport application list for repairment, click and determine rear invoke code generation system, reading that Fig. 6 is the embodiment of the present invention is quietThe realization flow schematic diagram of state list, as shown in Figure 6, comprises the following steps:
Step 601: the control reporting for repairment in the static list of application is read in circulation;
Step 602~step 603: judge the type of the control in list, according to the self-defined type of form controlsAttribute is classified to different form controls;
Type=" read " represents to read the form controls of business datum table data, and business datum table data comprise reportRepair people's landline telephone, report people's home address for repairment, report people's mobile phone for repairment and report boiler room, place, community for repairment;Type=" insert " represents to obtain the form controls of user service data write into Databasce, comprise report for repairment type andReport 2 form controls of content for repairment; Type=" notNull " represents non-NULL type control, comprise report for repairment people's name,Home address and mobile phone. Type property value can separate to represent multiple values with space, as reports people's surname for repairmentName control is to read the control of business datum table data type and the control of non-void type, correspondingtype="readnotNull"。
Step 604: object corresponding dissimilar form controls is saved in to corresponding control object variableConcentrate;
The control of list is encapsulated as to object, and the attribute of object is the attribute of corresponding control, as objectUserName comprises type, name, table and field attribute, and dissimilar control is saved in correspondingControl object variables collection in, particularly, by corresponding the form controls that reads business datum table data rightResemble and store in the variables set readSet that reads type, the object corresponding to control of non-NULL type stores non-NULL intoIn the variables set notNullSet of type, object corresponding to control that obtains user service data stores into and writesIn the variables set insertSet of type.
Fig. 7 is the realization flow schematic diagram of the generation front end JSP view file of the embodiment of the present invention, as Fig. 7Shown in, comprise the following steps:
Step 701: generate JSP empty file;
The JSP dummy file name of corresponding human task node is called newApply.JSP, and file name is corresponding staticForm name newApply.
Step 702: write static part and HTML (HTML, HyperText to jsp fileMarkupLanguage) label;
In newApply.JSP, write static part, comprise JSP head statement < %pagelanguage=" java " contentType=" text/html; Charset=UTF-8 " pageEncoding=" UTF-8 " % > andHtml tag<html><head><meta><body>.
Step 703: read the code of static list and will add in jsp file<body>In label;
Step 704: travel through and preserve the list that reads business datum table data in the variables set that reads typeControl variable;
Traversal is preserved the form controls variable that reads business datum table data type, is these form controls variableesGenerate Struts2 label front end code and the JavaScript code to form controls variable assignments, as varuserName=document.getElementById('userName');userName.value='<s:propertyvalue="user.userName"/>'。
Step 705: the Javascript code that generates checking form controls legitimacy;
Travel through and preserve write categorical variable concentrate the form controls variable that obtains user service data, forThe form controls variable of non-NULL type wherein, for example, report people's name, home address, mobile phone for repairment, rawBecome the Javascript code of checking form controls legitimacy.
Step 706: generate and prevent that list from repeating the JavaScript code of submitting to;
Step 707: generate the JavaScript code that static list is carried out to legitimate verification;
Step 707: the code of above-mentioned generation is write in empty jsp file, obtain generating complete front endJSP view file, is deposited in specified path/web/content/JSP.
Fig. 8 is that the realization flow of the rear end code file of the generation Hibernate persistent layer of the embodiment of the present invention showsIntention, as shown in Figure 8, comprises the following steps:
Step 801: travel through all business datum tables;
Obtain all business datum tables of heating installation repair reporting system as user, repair by Jdbc, and traversal is allBusiness datum table.
Step 802: the data structure of obtaining business datum table;
Comprise the information such as title, field type and the field name of business datum table.
Step 803: generate the POJO lasting classification file of the same name with business datum table;
Comprise User and Repair.
Step 804: all fields of traversal business datum table;
Step 805: member variable corresponding field is write to POJO lasting classification file;
Step 806: the attribute that generates the java class type corresponding with field name in business datum table and typeVariable, writes these attributes in POJO class file.
Step 807: generate POJO class file and DAO class file.
The file generating stores specified path/src/com/model/ into.
Generate empty DAO java class (DAO) according to the title of business datum table, asUserDAO, RepairDAO, the Java vchar class source code variable StringBuilder of instantiation sky,Be used for preserving DAO class source code, by business datum table user, the POJO class User that repair is corresponding, RepairRespectively as this DAO class UserDAO, the attribute user of RepairDAO, repair, generates and calls HibernateThe additions and deletions of interface change the source code of the basic operation of looking into, and these source codes are added in source code variable, will preserveThe StringBuilder variable data of DAO class source code is written in empty DAO file, generates final DAOClass file, is put in the file of generation the path/src/com/DAO/ of appointment.
Fig. 9 is the realization flow schematic diagram of the generation Struts2 key-course code file of the embodiment of the present invention, asShown in Fig. 9, comprise the following steps:
Step 901: obtain heating installation repair reporting system all business datum table user, repair, searching loop instituteSome business datum tables;
Step 902: generate the empty java class file of first Struts2 controller;
Generate the empty java class literary composition of first Struts2 controller for the treatment of user's the business form request of checkingPart, the title of the corresponding static list of title of file, as ApplyFirstAction.
Step 903: the variable StringBuilder of first Struts2 controller class file source code of instantiation;
Instantiation is for preserving the vchar source code variable of first Struts2 controller class fileStringBuilder。
Step 904: generate getter and the setter application of instance variable, and add in StringBuilder;
Example using DAO lasting classification example corresponding traffic table and POJO class example as controller classVariable, as comprised the variable's attribute of User and UserDao type in class ApplyFirst, generates these controlsThe getter of variable and setter application, and added in character variable StringBuilder.
Step 905: generate the execute application of first Struts2 controller class, and add String toIn Builder;
Generate the execute application of first Struts2 controller class, at method intrinsic call DAO class exampleQuery interface, as user=userDao.get (), and call the API of workflow engine, method body is addedIn StringBuilder variable.
Step 906: generate first final Struts2action file, and be placed in the path of appointment/src/com/action/;
The source code variable of first Struts2action is written in the empty file of first sturts2action,Generate first final Struts2action file, and file is placed in to the path of appointment/src/com/action/。
Step 907: generate the empty java class file of second Struts2 controller;
Generate the empty java class file of second Struts2 controller, the title of file is according to the title of list, asApplySecondAction。
Step 908: the variable String of second Struts2 controller class file source code is preserved in instantiationBuilder;
Step 909: generate getter and the setter application of instance variable, and add in StringBuilder;
Example using DAO lasting classification example corresponding traffic table and POJO class example as controller classVariable, generates getter and the setter application of these instance variables, and is added to StringBuilderIn.
Step 910: generate the execute application of second Struts2 controller class, and add String toBuilder;
Generate the execute application of second Struts2 controller class, at application intrinsic call DAO class examplePersistence interface as repairDao.add (repair), and call the API of workflow engine, application body is addedBe added to StringBuilder.
Step 911: generate second final Struts2action file.
The source code variable of second Struts2action is written in the empty file of second struts2action,Generate second final Struts2action file, and file is placed in to the path/src/com/action of appointment.
Figure 10 is the realization flow schematic diagram of the generation Struts2XML configuration file of the embodiment of the present invention, asShown in Figure 10, comprise the following steps:
Step 1001: generate empty Struts2XML configuration file;
File name is struts.XML.
Step 1002: the variable StringBuilder of instantiation;
For preserving the source code of Struts2XML configuration file.
Step 1003: the statement of XML configuration file is added in StringBuilder;
Step 1004: generate the package node of XML configuration file, add in StringBuilder;
Step 1005: generate action node according to static list;
The attribute name of action node and class be according to the title of static list, as < actionname=" appLyFirst " class=" com.action.ApplyFistAction>" and<actionname=" applySecond " class="ApplySecondAction">;
Data in source code variable are write in the empty configuration file of XML, generate final XML configuration file,And be placed on the path of appointment.
Step 1004: generate action node and give property value;
Generate action node according to static list, the attribute name of action node and class are according to static stateThe title of list, as<actionname=" applyFirst " class=" com.action.ApplyFistAction>" withAnd<actionname=" applySecond " class=" ApplySecondAction ">.
Data in source code variable are write in the empty configuration file of XML, generate final XML configuration file,And be placed on the path of appointment.
According to the file destination of above-mentioned generation, dispose flow definition, start flow example carries out man-machine interaction.
All the other the human task node person of accepting examination & verification applications, duty manager send maintenance man, duty manager to uploadThe code generation process of maintenance result, the person's of accepting call-on back by phone in like manner, all can generate this human task node pairFront end JSP view file, background controller StrutsAction file, POJO file, the DAO literary composition of answeringPart and add the actiondom node that human task node is corresponding in struts.xml configuration file.
The code generating system that the embodiment of the present invention is recorded can adopt popular developing instrument Eclipse at presentCard format is carried out installation and deployment, and user only need to copy to plug-in unit the catalogue of corresponding developing instrument,In corresponding project, choose the auxiliary generation of carrying out code, thereby shortened developer's construction cycle, carryHigh development efficiency;
And the code generating system that the embodiment of the present invention is recorded is aspect the code generation for service logicMade innovation, for example, developer only needs visually to design static list by Form Designer,And set the various Custom Attributes of form controls, just can generate the code that meets related service logic.All codes that code generating system generates are all based on template, and template can need according to the difference of companyAsk and be configured, thereby the automatic generation of code has been realized to customizable, in code availability, code lifeBecome on quality and code formation efficiency and be all greatly improved.
The above, be only preferred embodiment of the present invention, is not used for limiting protection model of the present inventionEnclose.
Claims (10)
1. a code generating system, is characterized in that, this system comprises:
Static list read module, for reading the code of control of static list, according to described static listThe code of control determine the attribute of described control; Described control is encapsulated as to control object, according to described controlThe corresponding attribute of part object, is stored to described control object in corresponding variables set;
Java server page JSP generation module, for according to the attribute of described variables set control object,Generate the JavaScript code of corresponding different attribute variables set, according to described JavaScript code, Yi JisuoState the code of the control of static list, generate view layer jsp file;
Data Persistence Layer generation module, operates corresponding business datum table for reading form data, according to instituteState the data structure of business datum table, generate corresponding with the title of described business datum table respectively simple JAVAObject POJO class file and DAO DAO class file;
Controller generation module, for according to the attribute of described variables set control object and described POJOThe example of the example of class file and described DAO class file, generates corresponding with the title of described static listController java class file, described controller java class file comprises: process the controller of checking form requestThe controller java class file of java class file and the request of processing submission form;
Configuration file generation module, for generating expandable mark language XML configuration file, described XMLThe attribute of the action action node in configuration file is corresponding with the title of described static list.
2. system according to claim 1, is characterized in that,
Described JSP generation module, also for generating the title empty JSP corresponding with the title of described static listFile; In described jsp file, add and outreach Cascading Style Sheet CSS file, static HTMLHtml tag; Add the code of the control of described static list to main body body in described jsp fileIn label;
Determine the variable that reads the control of form data in described static list, generate with described in read list numberAccording to label front end code corresponding to the variable of control and be described in read the variable of the control of form dataThe JavaScript code of assignment, and write described jsp file; Determine in described static list and preserve listThe variable of the control of the data non-NULL that data and requirement are preserved, generation checking form controls legitimacyJavaScript code, and write described jsp file;
Generation prevents that list from repeating the JavaScript code of submitting to, and writes described jsp file.
3. system according to claim 1, is characterized in that,
Described Data Persistence Layer generation module, also for generating the sky corresponding with the title of described business datum tablePOJO class file, obtain field type and the field name of described business datum table, to described POJOClass file writes the attribute corresponding with the field type of described business datum table and field name;
Generate the empty DAO class file corresponding with the title of described business datum table, to described DAO class literary compositionPart writes the attribute corresponding with the field type of described business datum table and field name;
Instantiation the first string variable StringBuilder, generate call Hibernate interface increasing, delete,The source file of the basic operation that changes, looks into, writes a described StringBuilder by described source file, and willA described StringBuilder writes described DAO class file.
4. system according to claim 3, is characterized in that,
Described controller generation module, also processes for generating the first empty controller of checking form requestJava class file, the title of described the first controller java class file is corresponding with the title of described static list;
Instantiation the 2nd StringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described the first controller java class file, generates correspondingObtaining getter application and setter being set of the instance variable of described the first controller java class file applied,Described getter application and described setter application are added in a described StringBuilder;
Generate the execution execute application of corresponding described the first controller class java class file, by described executeApplication is added in a described StringBuilder;
A described StringBuilder is added in described the first controller java class file;
Generate the empty second controller java class file of processing submission form request, described second controllerThe title of java class file is corresponding with the title of described static list;
Instantiation Three S's tringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described second controller java class file, generates correspondingThe getter application of described instance variable and setter application, by described getter application and described setter applicationAdd in described Three S's tringBuilder;
Generate the execute application of corresponding described second controller java class file, by described execute applicationAdd in described Three S's tringBuilder;
Described Three S's tringBuilder is added in described second controller java class file.
5. according to the system described in claim 1 to 4 any one, it is characterized in that,
Described configuration file generation module, also, for generating empty XML configuration file, joins at described XMLPut and in file, generate corresponding bag package node and the action node corresponding with described static form name,Generate empty XML configuration file;
Instantiation the 4th StringBuilder, adds the statement of described XML configuration file the to described the 4thIn StringBuilder;
The package node of generation XML configuration file and corresponding with the title of described static listAction node, and add in described the 4th StringBuilder;
Described the 4th StringBuilder is write to the XML configuration file of described sky.
6. a code generating method, is characterized in that, the method comprises:
Read the code of the control of static list, determine described control according to the code of the control of described static listThe attribute of part; Described control is encapsulated as to control object, according to the corresponding attribute of described control object, willDescribed control object is stored in corresponding variables set;
According to the attribute of control object in described variables set, generate the JavaScript of corresponding different attribute variables setCode, according to the code of the control of described JavaScript code and described static list, generates viewLayer jsp file;
Read business datum table, according to the data structure of described business datum table, generate respectively with described businessCorresponding simple JAVA object POJO class file and the DAO DAO class of title of tables of dataFile;
According to the example of the attribute of control object in described variables set and described POJO class file and described inThe example of DAO class file, generates the controller java class file corresponding with the title of described static list,Described controller java class file comprises: process and check that controller java class file and the processing of form request carryHand over the controller java class file of form request;
Generate XML configuration file, the attribute of the action node in described XML configuration file and described quietThe title correspondence of state list.
7. method according to claim 6, is characterized in that, described according to control in described variables setThe attribute of object, generates the JavaScript code of corresponding different attribute variables set, according to described JavaScriptThe code of the control of code and described static list, generates view layer jsp file, comprising:
Generate the title empty jsp file corresponding with the title of described static list; In described jsp fileAdd and outreach CSS file, static html tag; The code of the control of described static list is added toIn body label in described jsp file;
Determine the variable that reads the control of form data in described static list, generate with described in read list numberAccording to label front end code corresponding to the variable of control and be described in read the variable of the control of form dataThe JavaScript code of assignment, and write described jsp file; Determine in described static list and preserve listThe variable of the control of the data non-NULL that data and requirement are preserved, generation checking form controls legitimacyJavaScript code, and write described jsp file;
Generation prevents that list from repeating the JavaScript code of submitting to, and writes described jsp file.
8. method according to claim 6, is characterized in that, described in read business datum table, according toThe data structure of described business datum table, generates corresponding with the title of described business datum table respectively POJOClass file and DAO DAO class file, comprising:
Generate the empty POJO class file corresponding with the title of described business datum table, obtain described business numberAccording to field type and the field name of table, write and the word of described business datum table to described POJO class fileThe attribute that segment type and field name are corresponding;
Generate the empty DAO class file corresponding with the title of described business datum table, to described DAO class literary compositionPart writes the attribute corresponding with the field type of described business datum table and field name;
Instantiation the one StringBuilder, generates and calls the increasing of Hibernate interface, the base of deleting, change, looking intoThe source file of this operation, writes a described StringBuilder by described source file, and by described firstStringBuilder writes described DAO class file.
9. method according to claim 8, is characterized in that, described according to control in described variables setThe example of the example of the attribute of object and described POJO class file and described DAO class file, generate withThe controller java class file corresponding to title of described static list, comprising:
Generate and process the first empty controller java class file of checking form request, described the first controllerThe title of java class file is corresponding with the title of described static list;
Instantiation the 2nd StringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described the first controller java class file, generates correspondingThe getter application of the instance variable of described the first controller java class file and setter application, by described getterApplication and described setter application are added in a described StringBuilder;
Generate the execute application of corresponding described the first controller class java class file, should by described executeWith adding in a described StringBuilder;
A described StringBuilder is added in described the first controller java class file;
Generate the empty second controller java class file of processing submission form request, described second controllerThe title of java class file is corresponding with the title of described static list;
Instantiation Three S's tringBuilder, by the example of DAO class file corresponding described business datum table withAnd the example of POJO class file is as the instance variable of described second controller java class file, generates correspondingThe getter application of described instance variable and setter application, by described getter application and described setter applicationAdd in described Three S's tringBuilder;
Generate the execute application of corresponding described second controller java class file, by described execute applicationAdd in described Three S's tringBuilder;
Described Three S's tringBuilder is added in described second controller java class file.
10. according to the method described in claim 6 to 9 any one, it is characterized in that described generation XMLConfiguration file, the attribute of the action action node in described XML configuration file and described static listTitle correspondence, comprising:
Generate empty XML configuration file, in described XML configuration file, generate corresponding package jointPoint and the action node corresponding with described static form name, generate empty XML configuration file;
Instantiation the 4th StringBuilder, adds the statement of described XML configuration file the to described the 4thIn StringBuilder;
The package node of generation XML configuration file and corresponding with the title of described static listAction node, and add in described the 4th StringBuilder;
Described the 4th StringBuilder is write to the XML configuration file of described sky.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310322858.5A CN103383645B (en) | 2013-07-29 | 2013-07-29 | Code generating method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310322858.5A CN103383645B (en) | 2013-07-29 | 2013-07-29 | Code generating method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103383645A CN103383645A (en) | 2013-11-06 |
CN103383645B true CN103383645B (en) | 2016-05-11 |
Family
ID=49491445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310322858.5A Expired - Fee Related CN103383645B (en) | 2013-07-29 | 2013-07-29 | Code generating method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103383645B (en) |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103744680B (en) * | 2014-01-16 | 2017-02-15 | 北京邮电大学 | Method and device for business process processing |
CN104461513B (en) * | 2014-11-21 | 2018-01-09 | 山东航天信息有限公司 | A kind of method and device for generating form interface |
CN104932904A (en) * | 2015-07-14 | 2015-09-23 | 福建农林大学 | Configurable database programming mode aiming at intelligent smart home |
US10810362B2 (en) * | 2015-07-17 | 2020-10-20 | Sap Se | Page-based incident correlation for network applications |
CN105068812B (en) * | 2015-08-19 | 2018-07-13 | 深圳联友科技有限公司 | A kind of list generation method and device |
CN106775788B (en) * | 2015-11-19 | 2019-08-20 | 中国科学院声学研究所 | A method of automatically generating and run JavaScript file |
CN106886390B (en) * | 2015-12-15 | 2021-06-18 | 大唐软件技术股份有限公司 | Java object generating and converting method and Java object generating and converting device |
CN105824619A (en) * | 2016-03-10 | 2016-08-03 | 四川交通职业技术学院 | Code generator integrated based on Spring MVC framework, Apache Shiro framework and MyBatis framework |
CN107633008A (en) * | 2017-08-10 | 2018-01-26 | 阿里巴巴集团控股有限公司 | Web project data processing method, device, server and system |
CN107977236B (en) * | 2017-12-21 | 2020-11-13 | 上海智臻智能网络科技股份有限公司 | Question-answering system generation method, terminal device, storage medium and question-answering system |
CN108427554B (en) * | 2018-05-14 | 2023-09-08 | 华南理工大学 | Automatic construction method and system for cloud mode software driven by table |
CN109558125A (en) * | 2018-12-17 | 2019-04-02 | 太原市高远时代科技有限公司 | A kind of implementation method improving general information management software development efficiency |
CN109739546A (en) * | 2018-12-26 | 2019-05-10 | 深圳乐信软件技术有限公司 | Property parameters acquisition methods, device, storage medium and server |
CN110045982A (en) * | 2019-03-28 | 2019-07-23 | 宋子杰 | A kind of embedded system configuration method based on source code polymerization |
CN110069246A (en) * | 2019-03-28 | 2019-07-30 | 北京众智益成科技有限公司 | The plateform system and its application that a kind of Java Web application is quickly developed |
CN110175022B (en) * | 2019-04-25 | 2023-10-13 | 平安科技(深圳)有限公司 | Method and device for automatically generating POJO class, storage medium and computer equipment |
CN110659027A (en) * | 2019-09-20 | 2020-01-07 | 京东方科技集团股份有限公司 | Code generation method and device and electronic equipment |
CN111666072A (en) * | 2020-06-09 | 2020-09-15 | 南京及物智能技术有限公司 | Software code and document robot method |
CN112052012B (en) * | 2020-08-31 | 2022-11-11 | 烽火通信科技股份有限公司 | XSLT and XSD-based code automatic generation method and equipment |
CN112416363B (en) * | 2020-12-09 | 2024-03-19 | 锐捷网络股份有限公司 | Method and device for generating front-end and back-end CRUD codes |
CN114035782A (en) * | 2021-10-22 | 2022-02-11 | 交通运输部南海航海保障中心广州通信中心 | Automatic code generation method and system based on form design and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101697120A (en) * | 2009-11-05 | 2010-04-21 | 河南辉煌科技股份有限公司 | Relational database based generation method of J2EE code |
CN102609503A (en) * | 2012-02-02 | 2012-07-25 | 福建榕基软件股份有限公司 | Method and device for generating static webpages |
CN102841791A (en) * | 2012-07-12 | 2012-12-26 | 上海高洁信息科技股份有限公司 | Method and system for generating online form |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030146937A1 (en) * | 2001-09-11 | 2003-08-07 | Lee Seung Woo | Multi-level data management system |
-
2013
- 2013-07-29 CN CN201310322858.5A patent/CN103383645B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101697120A (en) * | 2009-11-05 | 2010-04-21 | 河南辉煌科技股份有限公司 | Relational database based generation method of J2EE code |
CN102609503A (en) * | 2012-02-02 | 2012-07-25 | 福建榕基软件股份有限公司 | Method and device for generating static webpages |
CN102841791A (en) * | 2012-07-12 | 2012-12-26 | 上海高洁信息科技股份有限公司 | Method and system for generating online form |
Also Published As
Publication number | Publication date |
---|---|
CN103383645A (en) | 2013-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103383645B (en) | Code generating method and system | |
Aggarwal | Modern web-development using reactjs | |
US9361069B2 (en) | Systems and methods for defining a simulated interactive web page | |
CN104484216B (en) | Service interface document and on-line testing instrument generation method, device | |
CN103135976B (en) | code automatic generation method and device | |
CN109062567B (en) | B/S structure-based information management system rapid development platform | |
Lange | An object-oriented design method for hypermedia information systems | |
JP5099982B2 (en) | Method and apparatus for generating an automation-based user interface with complete flexibility | |
JP6725535B2 (en) | Computer-implemented method for displaying software type applications based on design specifications | |
CN110069246A (en) | The plateform system and its application that a kind of Java Web application is quickly developed | |
CN104111826A (en) | Software project development method and device | |
CN106648587A (en) | Annotation-based Web application code generation method | |
JP2008507032A (en) | Object process graph application controller viewer | |
CN102520966A (en) | Method for prompting codes and device | |
CN108228762B (en) | Method and system for configuring master database universal templates | |
CN109960503A (en) | Component development method and device based on Django framework | |
Inayatullah et al. | Model-based scaffolding code generation for cross-platform applications | |
CA2498541A1 (en) | System and method for presentation of wireless application data using repetitive ui layouts | |
CN109558125A (en) | A kind of implementation method improving general information management software development efficiency | |
Maruna et al. | The business process transformation framework implementation through metamodel extension | |
US10067749B2 (en) | Generating consumer-oriented APIs from a UI model | |
Song et al. | The design and implementation of code generation based on J2EE in the development of JBPM workflow system | |
Jakupov | Development of a web-based application for automated energy management system | |
Nikolić et al. | Framework for Web application development based on Java technologies and AngularJS | |
CN117035664A (en) | Template-based trust approval standardized processing method, device, equipment and 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160511 |
|
CF01 | Termination of patent right due to non-payment of annual fee |