CN102779037A - Visual programming method for automatically generating and uniformly maintaining java items - Google Patents

Visual programming method for automatically generating and uniformly maintaining java items Download PDF

Info

Publication number
CN102779037A
CN102779037A CN2012101664833A CN201210166483A CN102779037A CN 102779037 A CN102779037 A CN 102779037A CN 2012101664833 A CN2012101664833 A CN 2012101664833A CN 201210166483 A CN201210166483 A CN 201210166483A CN 102779037 A CN102779037 A CN 102779037A
Authority
CN
China
Prior art keywords
java
project
management
information
menu
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
CN2012101664833A
Other languages
Chinese (zh)
Other versions
CN102779037B (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.)
HANGZHOU SKY-MOBI TECHNOLOGY Co Ltd
Original Assignee
HANGZHOU SKY-MOBI 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 HANGZHOU SKY-MOBI TECHNOLOGY Co Ltd filed Critical HANGZHOU SKY-MOBI TECHNOLOGY Co Ltd
Priority to CN201210166483.3A priority Critical patent/CN102779037B/en
Publication of CN102779037A publication Critical patent/CN102779037A/en
Application granted granted Critical
Publication of CN102779037B publication Critical patent/CN102779037B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a visual programming method for automatically generating and uniformly maintaining java items. The visual programming method is free from technical limitation, low in professional requirements, exhaustive in automatic code generation and capable of realizing real-time uniform maintenance. The method comprises the following steps of: firstly, creating a visual java item information list; then, managing the menus under the java item information list; and finally, uniformly coding, releasing and arranging the java items automatically generated after visual operation. The method provided by the invention is mainly used in the java visual programming technology.

Description

The visual programming method of a kind of automatic generation and uniform maintenance java project
Technical field
The present invention relates to java visual programming technical field, be specifically related to the visual programming method of a kind of automatic generation and uniform maintenance java project.
Background technology
Java is the language of a shop front to object analysis, though have powerful JDK, in Development Engineering; Still be engaged in a lot of work that repeat inevitably, if not start from nothing, when often developing a project; File more than 80% is downloaded from existing code library; The code that needs programmer oneself to write often only accounts for very little proportion, and for an identical service line, this duplication of labour meeting is more obvious.
The service end project of BS framework, from the angle of functional requirement, majority all can comprise: increase, delete, change, look into the perhaps combination of these functions; From user interface, have a lot of menus under the project, majority can comprise under the menu: original list, tree etc., an original list has various function buttons, query facility hurdle, needs the data cell of displaying etc.Identifying code framework each other all basically that demand is similar with user interface this means that the code similarity should also be very high.That is to say, we (project manager, demand analysis personnel, developer, tester etc.) going round and beginning again in a sense always doing repeat the work.
Therefore; If so management platform is provided: systematic function is similar in batches, the also similar java project of operation interface, and can carry out unified maintenance to these java projects; Will improve efficiency of software to a great extent so, reduce maintenance cost.
Chinese patent publication number CN 101419544A, open day is on 04 29th, 2009, name is called in the scheme of " a kind of program code automatic generator of computer " and discloses a kind of program code automatic generator of computer.The computer program code that it comprises generation is based on the C# grammer; Can be used for visit; Revise, delete the code of data in known SQLSERVER or the ACCESS database table, perhaps generate the code of associated databases storing process according to the structure of showing in the database.Weak point is that this program code automatic generator has considerable restraint to technology; Professional requirement is high, automatically generating code very not thoroughly, after project is reached the standard grade; Can not realize real-time uniform maintenance, when relating to any requirement change, all want the update routine code.
Chinese patent publication number CN 102156640A, open day is on 08 17th, 2011, name is called in the scheme of " a kind of data manipulation code generating method " and discloses a kind of data manipulation code generating method.It is to utilize mould plate technique, generates the data manipulation code according to the database metamessage, need not configuration and can be incorporated in the system, and system comprises Code Template, database metamessage, metamessage filtrator, code generator, data manipulation code; Code Template: Code Template provides the definition of code to be generated, is divided into following two parts: data object Code Template and data manipulation Code Template; Wherein, the data object Code Template: the definition of fulfillment database object metamessage in object oriented language comprises at least: object definition, object properties definition, and object properties read definition; Data manipulation Code Template: be responsible for the content of institute's generating code, customize the code that is generated through template; Realize the definition of data manipulation method in object oriented language, comprise at least: data retriever definition, data deletion definition, Data Update definition, data owner key definition.Weak point is, this data manipulation code generating method has to technology that considerable restraint, professional requirement are high, generating code be very not thoroughly, can not realize real-time uniform maintenance after project is reached the standard grade automatically.
 
