Movatterモバイル変換


[0]ホーム

URL:


CN104424338A - Automatic generation device and automatic generation method for web system - Google Patents

Automatic generation device and automatic generation method for web system
Download PDF

Info

Publication number
CN104424338A
CN104424338ACN201310412990.5ACN201310412990ACN104424338ACN 104424338 ACN104424338 ACN 104424338ACN 201310412990 ACN201310412990 ACN 201310412990ACN 104424338 ACN104424338 ACN 104424338A
Authority
CN
China
Prior art keywords
database
web system
layer
generate
subunit
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.)
Granted
Application number
CN201310412990.5A
Other languages
Chinese (zh)
Other versions
CN104424338B (en
Inventor
吴春志
邓克毅
黄科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Pku Founder Information Industry Group Co ltd
Peking University Founder Group Co Ltd
Founder Apabi Technology Ltd
Original Assignee
Founder Information Industry Holdings Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Apabi Technology Co Ltd
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 Founder Information Industry Holdings Co Ltd, Peking University Founder Group Co Ltd, Beijing Founder Apabi Technology Co LtdfiledCriticalFounder Information Industry Holdings Co Ltd
Priority to CN201310412990.5ApriorityCriticalpatent/CN104424338B/en
Publication of CN104424338ApublicationCriticalpatent/CN104424338A/en
Application grantedgrantedCritical
Publication of CN104424338BpublicationCriticalpatent/CN104424338B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了一种web系统的自动生成装置,包括:视图层生成单元,用于生成所述web系统的视图层的表单界面;模型层生成单元,包括:数据库建立子单元,用于建立数据库,所述数据库中存储有与所述表单界面相对应的数据库表;类创建子单元,用于创建用于对所述数据库进行操作的业务处理类,以完成所述web系统的模型层的生成;控制层生成单元,包括:功能配置子单元,用于根据预设的配置文件进行功能配置;策略建立子单元,用于建立控制策略,以完成所述web系统的控制层的生成。本发明还提出了对应的web系统的自动生成方法。通过本发明的技术方案,可以提高web系统开发过程中的自动化过程,减少人工干预,简化开发过程。

The present invention provides a device for automatically generating a web system, comprising: a view layer generating unit for generating a form interface of the view layer of the web system; a model layer generating unit including: a database establishing subunit for establishing a database , a database table corresponding to the form interface is stored in the database; a class creation subunit is used to create a business processing class for operating the database, so as to complete the generation of the model layer of the web system ; The control layer generation unit includes: a function configuration subunit, configured to perform function configuration according to a preset configuration file; a strategy establishment subunit, configured to establish a control strategy to complete the generation of the control layer of the web system. The invention also proposes an automatic generation method of the corresponding web system. Through the technical scheme of the invention, the automation process in the web system development process can be improved, manual intervention can be reduced, and the development process can be simplified.

Description

The automatically generating device of web system and automatic generation method
Technical field
The present invention relates to technical field of data processing, in particular to a kind of automatically generating device of web system and a kind of automatic generation method of web system.
Background technology
In the exploitation of web system, devisers in the face of how framework web system with reach exploitation more convenient, more succinct in, MVC(model (model)-view (view)-controller (controller)) architecture mode becomes mainstream technology gradually.MVC is a kind of software component pattern, show by a kind of service logic and data the method be separated and organize code, the supposed premise of this method is if service logic is aggregated an inside components, and interface and user do not need again to write service logic around mutual can being modified of data with personalized customization.MVC is applied in the structure of the graphic user interface of a logic, realizes mapping traditional input, process and output function.
MVC is by M(model layer) with V(view layer) code be separated, thus make same program can use the different forms of expression.Such as a collection of statistics can represent with histogram, pie chart respectively.C(key-course) object that exists is then guarantee M(model layer) and V(view layer) synchronous, once M(model layer) change, V(view layer) should synchronized update.It is enforceable makes the input of application program, process and output separately.Based on mentioned above principle, weblication is divided into three core components: model, view, controller, and they process oneself task separately.
Nowadays industry also has a lot of maturation and the MVC architectural schemes be widely used, such as Struts, Spring, Hibernate etc.They are when use MVC design pattern carries out web system framework, completely can by the C(key-course of configuration file by decoupling zero) and M(model layer) tight association gets up and separate, and by strategy pattern and the technology towards tangent plane programming, can the M(of robotization generating portion intelligently model layer) and C(key-course) code.
But, the solution of the various MVC proposed in correlation technique, still the code robotization resting on part level generates, or certain details robotization, the robotization that a whole set of technical scheme cannot be provided to carry out carrying out the whole level of MVC the code had nothing to do with service logic generates.
Therefore, how to provide a kind of development technique of new web system, make the exploitation robotization more of web system, allow program developer more pay attention to concrete service logic, increase work efficiency.
Summary of the invention
The present invention, just based on the problems referred to above, proposes a kind of Auto of new web system, can improve the automation process in web system performance history, reduces manual intervention, simplifies performance history.
In view of this, the present invention proposes a kind of automatically generating device of web system, comprising: view layer generation unit, for generating the form interface of the view layer of described web system; Model layer generation unit, comprise: Database subelement, for building database, in described database, store the database table corresponding with described form interface, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface; Class creates subelement, creates the business processing class being used for operating described database, to complete the generation of the model layer of described web system; Key-course generation unit, comprising: functional configuration subelement, for carrying out functional configuration according to the configuration file preset; Strategy sets up subelement, for setting up control strategy, to complete the generation of the key-course of described web system.
In this technical scheme, obtained by the attribute of the form interface to view layer, and set up corresponding database, make the incidence relation automatically set up between view layer and model layer, and need not completely manually carry out associated configuration by user, improve the automaticity of system development, contribute to increasing work efficiency.Meanwhile, also by providing the business processing class automatically generated, completing the concrete operations of key-course to the database of model layer, achieving view layer, tight association between model layer and key-course, contributing to reducing artificial intervention degree.
According to another aspect of the invention, also proposed a kind of automatic generation method of web system, comprising: the form interface generating the view layer of described web system; Building database, stores the database table corresponding with described form interface in described database, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface; Create the business processing class being used for operating described database, to complete the generation of the model layer of described web system; Configuration file according to presetting carries out functional configuration, and sets up control strategy, to complete the generation of the key-course of described web system.
In this technical scheme, obtained by the attribute of the form interface to view layer, and set up corresponding database, make the incidence relation automatically set up between view layer and model layer, and need not completely manually carry out associated configuration by user, improve the automaticity of system development, contribute to increasing work efficiency.Meanwhile, also by providing the business processing class automatically generated, completing the concrete operations of key-course to the database of model layer, achieving view layer, tight association between model layer and key-course, contributing to reducing artificial intervention degree.
By above technical scheme, the automation process in web system performance history can be improved, reduce manual intervention, simplify performance history.
Accompanying drawing explanation
Fig. 1 shows the schematic block diagram of the automatically generating device of web system according to an embodiment of the invention;
Fig. 2 shows the schematic flow sheet of the automatic generation method of web system according to an embodiment of the invention;
Fig. 3 shows the principle schematic that robotization according to an embodiment of the invention generates web system.
Embodiment
In order to more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention, but the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
Fig. 1 shows the schematic block diagram of the automatically generating device of web system according to an embodiment of the invention.
As shown in Figure 1, the automatically generating device of web system according to an embodiment of the invention, comprising: view layer generation unit, for generating the form interface of the view layer of described web system; Model layer generation unit, comprise: Database subelement, for building database, in described database, store the database table corresponding with described form interface, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface; Class creates subelement, creates the business processing class being used for operating described database, to complete the generation of the model layer of described web system; Key-course generation unit, comprising: functional configuration subelement, for carrying out functional configuration according to the configuration file preset; Strategy sets up subelement, for setting up control strategy, to complete the generation of the key-course of described web system.
In this technical scheme, obtained by the attribute of the form interface to view layer, and set up corresponding database, make the incidence relation automatically set up between view layer and model layer, and need not completely manually carry out associated configuration by user, improve the automaticity of system development, contribute to increasing work efficiency.Meanwhile, also by providing the business processing class automatically generated, completing the concrete operations of key-course to the database of model layer, achieving view layer, tight association between model layer and key-course, contributing to reducing artificial intervention degree.
In technique scheme, preferably, described view layer generation unit comprises: chooser unit, for the selection instruction according to the user received, selects form controls and view type; List generates subelement, for according to the key entry information obtained, for each form controls adds corresponding attribute information and method information, to generate the form interface of described view layer.
In this technical scheme, for without the need to performing writing specific code, only needing to select view type and the visual control model set up in advance, can automatically generate corresponding code by backstage, contribute to increasing work efficiency.By keying in attribute information and method information, then for the system architecture by the control model-composing preset, for each concrete control arranges corresponding practical function and logical relation, but these operations are all without the need to manually writing code by user, only need to pay close attention to concrete service logic, improve automaticity, contribute to increasing work efficiency.
In above-mentioned arbitrary technical scheme, preferably, described Database subelement is used for: the JavaBean assembly creating the attribute information of each form controls comprised in described form interface; According to the attributive character of required database, generate database table, all properties information one_to_one corresponding in the field in described database table and described JavaBean assembly; Described database table is stored to database.
In this technical scheme, utilize dynamic proxy technology, by JavaBean, the attribute of the form controls of view layer is obtained, and set up corresponding database table, thus be automatically associated between view layer and model layer, and at view layer, be automatically associated between model layer with database, manually arrange without the need to user, contribute to the automaticity of elevator system, improve the work efficiency of user.
In above-mentioned arbitrary technical scheme, preferably, the foundation class for operating described database inherited by described JavaBean assembly; And described business processing class comprises Agent components and described JavaBean assembly, wherein, described Agent components, by calling described JavaBean assembly, realizes the operation to described database.
In this technical scheme, by inheriting foundation class by JavaBean assembly, realize the concrete operations to database, and realized responding concrete request during system cloud gray model by Agent components, thus the clearly division realized multiple function, contribute to concrete debugging and control.
In above-mentioned arbitrary technical scheme, preferably, described model layer generation unit also comprises: template generation subelement, for generating and storing the SQL templates statement be associated with described business processing class; Wherein, the information parsed from the operation requests received is added into described SQL templates statement by described business processing class, to generate SQL perform statement, and by described SQL perform statement, realizes the operation to described database.
In this technical scheme, by generating SQL templates statement, then when responding the request of user, without the need to all again writing SQL query statement at every turn, and the relevant position directly mark (ID etc. as concrete database table) of the data of desired operation is added in SQL templates statement, directly can realize the operation to database, contribute to shortening the response time, improve operational efficiency.
In above-mentioned arbitrary technical scheme, preferably, described key-course generation unit also comprises: file generated subelement, and for the operational motion by detecting user, determination operation object and mode of operation, to generate described default configuration file.
In this technical scheme, in the generative process of key-course, in initialization procedure and concrete functional configuration process, need to use the configuration file generated in advance.The generative process of configuration file is without the need to user's manual programming, only need by user's execution as the operation such as establishment, the selection of object, the selection of mode of operation in path, system just can generate corresponding configuration file automatically, make the generative process robotization more of configuration file, contribute to increasing work efficiency.
In above-mentioned arbitrary technical scheme, preferably, described strategy set up subelement for: according to user select framework type, read the predetermined control strategy that described framework type is corresponding; Or according to the user's configuration-direct received, set up the control strategy of configuration in real time.
In this technical scheme, user can select the framework type pre-set, then can directly read corresponding to control strategy corresponding to selected framework, to raise the efficiency; User also according to actual conditions, can configure new control strategy, to be applicable to different actual conditions.
Fig. 2 shows the schematic flow sheet of the automatic generation method of web system according to an embodiment of the invention.
As shown in Figure 2, the automatic generation method of web system according to an embodiment of the invention, comprising: the form interface generating the view layer of described web system; Building database, stores the database table corresponding with described form interface in described database, the attribute information one_to_one corresponding of each form controls in the field in described database table and described form interface; Create the business processing class being used for operating described database, to complete the generation of the model layer of described web system; Configuration file according to presetting carries out functional configuration, and sets up control strategy, to complete the generation of the key-course of described web system.
In this technical scheme, obtained by the attribute of the form interface to view layer, and set up corresponding database, make the incidence relation automatically set up between view layer and model layer, and need not completely manually carry out associated configuration by user, improve the automaticity of system development, contribute to increasing work efficiency.Meanwhile, also by providing the business processing class automatically generated, completing the concrete operations of key-course to the database of model layer, achieving view layer, tight association between model layer and key-course, contributing to reducing artificial intervention degree.
In technique scheme, preferably, the process generating described form interface comprises: according to the selection instruction of the user received, select form controls and view type, and according to the key entry information obtained, for each form controls adds corresponding attribute information and method information, to generate the form interface of described view layer.
In this technical scheme, for without the need to performing writing specific code, only needing to select view type and the visual control model set up in advance, can automatically generate corresponding code by backstage, contribute to increasing work efficiency.By keying in attribute information and method information, then for the system architecture by the control model-composing preset, for each concrete control arranges corresponding practical function and logical relation, but these operations are all without the need to manually writing code by user, only need to pay close attention to concrete service logic, improve automaticity, contribute to increasing work efficiency.
In above-mentioned arbitrary technical scheme, preferably, the process setting up described database comprises: the JavaBean assembly creating the attribute information of each form controls comprised in described form interface; According to the attributive character of required database, generate database table, all properties information one_to_one corresponding in the field in described database table and described JavaBean assembly; Described database table is stored to database.
In this technical scheme, utilize dynamic proxy technology, by JavaBean, the attribute of the form controls of view layer is obtained, and set up corresponding database table, thus be automatically associated between view layer and model layer, and at view layer, be automatically associated between model layer with database, manually arrange without the need to user, contribute to the automaticity of elevator system, improve the work efficiency of user.
In above-mentioned arbitrary technical scheme, preferably, also comprise: the foundation class for operating described database inherited by described JavaBean assembly; And described business processing class comprises Agent components and described JavaBean assembly, wherein, described Agent components, by calling described JavaBean assembly, realizes the operation to described database.
In this technical scheme, by inheriting foundation class by JavaBean assembly, realize the concrete operations to database, and realized responding concrete request during system cloud gray model by Agent components, thus the clearly division realized multiple function, contribute to concrete debugging and control.
In above-mentioned arbitrary technical scheme, preferably, also comprise: generate and store the SQL templates statement be associated with described business processing class; The information parsed from the operation requests received is added into described SQL templates statement by described business processing class, to generate SQL perform statement, and by described SQL perform statement, realizes the operation to described database.
In this technical scheme, by generating SQL templates statement, then when responding the request of user, without the need to all again writing SQL query statement at every turn, and the relevant position directly mark (ID etc. as concrete database table) of the data of desired operation is added in SQL templates statement, directly can realize the operation to database, contribute to shortening the response time, improve operational efficiency.
In above-mentioned arbitrary technical scheme, preferably, also comprise: by detecting the operational motion of user, determination operation object and mode of operation, to generate described default configuration file.
In this technical scheme, in the generative process of key-course, in initialization procedure and concrete functional configuration process, need to use the configuration file generated in advance.The generative process of configuration file is without the need to user's manual programming, only need by user's execution as the operation such as establishment, the selection of object, the selection of mode of operation in path, system just can generate corresponding configuration file automatically, make the generative process robotization more of configuration file, contribute to increasing work efficiency.
In above-mentioned arbitrary technical scheme, preferably, the process setting up control strategy comprises: the framework type selected according to user, reads the predetermined control strategy that described framework type is corresponding; Or according to the user's configuration-direct received, set up the control strategy of configuration in real time.
In this technical scheme, user can select the framework type pre-set, then can directly read corresponding to control strategy corresponding to selected framework, to raise the efficiency; User also according to actual conditions, can configure new control strategy, to be applicable to different actual conditions.
Fig. 3 shows the principle schematic that robotization according to an embodiment of the invention generates web system.
Below in conjunction with Fig. 3, the principle of work robotization based on embodiments of the invention being generated to web system is described in detail.
Assuming that in web system development platform of the present invention, comprise basis plateform system 302, also comprise for other concrete functions as view layer platform 302A, model layer platform 302B, key-course platform 302C etc., to realize the exploitation of concrete web system.
When needs perform web system exploitation, the setting being carried out in advance by plateform system 302 couples of users and complete or configuration is needed to read, to realize initialization and the functional configuration of system.
One, the automatic generation of view layer
In the present embodiment, the robotization generation of view layer is realized primarily of view layer platform 302A.Particularly, interactive process can be realized by the mode of browser, and user only needs to pull the mode with keyboard operation by mouse, can realize the generation of the page.
1, view type
User according to demand, the view type needed for selection, such as HTML, jsp, freemarker etc.
2, design drawing
Particularly, need to provide visual view control by view layer platform 302A, then user according to the demand of self, can use mouse to select and drags view control, can form corresponding design drawing.Such as, view control wherein can adopt W3C(World Wide WebConsortium, World Wide Web Consortium) control inside standard, only need the related specifications understanding W3C, do not need to spend again any time and energy goes to learn new control and API.
3, list
Design drawing on the view type that view layer platform 302A selects according to user and design platform, can generate corresponding list automatically.
Wherein, the association between the view control on list, with mutual, can adopt JavaScript and DOM technology to realize.Such as, some basic DOM can be provided in view layer platform 302A to operate (method), select for programmer; Meanwhile, programmer also can self-defined DOM method, and is associated to concrete view control.List and backstage then can adopt as ajax mode alternately, or generate the mode of interim form label submission.
4, the embodiment of " login interface "
Assuming that user needs the web system of design one " login interface ", then the generative process for view layer comprises:
1) select on interface at the control of view design platform 302A, pull a user name input frame (input-text label) and a Password Input frame (input-password label), and pull two buttons: " login " (input-button label), " replacement " (input-button label).
2) form types (as JSP, HTML etc.) needing to generate is selected: jsp; Input list ID(uniquely indicates): login.jsp.
3) attribute of each view control is edited.Such as double-click user name input frame edit properties, input ID:userName; Double-click Password Input frame edit properties, input ID:userPassword; Double-click login button edit properties, URL:login.do is submitted in input ID:loginButton, input to; Input needs the form ID:loginForm submitted to; Double-click reset button edit properties, input ID:resetButton; Input needs the form ID:loginForm reset.
4) view layer platform 302A can be that each view control generates javaScript method automatically.Such as submit to loginButton: producing interim form, an ID is: loginForm, content contain all on the page can input object (Password Input frame, Password Input frame); Action is: login.do; Last form.submit ().
Certainly, log in if user needs oneself to write javaScript method, the event attribute of login button can be edited, and change self-defining method into.
5) automation equipment generates corresponding form interface on backstage according to a series of design procedure above.
Two, the automatic generation of model layer
1、JavaBean
Model layer platform 302B uses dynamic proxy technology, using the class name (for each list generate a corresponding JavaBean) of form ID as JavaBean, html all on list can correspond to the attribute of JavaBean by input label, the JavaBean corresponding to automatically generating.
2, database
Obtain the information comprised in the JavaBean generated, the attribute information of the view control namely in view layer in corresponding list, and according to the type of database of the information of JavaBean and selected use, version and framework, automatically produce corresponding database script.
By the database script of above-mentioned generation, the database table of automatic generation corresponding with JavaBean (ID of ID and the JavaBean of such as database table, the ID of corresponding list are identical), field inside database table and the attribute one_to_one corresponding inside Javabean, thus complete the establishment to database.
Meanwhile, each JavaBean inherits a foundation class, and JavaBean mainly associates with database manipulation by this foundation class, can realize the operation to database, as increased, deleting, change, look into.
3、Action
In fact, by the request of the direct response limiting layer of JavaBean, can perform the operation to database, but in order to distinguish difference in functionality, be convenient to debugging and the division of labor of system, native system also by creating Action, thus shares the request to key-course.
Action is business processing class, and be the class of operation that of generating according to the attribute of JavaBean and method has basic database operations (additions and deletions change look into), this Action can carry out operating database by calling JavaBean.
4, SQL statement template
While generation Action, model layer platform 302B also can produce a SQL configuration file corresponding with this Action, with auxiliary support Action to the operation of database.Particularly, this SQL configuration file comprises the SQL statement template to database manipulation, then without the need to regenerating SQL statement at every turn, as long as and according to the request of key-course, the Data Identification (ID etc. as database table) of association is added into corresponding position in SQL statement template, contributes to increasing work efficiency.
Certainly, programmer can modify to Action according to actual conditions, also can modify to SQL configuration file; And the amendment of operating function for database, also can automatic synchronization in Action and SQL configuration file.
In technique scheme, by the parsing to view layer forms pages, using the various input controls of list as attribute, and generate corresponding function (method), thus obtain JavaBean.The view page on foreground can well associate with the concrete business logic processing class of background model layer by above-mentioned dynamic proxy technology, programmer is allowed only to need to be concerned about the process of concrete service logic, need not go to consider the associating of foreground and backstage, communication again, thus lifting work efficiency.
5, the embodiment of " login interface "
1) according to the list generated, create a class on backstage, its title is according to form ID (being associated): Login_jsp.java, and each attribute is consistent with the input control of list: username, usePassword; Corresponding method: getUserName (), setUserName (), getUserPassword (), setUserPassword ().
2) SQL script is generated.Specific code can be:
3) formation base class.Specific code can be:
4) Action class is generated.Specific code can be:
Three, the automatic generation of key-course
1, user's configuration
After the configuration of key-course platform 302C initialization system, enter key-course administration interface 304, and according to the configuration of user, automatically generate key-course.
User needs to generate corresponding configuration file in advance, for the functional configuration in the initial configuration of key-course and control procedure.User, without the need to writing the function code of configuration file particularly, only needs, to needing the object, mode etc. operated select or create, can automatically generate corresponding code by backstage, such as the appointment in path, only needs directly to create this path; For the appointment of operand, only need directly to choose this object.
2, processing logic
Except above-mentioned configuration, also need to arrange concrete processing logic.
1) key-course platform 302C provides the multiple framework pre-set, and user can directly select it, then processing logic corresponding for selected framework can directly be applied in current web system by key-course platform 302C.Particularly, by the configuration file of the types such as above-mentioned processing logic write web, xml is realized.
2) programmer also can not select predefined framework, but redefines processing logic according to actual conditions.Particularly, such as key-course platform 302C can generate the request URL that blocker class carrys out certain specific format ending that hook procedure person configures automatically.
More specifically, as: programmer is configured with system URL suffix at key-course administration interface 304 and is called .do, so automatic formation controller of plateform system 302 meeting, to tackle the request that all .do are suffix name, and according to the path configured during Design view layer and ID, send to blocker as request URL.Blocker is resolved the URL that obtains and is distributed to corresponding Action(business processing class).
3, the embodiment of " login interface "
1) login interface (list) is set to be submitted to login.do on view layer design platform 302A.
2) on controller management interface 304, the request that all .do tackled by blocker is configured.
3) correlation parameter of configuration is write in the web.xml file of the system that robotization generates.
4) when clicking login button, parameter can be sent to login.do, this request (request) intercepted by blocker inside web.xml, is just sent in loginAction by this request analysis, then carries out processing the processing procedure such as database manipulation particularly by loginAction.
More than be described with reference to the accompanying drawings technical scheme of the present invention, the invention provides a kind of automatically generating device of web system and a kind of automatic generation method of web system, the automation process in web system performance history can be improved, reduce manual intervention, simplify performance history.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