Summary of the invention
The present invention is in order to solve in the existing programmed method; Exist technical limitation big, professional require high, generating code is not thoroughly automatically, project can not realize these deficiencies of real-time uniform maintenance after reaching the standard grade, provide a kind of do not have technical limitation, professional require low, automatic generating code thoroughly, can realize a kind of automatic generation of real-time uniform maintenance and the visual programming method of uniform maintenance java project.
To achieve these goals, the present invention adopts following technical scheme:
The visual programming method of a kind of automatic generation and uniform maintenance java project is characterized in that, described method comprises:
At first, create visual java project information tabulation;
Then, menu below the tabulation of management java project information;
At last, the java item code that generates automatically behind the visualized operation is unified compiling, issue and deployment.
The core concept of technical scheme of the present invention can three keywords of simmer down to: split, encapsulation and assembling, describe one by one below.
Split: at first be operational fractionation; A project can be split as menu one by one; A menu can split out original list, tree etc. one by one, and an original list can split out query facility hurdle one by one, the data cell that needs displaying, function button etc., and more special here function button is the button about the data typing; What this button was corresponding is a more special page; Be the data typing page, this page can be split as data entry element one by one again, and data entry element can be split as one by one type, length etc.; Next is technical fractionation; Java project can be split as independent one by one and can co-operating java file (configuration file can be regarded as the part of java file and exist); Java file can be split as method and attribute one by one one by one; The database structure of a project can be split as many pieces of table, storing process one by one etc., and a table can be split as field one by one, and a field can be split as type, length etc.Technical fractionation is the technical know-how basis that can split on the business, and operational fractionation is the technical feasibility prerequisite that can split.
Encapsulation: java is the language of a shop front to object.Encapsulation, succession and polymorphic be its three big key property, and in various technological books, all encapsulation is ranked the first, this is enough to explain the importance of encapsulation to the java language.This programme has made full use of this characteristic just; The split individuality one by one that comes out can be packaged into an object on the business; The technical support of these objects is its pairing technical split individuality one by one that comes out just, all once visual operations of correspondence of encapsulation each time.
Assembling: if split is a process that breaks the whole up into parts; Assembling is exactly a process of turning parts into the whole so; According to user's service needed, unit one by one packaged in above-mentioned (2) is assembled flexibly, up to being assembled into complete one by one java project; Also can reach the purpose of uniform maintenance through this assembling.
Assembling is a purpose, and fractionation and encapsulation are implementations, and it is marginal splitting and encapsulating assembling.Be the implementation under this technical know-how instructs below.
This programme is the visual programming method that a kind of automatic generation and uniform maintenance java project will be provided, and four keywords are arranged here: generation automatically, uniform maintenance, visual programming and java project.
" generation automatically " and " uniform maintenance " are this programme final purpose, and " visual programming " is a kind of approach that realizes this purpose, and " java project " is the object of this scheme implementation.
" automatically generate " is to developer's the duplication of labour, if can realize " generating automatically ", just do not have the duplication of labour, and the java file distribution that generates is automatically arrived the place of appointment, promptly but realize the management of code.The prerequisite of " uniform maintenance " is " generating automatically ", the java code that generates is automatically compiled, and be published to the place of appointment, promptly can realize uniform maintenance, and the object of " uniform maintenance " can be that the developer also can be final user.
For certain a series of similarity than higher project; It is split; Identical place encapsulated do not allow the user to perceive; Different places encapsulated being placed on the foreground and supplying user's assembling, at last the code of these same sections is in the same place with the code combination of assembling back generation, is exactly a complete project.Because each company or individual diversity and the Unpredictability that adopts technology; The place that project is identical can not be unified and opinion, is not difficult matter but identical place is extracted, and for example extracting goes out the code base framework; Each company or individual; No matter whether start from nothing the foundation code storehouse of oneself to be arranged all, like this, just begin when doing similar project without accent.The foundation code storehouse has been arranged, why also had so much code to write, because still have difference between each project.Through a large amount of project analyses and analogy; We can find, no matter are from the functional requirement angle or from the user interface angle, all are (the detailed ginsengs 1) that has very big something in common; Real different be data and around the difference of aspects such as the relevant data processing method of data, data message display form; So these parts inequality are encapsulated, a visual operating platform is provided, let the user edit or safeguard the data of oneself being concerned about; The code that this part is produced and the code combination of those something in common are exactly a complete project together.
As preferably, the method for described establishment java project information tabulation comprises:
(1) java project essential information is generated management automatically;
(2) judge whether a newly-built java project;
(3) generate java item base code skeleton or editor java project information;
(4) public database table under the management java project;
(5) generate entity class.
As preferably, the method for menu comprises below the tabulation of described management java project information:
(1) the menu essential information is generated management automatically;
(2) the menu code of the concurrent simple correlation of distributing food among the guests of generation.
As preferably, the method that described java item code is unified to compile, issue and dispose comprises:
(1) essential information of java project is carried out the uniform maintenance management;
(2) the menu essential information is carried out the uniform maintenance management;
(3) verification object address legitimacy;
(4) the java project is compiled and disposes;
(5) restart server.
As preferably, described java project essential information generates management automatically, comprises the management to project name, resource name, resource path, code administration address and database relevant information; Described generation java item base code skeleton or editor java project information are to be published under the path of appointment generating java item base code skeleton, and according to the newly-built file directory of resource name; Public database table under the described management java project comprises the management of field being showed title, field data library name, field type and field table name; Described generation entity class comprises the path that generates entity class.The common data base table supplies all menus uses under this project with its corresponding entity class, can find this entity class through the path of entity class.
As preferably, described the menu essential information is generated management automatically, comprise management to pad name, menu resource, original list type and paging toolbar.
As preferably, described essential information to the java project is carried out the uniform maintenance management, comprises project name, resource name, resource path, code administration address, database relevant information, disposes the management of destination address, FTP user's name and ftp password; Described the menu essential information is carried out uniform maintenance management, comprise management pad name, menu resource, original list type and paging toolbar; The described server that restarts is for accomplishing in program inside.
As preferably, in server, create two catalogues, java project foundation framework is put in one of them catalogue; The code that generates all is put in another catalogue; And with the format management java project information of directory tree, leaf node is the java project information, and non-leaf node is a directory information.
The present invention can reach following effect:
1, this programme can visual automatic generation the effective java project of operation intactly, the Core Generator that can be used as foundation code uses, it is simple in the extreme, efficient that the code skeleton building on basis will become.In addition, again need not use other miscellaneous instrument.
2, can carry out visual uniform maintenance to each project of automatic generation, this can be from reducing the risk that the requirement change project of giving is brought to a great extent, thereby increased the controllability of project.
3, and company or individuality that project amount again many similar for those demands if introduce this programme, can reduce cost of software development greatly.
4, systematic function is similar in batches for this programme, the also similar java project of operation interface, and can carry out unified maintenance to these java projects, and will improve efficiency of software to a great extent so, reduce maintenance cost.
 