Translated fromChinese
1.一种web系统的自动生成装置,其特征在于,包括:1. An automatic generation device of a web system, characterized in that, comprising:视图层生成单元,用于生成所述web系统的视图层的表单界面;模型层生成单元,包括:The view layer generation unit is used to generate the form interface of the view layer of the web system; the model layer generation unit includes:数据库建立子单元,用于建立数据库,所述数据库中存储有与所述表单界面相对应的数据库表,所述数据库表中的字段与所述表单界面中的每个表单控件的属性信息一一对应;The database establishment subunit is used to establish a database, and the database table corresponding to the form interface is stored in the database, and the fields in the database table and the attribute information of each form control in the form interface are one by one correspond;类创建子单元,创建用于对所述数据库进行操作的业务处理类,以完成所述web系统的模型层的生成;A class creation subunit is used to create a business processing class for operating the database, so as to complete the generation of the model layer of the web system;控制层生成单元,包括:Control layer generation unit, including:功能配置子单元,用于根据预设的配置文件进行功能配置;A function configuration subunit, configured to perform function configuration according to a preset configuration file;策略建立子单元,用于建立控制策略,以完成所述web系统的控制层的生成。The strategy establishment subunit is used to establish a control strategy to complete the generation of the control layer of the web system.2.根据权利要求1所述的web系统的自动生成装置,其特征在于,所述视图层生成单元包括:2. The automatic generating device of the web system according to claim 1, wherein the view layer generating unit comprises:选择子单元,用于根据接收到的用户的选择指令,选择表单控件和视图类型;The selection subunit is used to select the form control and view type according to the received selection instruction from the user;表单生成子单元,用于根据获取的键入信息,为每个表单控件添加对应的属性信息和方法信息,以生成所述视图层的表单界面。The form generating subunit is configured to add corresponding attribute information and method information to each form control according to the acquired input information, so as to generate the form interface of the view layer.3.根据权利要求1所述的web系统的自动生成装置,其特征在于,所述数据库建立子单元用于:3. The automatic generating device of web system according to claim 1, characterized in that, the database establishment subunit is used for:创建包含所述表单界面中的每个表单控件的属性信息的JavaBean组件;Create a JavaBean component that contains the attribute information of each form control in the form interface;根据所需的数据库的属性特征,生成数据库表,所述数据库表中的字段与所述JavaBean组件中的所有属性信息一一对应;Generate a database table according to the attribute characteristics of the required database, and the fields in the database table are in one-to-one correspondence with all attribute information in the JavaBean component;将所述数据库表存储至数据库。The database table is stored in a database.4.根据权利要求3所述的web系统的自动生成装置,其特征在于,4. The automatic generating device of the web system according to claim 3, characterized in that,所述JavaBean组件继承用于操作所述数据库的基础类;以及The JavaBean component inherits the base class for operating the database; and所述业务处理类包括代理组件和所述JavaBean组件,其中,所述代理组件通过调用所述JavaBean组件,实现对所述数据库的操作。The business processing class includes a proxy component and the JavaBean component, wherein the proxy component realizes the operation on the database by calling the JavaBean component.5.根据权利要求1所述的web系统的自动生成装置,其特征在于,所述模型层生成单元还包括:5. The automatic generating device of the web system according to claim 1, wherein the model layer generating unit further comprises:模板生成子单元,用于生成并存储与所述业务处理类相关联的SQL模板语句;A template generating subunit, configured to generate and store SQL template statements associated with the business processing class;其中,所述业务处理类将从接收到的操作请求中解析出的信息添加至所述SQL模板语句,以生成SQL执行语句,并通过所述SQL执行语句,实现对所述数据库的操作。Wherein, the business processing class adds the information parsed from the received operation request to the SQL template statement to generate an SQL execution statement, and realizes the operation on the database through the SQL execution statement.6.根据权利要求1所述的web系统的自动生成装置,其特征在于,所述控制层生成单元还包括:6. The automatic generating device of the web system according to claim 1, wherein the control layer generating unit further comprises:文件生成子单元,用于通过检测用户的操作动作,确定操作对象和操作方式,以生成所述预设的配置文件。The file generation subunit is configured to determine the operation object and operation mode by detecting the user's operation action, so as to generate the preset configuration file.7.根据权利要求1所述的web系统的自动生成装置,其特征在于,所述策略建立子单元用于:7. The automatic generation device of the web system according to claim 1, wherein the policy establishment subunit is used for:根据用户选择的框架类型,读取所述框架类型对应的预设控制策略;According to the frame type selected by the user, read the preset control strategy corresponding to the frame type;或根据接收到的用户配置指令,建立实时配置的控制策略。Or establish a real-time configuration control strategy according to the received user configuration instruction.8.一种web系统的自动生成方法,其特征在于,包括:8. A method for automatically generating a web system, comprising:生成所述web系统的视图层的表单界面;Generate a form interface of the view layer of the web system;建立数据库,所述数据库中存储有与所述表单界面相对应的数据库表,所述数据库表中的字段与所述表单界面中的每个表单控件的属性信息一一对应;A database is established, and a database table corresponding to the form interface is stored in the database, and the fields in the database table are in one-to-one correspondence with the attribute information of each form control in the form interface;创建用于对所述数据库进行操作的业务处理类,以完成所述web系统的模型层的生成;Create a business processing class for operating the database to complete the generation of the model layer of the web system;根据预设的配置文件进行功能配置,并建立控制策略,以完成所述web系统的控制层的生成。Functional configuration is performed according to a preset configuration file, and a control strategy is established to complete the generation of the control layer of the web system.9.根据权利要求8所述的web系统的自动生成方法,其特征在于,生成所述表单界面的过程包括:9. The automatic generation method of web system according to claim 8, is characterized in that, the process of generating described form interface comprises:根据接收到的用户的选择指令,选择表单控件和视图类型,并根据获取的键入信息,为每个表单控件添加对应的属性信息和方法信息,以生成所述视图层的表单界面。Select the form control and view type according to the user's selection instruction received, and add corresponding attribute information and method information to each form control according to the obtained input information, so as to generate the form interface of the view layer.10.根据权利要求8所述的web系统的自动生成方法,其特征在于,建立所述数据库的过程包括:10. the automatic generation method of web system according to claim 8, is characterized in that, the process of setting up described database comprises:创建包含所述表单界面中的每个表单控件的属性信息的JavaBean组件;Create a JavaBean component that contains the attribute information of each form control in the form interface;根据所需的数据库的属性特征,生成数据库表,所述数据库表中的字段与所述JavaBean组件中的所有属性信息一一对应;Generate a database table according to the attribute characteristics of the required database, and the fields in the database table are in one-to-one correspondence with all attribute information in the JavaBean component;将所述数据库表存储至数据库。The database table is stored in a database.11.根据权利要求10所述的web系统的自动生成方法,其特征在于,还包括:11. The automatic generation method of web system according to claim 10, is characterized in that, also comprises:所述JavaBean组件继承用于操作所述数据库的基础类;以及The JavaBean component inherits the base class for operating the database; and所述业务处理类包括代理组件和所述JavaBean组件,其中,所述代理组件通过调用所述JavaBean组件,实现对所述数据库的操作。The business processing class includes a proxy component and the JavaBean component, wherein the proxy component realizes the operation on the database by calling the JavaBean component.12.根据权利要求8所述的web系统的自动生成方法,其特征在于,还包括:12. The automatic generation method of web system according to claim 8, is characterized in that, also comprises:生成并存储与所述业务处理类相关联的SQL模板语句;Generate and store SQL template statements associated with the business processing class;所述业务处理类将从接收到的操作请求中解析出的信息添加至所述SQL模板语句,以生成SQL执行语句,并通过所述SQL执行语句,实现对所述数据库的操作。The business processing class adds the information parsed from the received operation request to the SQL template statement to generate an SQL execution statement, and implements the operation on the database through the SQL execution statement.13.根据权利要求8所述的web系统的自动生成方法,其特征在于,还包括:13. The method for automatically generating a web system according to claim 8, further comprising:通过检测用户的操作动作,确定操作对象和操作方式,以生成所述预设的配置文件。By detecting the user's operation action, the operation object and operation mode are determined to generate the preset configuration file.14.根据权利要求8所述的web系统的自动生成方法,其特征在于,建立控制策略的过程包括:14. The method for automatically generating a web system according to claim 8, wherein the process of establishing a control strategy comprises:根据用户选择的框架类型,读取所述框架类型对应的预设控制策略;According to the frame type selected by the user, read the preset control strategy corresponding to the frame type;或根据接收到的用户配置指令,建立实时配置的控制策略。Or establish a real-time configuration control strategy according to the received user configuration instruction.
CN201310412990.5A2013-09-112013-09-11The automatically generating device and automatic generation method of web systemExpired - Fee RelatedCN104424338B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310412990.5ACN104424338B (en)2013-09-112013-09-11The automatically generating device and automatic generation method of web system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310412990.5ACN104424338B (en)2013-09-112013-09-11The automatically generating device and automatic generation method of web system

Publications (2)

Publication NumberPublication Date
CN104424338Atrue CN104424338A (en)2015-03-18
CN104424338B CN104424338B (en)2018-02-02

Family

ID=52973312

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310412990.5AExpired - Fee RelatedCN104424338B (en)2013-09-112013-09-11The automatically generating device and automatic generation method of web system

Country Status (1)

CountryLink
CN (1)CN104424338B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104793961A (en)*2015-05-102015-07-22黄伟Quick JavaWeb development method and system using native Web codes
CN105262596A (en)*2015-11-242016-01-20北京锤子数码科技有限公司Network authentication automatic login method and system
CN105677347A (en)*2016-01-052016-06-15浪潮通用软件有限公司Method and device for processing data
CN106021211A (en)*2016-05-182016-10-12山东达创网络科技股份有限公司Intelligent form system and generation method thereof
CN106648587A (en)*2016-09-282017-05-10福州宇嘉软件科技有限公司Annotation-based Web application code generation method
CN106648690A (en)*2016-12-292017-05-10北京恒华伟业科技股份有限公司Code automatic generation method and apparatus
CN106951233A (en)*2017-03-022017-07-14广州天高软件科技有限公司Mixed mode smart mobile phone application development framework
CN107249106A (en)*2017-04-282017-10-13太仓鸿策拓达科技咨询有限公司A kind of production of film and TV changing interface system
CN107491478A (en)*2017-07-032017-12-19广东南方数码科技股份有限公司Data processing method, electronic equipment and storage medium based on flow chart directly perceived
CN108614693A (en)*2018-03-212018-10-02阿里巴巴集团控股有限公司It is a kind of for the processing method of page assembly, device and equipment
CN108984653A (en)*2018-06-272018-12-11广州市南方人力资源评价中心有限公司A method of realizing the online development management of multisystem
CN109284469A (en)*2018-10-232019-01-29中山市晋华软件科技有限公司webpage development framework
CN109783555A (en)*2018-12-132019-05-21东软集团股份有限公司Form templat storage method, device, storage medium and electronic equipment
CN109783509A (en)*2019-01-042019-05-21中国银行股份有限公司SQL scenario generation method and device
CN110019307A (en)*2017-12-282019-07-16阿里巴巴集团控股有限公司Data processing method and device
CN111026732A (en)*2019-12-032020-04-17深圳中科保泰科技有限公司Dynamic patrolling method and system
CN111078213A (en)*2018-10-182020-04-28马上消费金融股份有限公司Code generation method and code generation device
CN111309316A (en)*2020-01-162020-06-19深圳壹账通智能科技有限公司Web frame model establishing method and device
CN111475143A (en)*2020-04-072020-07-31四川虹美智能科技有限公司Method and device for customizing software

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20030023953A1 (en)*2000-12-042003-01-30Lucassen John M.MVC (model-view-conroller) based multi-modal authoring tool and development environment
CN101694618A (en)*2009-09-012010-04-14卡斯柯信号有限公司Automatic mapping method of model layer and view layer data suitable for AJAX frame
CN102117203A (en)*2009-12-302011-07-06上海杉达学院Information management system based on Struts frame
CN102650952A (en)*2011-02-282012-08-29北京航空航天大学Modeling tool order calling method and system based on MVC framework

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20030023953A1 (en)*2000-12-042003-01-30Lucassen John M.MVC (model-view-conroller) based multi-modal authoring tool and development environment
CN101694618A (en)*2009-09-012010-04-14卡斯柯信号有限公司Automatic mapping method of model layer and view layer data suitable for AJAX frame
CN102117203A (en)*2009-12-302011-07-06上海杉达学院Information management system based on Struts frame
CN102650952A (en)*2011-02-282012-08-29北京航空航天大学Modeling tool order calling method and system based on MVC framework

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JOSE CARLOS CASTILLO ETAL.: "A Multisensory Monitoring and Interpretation Framework Based on the Model-View-Controller Paradigm", 《INTERNATIONAL WORK-CONFERENCE ON THE INTERPLAY BETWEEN NATURALAND ARTIFICIAL COMPUTATION 》*
刘坤彪等: "基于MVC模式的Web应用开发研究", 《浙江交通职业技术学院学报》*
王斐: "MVC设计模式中视图层的改进", 《科学技术与工程》*