Description of drawings
Fig. 1 is that a kind of flow process framework of the present invention is always schemed.
Fig. 2 is of the present invention a kind of to creating the FB(flow block) of java project information tabulation.
Fig. 3 is a kind of FB(flow block) to the following menu of management java project information tabulation of the present invention.
Fig. 4 is a kind of FB(flow block) of compiling, issue and disposing that the java item code is unified of the present invention.
Fig. 5 is a kind of specific embodiment frame diagram of the present invention.
 
Embodiment
Pass through embodiment below, and combine accompanying drawing, do further bright specifically technical scheme of the present invention.
Embodiment: the visual programming method of a kind of automatic generation of present embodiment and uniform maintenance java project, method comprises:
At first,, create visual java project information tabulation, comprising like Fig. 1, shown in Figure 2:
A, java project essential information is generated management automatically, this part is managed with tree structure, comprises project name, resource name, resource path, code administration ground
The management of location and database relevant information.
Project name: the pairing display Name of project;
Resource name: the resource name of this project;
Resource path: the address of visiting this project;
Code administration address: behind the generating code, this code is published to address there;
Database relevant information: driving, URL, user name, password etc.
B, judge whether a newly-built java project;
C, generation java item base code skeleton or editor java project information are to be published under the path of appointment generating a java item base code skeleton, and according to the newly-built file directory of resource name;
Public database table under D, the management java project comprises the management of field being showed title, field data library name, field type and field table name;
Public data comes source control: the table that a plurality of menus all possibly used under the project is here managed, and need manage following information at least:
Field is showed title: the title that shows the user;
Field data library name: the database name that this field is corresponding;
Field type: the type of database of field;
Table name: the pairing database table of this field.
E, generation entity class comprise the path that generates entity class.
After adopting aforesaid way, the design effort of database no longer needs the professional person to carry out, and just can accomplish the design effort of database through this visualized operation.
Then, like Fig. 1, shown in Figure 3, menu below the tabulation of management java project information, to menu management, present embodiment is an example with the B/S framework, establishment of item well after, next be exactly the menu below the management project.Comprise:
A, the menu essential information is generated management automatically, comprise management pad name, menu resource, original list type and paging toolbar; This part can be managed with the form of tabulation; Record of a menu; Buttons such as newly-increased, the editor of configuration, deletion in toolbar; Page management, button management suggestion are placed on management together in newly-increased or the editing interface, come menu data source control and button customization to be placed in the toolbar and manage;
The menu basic information management, mainly manage following information:
Pad name: the i.e. displaying title of menu;
Menu resource: the access path with menu is relevant;
Original list type: like pure original list, need the original list on query facility hurdle etc.;
Whether need the paging toolbar: whether configuration needs the paging toolbar;
Button customization:, manage following information to each menu customization button: ordering and push button function type, that acquiescence can customize is newly-increased, delete and edit the button of three kinds of functions;
Button display Name: the i.e. title of operation interface demonstration;
Push button function type: newly-increased, deletion, editor etc.;
The page elements management: the push button function type is more special for newly-increased or editor, because it relates to the typing and the maintenance of data, the user is concerned about the typing of which data and safeguards and can edit at this;
Button management: add the button in the perhaps deletion " button customization ", and can do sequencing management;
Menu data comes source control: the public data with in the item base information management comes source control, and the source only here can only be that this menu uses;
Page management: the i.e. field that need show of original list.Come source control and public data to come the field in the source control to add menu data; If relate to many tables; Just regenerate an entity class according to these fields, the class name rule can oneself define, and guarantees unique getting final product; And the path and the class name of entity class are preserved warehouse-in, can do ordering and handle.
The menu code of B, the concurrent simple correlation of distributing food among the guests of generation.The code that need to generate comprises: the business processing class of menu, service class and DAO class, and these types are published to respectively under the file of appointment, path and class name and and the mapping relations of menu all to put in storage.The code that generates can be used as the code skeleton on basis and manages, if need what special function to add on this basis.
At last,, the java item code that generates automatically behind the visualized operation is unified compiling, issue and deployment, comprising like Fig. 1, shown in Figure 4:
A, the essential information of java project is carried out uniform maintenance management, comprise project name, resource name, resource path, code administration address, database relevant information, dispose the management of destination address, FTP user's name and ftp password;
B, the menu essential information is carried out uniform maintenance management, comprise management pad name, menu resource, original list type and paging toolbar;
C, verification object address legitimacy, whether the information of disposing destination address, user name, password legal, whether can connect first-class;
D, the java project is compiled and disposes, project is compiled, then through FTP with file transfer to appointed positions; Compiling and the catalogue of disposing can control, as project level, menu level, the efficient that can improve compiling like this and dispose;
E, accomplish the server work of restarting in that program is inner, when compiling dispose accomplish after, the startup command of invoking server tomcat in the java program.
By the way, after the java project is reached the standard grade, real-time uniform maintenance can be realized, the frequent requirement change of user can be responded faster.
As shown in Figure 5, in server, create two catalogues, java project foundation framework is put in one of them catalogue; The code that generates all is put in another catalogue; And with the format management java project information of directory tree, leaf node is the java project information, and non-leaf node is a directory information.
The practical implementation step of the visual programming method of a kind of automatic generation of present embodiment and uniform maintenance java project mainly is divided into visual automatic generation java project and two big steps of visual uniform maintenance java project.
Visual automatic generation java project can generate platform as visual code in daily performance history; Visual uniform maintenance java project can be used as a visualization project uniform maintenance platform, can realize real-time uniform maintenance after the java project is reached the standard grade.
The equipment that present embodiment is selected for use comprises: Eclipse, pgAdmin, tomcat and ftp.Wherein,
Eclipse is a kind of java developing instrument, so long as the java developing instrument just can, not restriction;
PgAdmin is a postgresql data management instrument, so long as the corresponding database management tool gets final product not restriction;
Tomcat is the WEB server, as long as can make the server of the normal operation of project just passable, and not restriction;
Ftp is a Ftp server, as long as the equipment of ability transfer files, not restriction.
Be a kind of practical implementation step of the visual programming method of generation automatically and uniform maintenance java project below:
One, visual automatic generation java project implementation step:
The first step: newly-built two catalogue: souce and target under the tomcat catalogue, the project foundation code skeleton is put under the sorce catalogue, the code of generation all is placed under the target catalogue.
Second step: with the format management project information of directory tree, click root directory and list all items tabulation, if project can be built hierarchical structure when many, leaf node is represented project information, and non-leaf node is represented directory information.
The 3rd step: give the Create button of right button configuration of root directory, click the back and eject a project basic information management page, manage following information:
A, project name: the display Name of this project;
B, resource name: the resource name of this project;
C, resource path: the address of visiting this project;
D, database join dependency information: driving, URL, user name, password etc.;
E, give this window configuration " preservations ", " replacement " and cancel three buttons.
The 4th step: after clicking " preservation " button in the 3rd step, following thing need be done in the backstage:
A, under the target catalogue, with the newly-built folder content of the resource name of project;
B, the foundation code framework under the sorce catalogue is copied under the folder content with resource name name under the target catalogue.
The 5th step: give project information right button configuration " checking " button, can check the essential information of project.
The 6th step: give project information right button configuration the Edit button, can edit to the project essential information.
The 7th step: click in the administration interface that the Edit button ejected in the 6th step; Dispose " public data source " button; It after the click original list; Configuration " increasing newly ", " editor ", " deletion ", " returning " and the Publish button in the toolbar, the data of tabulation are showed following information at least: field data library name, field display Name, field type, table name etc.;
The 8th step: click " increasing newly " button in the 7th step, eject an administration interface, need the following information of management:
A, field are showed title: the title that shows the user;
B, field data library name: the database name that this field is corresponding;
C, field type: the type of database of field generally has character string type, integer type, time type etc., the display form of this field and the page verification mode when this is related to logging data;
D, table name: the pairing database table of this field, Naming conventions oneself is fixed;
E, configuration " preservation " and the Back button, when clicking " preservation ", following thing is done on the backstage: whether the inspection table name exists; Whether if do not exist, just ejecting a dialog box " needs major key ", earlier a newly-built table; If need major key, then the information of this field is added in this table, if the table name existence with regard to a newly-built sequence (sequence name can with the mode that adds the seq+ underscore before the table name); Just in this table, newly adding a field gets final product; Click the Back button, close current page (not specifying that if having all following " returning " perhaps " cancellation " button all are to close current page).
The 9th step: click the Edit button in the 7th step, the information of edit field (edit field information optionally, as only edit field showing title, out of Memory is read-only).
The tenth step: when clicking the Publish button in the 7th step, following thing is done on the backstage:
A, a table produce an entity class, and entity class name standard can produce according to table name, and according to the field information of table, an attribute in field correspondent entity class generates attribute-name and getter and setter method automatically;
B, with the entity class file distribution that generates (configurable) under the pub/entity catalogue;
C, platform write down the mapping relations between public entity class, table name and the project.
The 11 step: " deletion " button, click corresponding field in the delete database of back, do the logic deletion.
The 12 step: when left button is clicked project, show all menu informations under this project in the original list of the right, configuration " increasing newly ", " editor ", " deletion ", " customization button " and " menu data source " five function buttons in the toolbar.
The 13 step: when clicking " increasing newly " button in the 12 step, eject an edit box, manage following information:
A, pad name: i.e. the displaying title of menu;
B, menu resource: the access path with menu is relevant;
C, original list type: like pure original list, need the original list on query facility hurdle etc.;
D, whether need the paging toolbar: whether configuration needs the paging toolbar;
E, configuration " preservation " and " cancellation " button; When clicking " preservation "; Following thing is done on the backstage: generate this menu relevant business processing class, service class and DAO class etc. automatically; And be put under the folder content of appointment (configurable) mapping relations between platform these types of record and the menu.
The 14 step: " menu data source " button in the 12 step, management be traffic table information and the entity class information this menu under, administration interface and the 7th step, the 8th step, the 9th go on foot the same, but information difference slightly as follows:
The table in A, " menu data source " can only be that this menu uses, so the platform record is the mapping relations between menu data source and the menu;
B, entity class can only be that this menu uses, so the platform record is the mapping relations between entity class and the menu.
The 15 step: click " customization button " button in the 12 step, all pushbutton datas, toolbar configuration " increasing newly ", " editor ", " deletion " and " closing " four function buttons with the presented of tabulating.
The 16 step: click " increasing newly " or the Edit button in the 15 step, manage following information:
A, button display Name: the i.e. title of operation interface demonstration;
B, push button function type: newly-increased, deletion, editor etc.;
If the C function type is newly-increased or editor's (corresponding all is the data typing page), configuration " page elements management " button;
D, configuration " preservation " and " cancellation " button are clicked and are preserved, with the information warehouse-in of customization button and the mapping relations between record and the menu.
The 17 step: in the 16 step, click " page elements management " button, eject an original list, displaying be to increase newly or the needed element of edit page, toolbar disposes " element source ", " ordering ", " deletion " and the Back button.
The 18 step: click " element source " button in the 17 step; An administration interface is provided; Can the field in " public data source " in the 7th step and " menu data source " in the 14 step added, after click was preserved, following thing be done on the backstage:
A, generate an entity class automatically, and note the mapping relations between newly-increased (editor) button and this entity class;
B, generate the interface, foreground automatically; Have mapping relations (like character string type with text box, time type with the time control etc.) between data entry element and the field type, this menu of platform record down increase the mapping relations between (editor) button and the interface, foreground newly.
The 19 step: click " ordering " button in the 17 step, can the element in the data typing page be sorted, location records can be preserved with the rule of which which row of row.
The 20 step: click " deletion " button in the 17 step, delete the customization button under this menu, preferably do the logic deletion.
The 21 step: click the Edit button in the 12 step, except the menu essential information is edited, dispose two buttons again: " page management " and " button management ".
The 22 step: click " page management " button in the 21 step; List the field that the pairing page of this menu need be showed; If what select in the 13 step is " pure original list "; Dispose " field source ", " ordering ", " deletion " three buttons so in the toolbar, otherwise in addition need polygamy to put " management of a query facility hurdle " function button.
The 23 step: administration interface is with the 18 step, 19 steps and 20 steps; Different is, and what to write down here is the field that the bulleted list page need be showed; After clicking preservation, the backstage generates an entity class automatically, and the mapping relations between the platform record page and this entity class.
The 24 step: click " management of the query facility hurdle " button in the 22 step; The field of querying condition is added (administration interface is with the 18, the 19, the 20 step); And produce an entity class automatically, the mapping relations between platform this page of record and the entity class.
The 25 step: click " button management " in the 21 step, eject an original list, list the information of the needed button of this menu corresponding page, configuration " button source ", " ordering ", " deletion ", " closing " in toolbar.
The 26 step: click " button source " in the 25 step, eject an administration interface, list " customization button " tabulation under this menu, provide the customization button is added and operations such as deletion, ordering.
The 27 step: click " deletion " button in the 12 step, the mapping relations between deletion menu and the project.
The 28 step: after having edited menu information, behind click " preservation " button, following thing need be handled in the backstage:
A, the 12 goes on foot between the 26 step and has noted the mapping relations between various entity class and the menu; Also preserved in the path of class; When business processing class, service class (service) and the DAO class of menu need these entity class so at this moment; These entity class of import, and business processing class arbitrarily also can the needed service class of import, and service class can the needed DAO class of import;
That B, backstage generate automatically is newly-increased, the service code of editor, deletion and inquiry, if need other business function, can in " customization button ", add a type of button, then the supporting with it service code of generation here;
The code of C, generation is published under the designated directory and (is configured with configuration file).
Two, visual uniform maintenance java project implementation step:
The first step: a newly-built classsource catalogue under the tomcat catalogue is put into the foundation code framework (breaking into compressed package: like forms such as zip, war or tar bags) after the compiling under this catalogue.
Second step: give project information right button configuration " deployment information management " button, after the click, need the following information of management:
A, IP address: the IP address of disposing this project;
B, port numbers;
The catalogue of C, deployment.
The 3rd step: give the configuration of project information right button a Publish button; After clicking this button; According to the information in the 3rd step; Through the ftp server foundation code framework under the classsource catalogue is published under the server directory under the specified path, after issue is accomplished, decompress(ion) and this button hidden (the foundation code framework only need be issued once) automatically.
The 4th step: in above-mentioned one the 7th step, will issue button and change " compiling is also disposed " button into, and also will do following two things more in addition in the tenth step:
A, compiling: write an ant script, carry out ant script (also available other technology, the purpose that can reach compiling are just) with the java program then;
B, deletion source file: deletion .java file;
C, deployment: the .class file that will compile the back generation is published under the designated directory through file server;
The 5th step: in above-mentioned one, in the process of all automatic generating codes, all will do compiling, the deletion source file in the 5th step more and dispose three things.
The 6th step: give the configuration of project information right button " service of a restarting " button, after the click, according to the deployment information of project, the backstage invoking server restart order.
Combine accompanying drawing to describe embodiment of the present invention above; But not limited by the foregoing description when realizing; Those skilled in the art can make various variations or modification within the scope of the appended claims, and these equivalent form of values fall within the application's appended claims institute restricted portion equally.

Claims (8)

1. visual programming method that automatically generates with uniform maintenance java project; It is characterized in that described method comprises: at first, create visual java project information tabulation; Then; Menu below the tabulation of management java project information at last, is unified compiling, issue and deployment with the java item code that generates automatically behind the visualized operation.
2. the visual programming method of a kind of automatic generation according to claim 1 and uniform maintenance java project; It is characterized in that; The method of described establishment java project information tabulation comprises: (1) generates management automatically to java project essential information, and (2) judge whether a newly-built java project, and (3) generate java item base code skeleton or editor java project information; (4) public database table under the management java project, (5) generate entity class.
3. the visual programming method of a kind of automatic generation according to claim 1 and uniform maintenance java project; It is characterized in that; The method of menu comprises below the tabulation of described management java project information: (1) generates management automatically to the menu essential information, and (2) generate the menu code of the concurrent simple correlation of distributing food among the guests.
4. the visual programming method of a kind of automatic generation according to claim 1 and uniform maintenance java project; It is characterized in that; The method that described java item code is unified to compile, issue and dispose comprises: the uniform maintenance management is carried out to the essential information of java project in (1), and uniform maintenance management, (3) verification object address legitimacy are carried out to the menu essential information in (2); (4) the java project is compiled and disposes, server is restarted in (5).
5. the visual programming method of a kind of automatic generation according to claim 2 and uniform maintenance java project; It is characterized in that; Described java project essential information generates management automatically, comprises the management to project name, resource name, resource path, code administration address and database relevant information; Described generation java item base code skeleton or editor java project information are to be published under the path of appointment generating java item base code skeleton, and according to the newly-built file directory of resource name; Public database table under the described management java project comprises the management of field being showed title, field data library name, field type and field table name; Described generation entity class comprises the path that generates entity class.
6. the visual programming method of a kind of automatic generation according to claim 3 and uniform maintenance java project; It is characterized in that; Described the menu essential information is generated management automatically, comprise management pad name, menu resource, original list type and paging toolbar.
7. the visual programming method of a kind of automatic generation according to claim 4 and uniform maintenance java project; It is characterized in that; Described essential information to the java project is carried out the uniform maintenance management, comprises the management to project name, resource name, resource path, code administration address, database relevant information, deployment destination address, FTP user's name and ftp password; Described the menu essential information is carried out uniform maintenance management, comprise management pad name, menu resource, original list type and paging toolbar; The described server that restarts is for accomplishing in program inside.
8. the visual programming method of a kind of automatic generation according to claim 1 and uniform maintenance java project; It is characterized in that, in server, create two catalogues, java project foundation framework is put in one of them catalogue; The code that generates all is put in another catalogue; And with the format management java project information of directory tree, leaf node is the java project information, and non-leaf node is a directory information.
CN201210166483.3A 2012-05-22 2012-05-22 A kind of automatic generation and the unified visual programming method safeguarding java project Expired - Fee Related CN102779037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210166483.3A CN102779037B (en) 2012-05-22 2012-05-22 A kind of automatic generation and the unified visual programming method safeguarding java project

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210166483.3A CN102779037B (en) 2012-05-22 2012-05-22 A kind of automatic generation and the unified visual programming method safeguarding java project