Cited By (26)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104793961A (en)*2015-05-102015-07-22黄伟Quick JavaWeb development method and system using native Web codes
CN105262596B (en)*2015-11-242019-03-15北京字节跳动网络技术有限公司A kind of network authentication automatic logging method and system
CN105262596A (en)*2015-11-242016-01-20北京锤子数码科技有限公司Network authentication automatic login method and system
CN105677347A (en)*2016-01-052016-06-15浪潮通用软件有限公司Method and device for processing data
CN106021211A (en)*2016-05-182016-10-12山东达创网络科技股份有限公司Intelligent form system and generation method thereof
CN106648587A (en)*2016-09-282017-05-10福州宇嘉软件科技有限公司Annotation-based Web application code generation method
CN106648690A (en)*2016-12-292017-05-10北京恒华伟业科技股份有限公司Code automatic generation method and apparatus
CN106648690B (en)*2016-12-292020-04-07北京恒华伟业科技股份有限公司Automatic code generation method and device
CN106951233A (en)*2017-03-022017-07-14广州天高软件科技有限公司Mixed mode smart mobile phone application development framework
CN106951233B (en)*2017-03-022020-04-17广州天高软件科技有限公司Mixed-mode smart phone application development framework system
CN107249106A (en)*2017-04-282017-10-13太仓鸿策拓达科技咨询有限公司A kind of production of film and TV changing interface system
CN107491478A (en)*2017-07-032017-12-19广东南方数码科技股份有限公司Data processing method, electronic equipment and storage medium based on flow chart directly perceived
CN110019307A (en)*2017-12-282019-07-16阿里巴巴集团控股有限公司Data processing method and device
CN110019307B (en)*2017-12-282023-09-01阿里巴巴集团控股有限公司Data processing method and device
CN108614693A (en)*2018-03-212018-10-02阿里巴巴集团控股有限公司It is a kind of for the processing method of page assembly, device and equipment
CN108984653A (en)*2018-06-272018-12-11广州市南方人力资源评价中心有限公司A method of realizing the online development management of multisystem
CN111078213A (en)*2018-10-182020-04-28马上消费金融股份有限公司Code generation method and code generation device
CN111078213B (en)*2018-10-182024-01-19马上消费金融股份有限公司Code generation method and code generation device
CN109284469A (en)*2018-10-232019-01-29中山市晋华软件科技有限公司webpage development framework
CN109783555B (en)*2018-12-132021-07-30东软集团股份有限公司Form template storage method and device, storage medium and electronic equipment
CN109783555A (en)*2018-12-132019-05-21东软集团股份有限公司Form templat storage method, device, storage medium and electronic equipment
CN109783509A (en)*2019-01-042019-05-21中国银行股份有限公司SQL scenario generation method and device
CN111026732A (en)*2019-12-032020-04-17深圳中科保泰科技有限公司Dynamic patrolling method and system
CN111026732B (en)*2019-12-032023-11-17深圳块织类脑智能科技有限公司Dynamic inspection tour method and system
CN111309316A (en)*2020-01-162020-06-19深圳壹账通智能科技有限公司Web frame model establishing method and device
CN111475143A (en)*2020-04-072020-07-31四川虹美智能科技有限公司Method and device for customizing software