Publications (2)

Publication Number Publication Date
CN102779037A true CN102779037A (en) 2012-11-14
CN102779037B CN102779037B (en) 2015-11-18

Family

ID=47123958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210166483.3A Expired - Fee Related CN102779037B (en) 2012-05-22 2012-05-22 A kind of automatic generation and the unified visual programming method safeguarding java project

Country Status (1)

Country Link
CN (1) CN102779037B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106082A (en) * 2013-03-06 2013-05-15 西安工业大学 Graphical flexible coding system driven by extensible rule knowledge
CN104317576A (en) * 2014-07-04 2015-01-28 北京思特奇信息技术股份有限公司 Code automatic generation method and system based on eclipse
CN104932889A (en) * 2015-06-15 2015-09-23 北京奇虎科技有限公司 Page visual generation method and device
CN106293664A (en) * 2015-05-27 2017-01-04 交通银行股份有限公司 Code generating method and device
CN107357942A (en) * 2017-09-04 2017-11-17 山东达创网络科技股份有限公司 A kind of source code auxiliary Core Generator and its generation method
CN107992298A (en) * 2017-10-19 2018-05-04 麦迪特科技无锡有限公司 Medical research projects automatic creation system
CN109582302A (en) * 2018-12-05 2019-04-05 江苏风云科技服务有限公司 Establishment of item system and automation projects creation method
CN109710137A (en) * 2018-12-25 2019-05-03 苏州思必驰信息科技有限公司 Technical ability priority configuration method and system for voice dialogue platform
CN111399811A (en) * 2020-03-18 2020-07-10 百度在线网络技术(北京)有限公司 Method, device and equipment for developing visual page and storage medium
CN111782197A (en) * 2020-08-03 2020-10-16 网易(杭州)网络有限公司 Resource publishing method and device
CN113342312A (en) * 2020-03-02 2021-09-03 中国科学院沈阳自动化研究所 Automatic construction method for quickly building software system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070028208A1 (en) * 2005-06-07 2007-02-01 Alec Maki Runtime generative programming method and system
CN101477467A (en) * 2008-12-08 2009-07-08 山东浪潮齐鲁软件产业股份有限公司 Project code releasing method
CN101727324A (en) * 2009-12-17 2010-06-09 中国电力科学研究院 Code generation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070028208A1 (en) * 2005-06-07 2007-02-01 Alec Maki Runtime generative programming method and system
CN101477467A (en) * 2008-12-08 2009-07-08 山东浪潮齐鲁软件产业股份有限公司 Project code releasing method
CN101727324A (en) * 2009-12-17 2010-06-09 中国电力科学研究院 Code generation method and device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106082B (en) * 2013-03-06 2016-01-20 西安工业大学 The graphic flexible robot arms system that a kind of easily extensible rule knowledge drives
CN103106082A (en) * 2013-03-06 2013-05-15 西安工业大学 Graphical flexible coding system driven by extensible rule knowledge
CN104317576A (en) * 2014-07-04 2015-01-28 北京思特奇信息技术股份有限公司 Code automatic generation method and system based on eclipse
CN106293664A (en) * 2015-05-27 2017-01-04 交通银行股份有限公司 Code generating method and device
CN104932889B (en) * 2015-06-15 2018-10-09 北京奇虎科技有限公司 Page visualized generation method and device
CN104932889A (en) * 2015-06-15 2015-09-23 北京奇虎科技有限公司 Page visual generation method and device
CN107357942A (en) * 2017-09-04 2017-11-17 山东达创网络科技股份有限公司 A kind of source code auxiliary Core Generator and its generation method
CN107992298A (en) * 2017-10-19 2018-05-04 麦迪特科技无锡有限公司 Medical research projects automatic creation system
CN109582302A (en) * 2018-12-05 2019-04-05 江苏风云科技服务有限公司 Establishment of item system and automation projects creation method
CN109710137A (en) * 2018-12-25 2019-05-03 苏州思必驰信息科技有限公司 Technical ability priority configuration method and system for voice dialogue platform
CN109710137B (en) * 2018-12-25 2020-09-01 苏州思必驰信息科技有限公司 Skill priority configuration method and system for voice conversation platform
CN113342312A (en) * 2020-03-02 2021-09-03 中国科学院沈阳自动化研究所 Automatic construction method for quickly building software system
CN111399811A (en) * 2020-03-18 2020-07-10 百度在线网络技术(北京)有限公司 Method, device and equipment for developing visual page and storage medium
CN111782197A (en) * 2020-08-03 2020-10-16 网易(杭州)网络有限公司 Resource publishing method and device
CN111782197B (en) * 2020-08-03 2023-12-29 网易(杭州)网络有限公司 Resource release method and device