Also Published As

Publication numberPublication date
CN104424338B (en)2018-02-02

Similar Documents

PublicationPublication DateTitle
CN104424338A (en)Automatic generation device and automatic generation method for web system
US20210034336A1 (en)Executing a process-based software application in a first computing environment and a second computing environment
RU2536390C2 (en)Automated report generation method
US12373172B2 (en)Interactive graphic design system to enable creation and use of variant component sets for interactive objects
CN103645908B (en)Full life circle development achievement system of intemetware
WO2019109485A1 (en)Echarts tool-based chart making method, apparatus and device, and medium
WO2015078343A1 (en)Development method for web development system, and web development system
CN105549982A (en)Automated development platform based on model configuration
CN105278946A (en)RESTful API visualization method
CN103631877A (en)Webpage table processing method
CN116627418B (en) A method and device for visual generation of multi-level form interface based on recursive algorithm
CN108491195A (en)Equipment controls page generation method and system
CN104834551A (en)NET code automatic generation method based on four-layer architecture
JP2008203912A (en) Screen creation apparatus and method, and program
CN115639998A (en)Report management method and device, storage medium and electronic device
CN115357502A (en)Server interface testing method, device, equipment and storage medium
CN114692055A (en) Form processing method, device, storage medium and electronic device
CN116827604B (en)Application login control method, system, terminal and storage medium
WO2016201813A1 (en)Dynamic layout method and system based on android
TW201725542A (en)Form management system and method
JP2020087299A (en)Web construction support device and web construction support program
CN103530122B (en)Programmable instrument standard command generation method based on graphical interface
TWI714514B (en)Node name diversified hierarchical group management device and setting method thereof
JP2014059699A (en)Demo application generation system and demo application generation program
JP2015069247A (en)Information processing apparatus, control method for information processing apparatus, and program

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP01Change in the name or title of a patent holder
CP01Change in the name or title of a patent holder

Address after:100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee after:PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee after:FOUNDER APABI TECHNOLOGY Ltd.

Patentee after:PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

Address before:100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before:PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before:FOUNDER APABI TECHNOLOGY Ltd.

Patentee before:FOUNDER INFORMATION INDUSTRY HOLDINGS Co.,Ltd.

TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20220916

Address after:3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after:New founder holdings development Co.,Ltd.

Patentee after:FOUNDER APABI TECHNOLOGY Ltd.

Address before:100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before:PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before:FOUNDER APABI TECHNOLOGY Ltd.

Patentee before:PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD.

CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20180202


[8]ページ先頭

©2009-2025 Movatter.jp