Also Published As

Publication number Publication date
CN102779037B (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN102779037B (en) A kind of automatic generation and the unified visual programming method safeguarding java project
CN100498764C (en) Synchronous data updating method
CN105447122B (en) A kind of implementation method that archives economy can be independently created based on multilist association
CN106528129B (en) A kind of Web application interface generation system and method
CN103135976B (en) code automatic generation method and device
CN1755683B (en) Contextual action publishing
CN114035773B (en) Configuration-based low-code form development method, system and device
US20020049961A1 (en) Rule-based personalization framework
US20070094306A1 (en) Method and model for enterprise system development and execution
CN112328212A (en) Rapid development platform based on separation of front end and rear end of engine mode and use method thereof
CN107291448A (en) A kind of Software Develop Project Management system
CN102693127B (en) Data-driven schema for describing and executing management tasks in a graphical user interface
CN103186376B (en) A kind of method, apparatus and equipment for being used to establish or update software development environment
CN116225429A (en) Pulling type component frame-based ipage webpage type low-code development platform
CN110807015A (en) Big data asset value delivery management method and system
US11698944B2 (en) System and method for creation and handling of configurable applications for website building systems
CN103744647A (en) Java workflow development system and method based on workflow GPD
CN106708941B (en) The online synergic editing method of power grid multitask
CN110110072A (en) A kind of method, system, terminal and storage medium generating interactive electronic handbook
CN106802928B (en) Power grid historical data management method and system
US20070022110A1 (en) Method for processing information, apparatus therefor and program therefor
Schumm et al. Web service composition reuse through shared process fragment libraries
Chen et al. A novel automated construction scheme for efficiently developing cloud manufacturing services
US20130283233A1 (en) Multi-engine executable data-flow editor and translator
CN114386920A (en) Information operation system and method based on data sharing

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 310000 room 821, building 1, Xinjun building, 330 Internet of things street, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Sky-mobi Technology Co., Ltd.

Address before: 10, 310000, The Union Buildings, 2 Bauhinia Road, Zhejiang, Hangzhou

Patentee before: Hangzhou Sky-mobi Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151118

Termination date: 20210522