CN108446398A - A kind of generation method and device of database - Google Patents
A kind of generation method and device of database Download PDFInfo
- Publication number
- CN108446398A CN108446398A CN201810259197.9A CN201810259197A CN108446398A CN 108446398 A CN108446398 A CN 108446398A CN 201810259197 A CN201810259197 A CN 201810259197A CN 108446398 A CN108446398 A CN 108446398A
- Authority
- CN
- China
- Prior art keywords
- class
- projects
- attribute
- user
- code template
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Abstract
The embodiment of the present application discloses a kind of generation method and device of database, and this method includes:Response user executes the triggering command for being directed to exploration project engineering, and preset optional project engineering Code Template is presented to user, then in response to user to the selection instruction of optional project engineering Code Template, it determines the projects Code Template of user's selection, and obtains the table for the database for indicating to be developed needed for user and/or the configuration information of row;It is then responding to be directed to the generation instruction for generating projects, according to the configuration information of acquisition, and it is based on the selected projects Code Template of user, the attribute of class corresponding with projects and class is generated, in order to generate the program code for the projects developed needed for user.It can be seen that user may not necessarily write out the attribute of the class and class needed for exploration project engineering by way of writing program code, so that the workload of User Exploitation projects is reduced.
Description
Technical field
This application involves database technical fields, and in particular to a kind of generation method and device of database.
Background technology
In order to improve development efficiency of the developer for project, developer is in exploration project, it will usually first build
The code skeleton of projects, then under the code skeleton put up, for each level in software architecture and every
Each component inside a level carries out responsibility distribution and Row control, the service logic design of system is completed, to realize project
Exploitation.
Under normal conditions, when building code skeleton firstly the need of design DB (DateBase, database).And existing skill
In art scheme, developer is typically to write out exploration project according to the table of designed database and the relevant information of row
The attribute of class and class needed for engineering can generate and such and class to the attribute based on the class and class write
The corresponding projects of attribute.In the process, developer generally requires oneself to write the attribute of required class and class,
Cause the workload of developer's exploration project engineering larger.
Invention content
In view of this, the embodiment of the present application provides a kind of generation method and device of database, to reduce opening for database
The workload of developer during hair.
To solve the above problems, technical solution provided by the embodiments of the present application is as follows:
In a first aspect, the embodiment of the present application provides a kind of generation method of database, this method includes:
In response to the triggering command for exploration project engineering, preset optional project engineering Code Template is presented;
In response to the selection instruction for the optional project engineering Code Template, the projects generation of user's selection is determined
Code mask;
Configuration information is obtained, the configuration information table shows the table and/or row of database;
In response to generating the generation instruction of the projects, according to the configuration information, based on user selection
Projects Code Template generates the attribute of corresponding with projects class and class, in order to according to the class and
The attribute of class generates the code of the projects.
In some possible embodiments, this method further includes:
In response to for the class and the attribute of class modification operation, pair class corresponding with the projects and/or
The attribute of class is modified.
In some possible embodiments, the modification operation in response to for the class and the attribute of class, it is right
The attribute of class corresponding with the projects and/or class is modified, including:
In response to the increase operation for the class and the attribute of class, increase corresponding with projects class and/
Or the attribute of class.
In some possible embodiments, the modification operation in response to for the class and the attribute of class, it is right
The attribute of class corresponding with the projects and/or class is modified, including:
In response to the deletion instruction for the class and the attribute of class, delete corresponding with projects class and/
Or the attribute of class.
In some possible embodiments, this method further includes:
After a pair attribute for class corresponding with the projects and class is modified, preserve modified class and
The attribute of class.
In some possible embodiments, the triggering command in response to for exploration project engineering is presented preset
Optional project engineering Code Template include:
In response to the triggering command for exploration project engineering, according in advance to the optional project engineering Code Template
The preset optional project engineering Code Template is presented according to classification in classification results.
In some possible embodiments, this method further includes:
Obtain the historical record of User Exploitation projects;
By the used projects Code Template of User Exploitation in the historical record, it is determined as preset optional project
Engineering Code Template.
In some possible embodiments, this method further includes:
Determine the attribute information of user;
By projects Code Template corresponding with the attribute information of the user, as the preset optional project work
Range code template.
In some possible embodiments, to be in the form of executable jar file be in the attribute of the class and class
It is existing.
Second aspect, the embodiment of the present application also provides a kind of generating means of database, which includes:
Module is presented, in response to the triggering command for exploration project engineering, preset optional project engineering to be presented
Code Template;
Determining module, in response to the selection instruction for the optional project engineering Code Template, determining that user selects
The projects Code Template selected;
Acquisition module, for obtaining configuration information, the configuration information table shows the table and/or row of database;
Generation module, according to the configuration information, is based on institute for being instructed in response to the generation for generating the projects
The projects Code Template of user's selection is stated, the attribute of class corresponding with the projects and class is generated, in order to root
The code of the projects is generated according to the attribute of the class and class.
In some possible embodiments, which further includes:
Modified module, in response to for the class and the attribute of class modification operation, pair with the projects
The attribute of corresponding class and/or class is modified.
In some possible embodiments, the modified module specifically can be used in response to being directed to the class and class
Attribute increase operation, increase the attribute of corresponding with projects class and/or class.
In some possible embodiments, the modified module specifically can be used in response to being directed to the class and class
Attribute deletion instruction, delete the attribute of corresponding with projects class and/or class.
In some possible embodiments, which further includes:
Preserving module preserves after modifying in a pair attribute for class corresponding with the projects and class
The attribute of modified class and class.
In some possible embodiments, module is presented specifically to can be used in response to touching for exploration project engineering
Send instructions, according in advance to the classification results of the optional project engineering Code Template, according to classification present it is described it is preset can
Option engineering Code Template.
In some possible embodiments, which further includes:
Historical record acquisition module, the historical record for obtaining User Exploitation projects;
First template determining module is used for the used projects code mould of User Exploitation in the historical record
Plate is determined as preset optional project engineering Code Template.
In some possible embodiments, which further includes:
Information determination module, the attribute information for determining user;
Second template determining module, for by projects Code Template corresponding with the attribute information of the user, making
For the preset optional project engineering Code Template.
In some possible embodiments, to be in the form of executable jar file be in the attribute of the class and class
It is existing.
It can be seen that the embodiment of the present application has the advantages that:
In the embodiment of the present application, the project work needed for user can be generated by preset projects Code Template
Journey.Specifically, after user executes and is directed to the triggering command of exploration project engineering, the triggering command can be responded, and to
Preset optional project engineering Code Template is presented in family, refers to the selection of optional project engineering Code Template then in response to user
It enables, determines the projects Code Template of user's selection, and obtain and indicate the table of the database of exploitation and/or row needed for user
Configuration information;After user executes the generation instruction for being directed to and generating projects, generation instruction is responded, and according to acquisition
Configuration information is based on the selected projects Code Template of user, generates the attribute of class corresponding with projects and class,
Also it is to obtain user in order to generate the program code for the projects developed needed for user according to the attribute of such and class
Required projects.It can be seen that user is in exploration project engineering, it may not be necessary to by way of writing program code,
The attribute of the class and class needed for exploration project engineering is write out, so that the workload of User Exploitation projects is subtracted
It is few.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for
For those of ordinary skill in the art, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is a kind of schematic diagram of exemplary application scene provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of the generation method of database provided by the embodiments of the present application;
Fig. 3 is a kind of configuration diagram of the generating means of database provided by the embodiments of the present application.
Specific implementation mode
Under normal conditions, developer (user) is when building code skeleton, it is necessary first to design database, for example design
The information of the type of database, the table of database and row is then based on the design to database in advance and is carried out to projects
Exploitation.When specific implementation, developer is normally based on the related letter of the designed type of database, the table of database and row
Breath, writes out the attribute of the class and class needed for exploration project engineering, the attribute based on obtained class and class can generate
Projects corresponding with the attribute of such and class, to the exploitation of finished item engineering.
In practical application, in order to reduce the workload of projects exploitation, developer can transplant history exploration project
When institute used similar projects, and projects based on transplanting repair the attribute of existing class and class
Change, such as changes the constructed fuction of the title of class, class.In this way, the work of developer can be reduced to a certain extent in this way
Amount, however, it will be understood that developer is still the exploration project engineering in code level, it is corresponding specifically by rewriting
When the attribute of program code modification class and class, the workload of developer is still larger.
In order to solve the above-mentioned technical problem, the embodiment of the present application provides a kind of generation method of database so that exploitation
Personnel need not rewrite the attribute of class and class, and needed for being developed using existing projects Code Template
Projects.Specifically, the embodiment of the present application can be applied in exemplary application scene as shown in Figure 1, as user 101
When needing exploration project engineering on the terminal 102, the triggering that user 101 can execute exploration project engineering on the terminal 102 refers to
(for example can be the instruction etc. for the exploitation software for starting projects) be enabled, terminal 102 can be directed to open in response to user 101
The triggering command for sending out projects, preset optional project engineering Code Template is presented to user 101, by user 101 from presentation
Optional project engineering Code Template in selected, then, terminal 102 can in response to user 101 be directed to the optional project
The selection instruction of engineering Code Template determines the projects Code Template that user 101 selects;Then, user 101 can be
Configuration information is inputted in terminal 102, which has indicated the table and/row of the database developed needed for user 101, terminal
102 after getting the configuration information, the generation instruction for generating the projects that can be triggered in response to user 101, root
According to acquired configuration information, and it is based on 101 selected projects Code Template of user, generation is opened with needed for user 101
The corresponding class of projects of hair and the attribute of class, in order to generate exploitation needed for user 101 according to the attribute of such and class
Projects Code Template, to realize exploitation to projects.As it can be seen that during exploration project engineering, use
Family 101 does not need to write out on the terminal 102 the attribute of class corresponding with projects and class, but by 102 base of terminal
Projects Code Template and corresponding configuration information determined by user 101 automatically generate to obtain needed for user 101
The attribute of class and class, to greatly reduce the workload of developer.
It should be noted that in above-mentioned example application scenarios, method is applied to terminal 102 only to facilitate explanation
The specific implementation process of this method is not used to limit the embodiment of the embodiment of the present application.In addition to can be applied to terminal 102
Outside, this method can also be applied to server, i.e., user can finished item engineering on the server exploitation.
Technical scheme is introduced in order to more detailed, below in conjunction with the accompanying drawings, by specific embodiment come specifically
In bright embodiment of the present invention, the various non-limiting embodiments of the method and apparatus of database are generated.
Referring to Fig. 2, Fig. 2 shows a kind of flow diagrams of the generation method of database in the embodiment of the present application.At this
In embodiment, this method can specifically include:
S201:In response to the triggering command for exploration project engineering, preset optional project engineering Code Template is presented.
In a kind of illustrative specific implementation, user can pass through operating terminal so that terminal generates exploitation item
The triggering command of mesh engineering.Then, terminal responds the triggering command, and preset optional project engineering code mould is presented to user
Plate therefrom selects the projects Code Template needed for oneself in order to user.
Wherein, optional project engineering Code Template is template pre-setting, being selected for user.It is possible at some
Embodiment in, the program code of developer's used projects when developing disparity items, can be used as this
Optional project engineering Code Template in embodiment.Under normal conditions, between different optional project engineering Code Templates
It may have differences, for example, the function achieved by the corresponding database of some projects engineering includes the increase of data, deletes
It removes, change and searches, and the function achieved by the corresponding database of another part projects can also include data
It hides.
In some possible embodiments, each optional project engineering Code Template may include by realizing different work(
The Code Template of energy, for example, optional project engineering template may include the DB operation templates for being operated to database,
It may include the templates such as the page processing template for being handled the page, can also include various types of file template etc..
S202:In response to the selection instruction for optional project engineering Code Template, the projects of user's selection are determined
Code Template.
In a kind of illustrative specific implementation, after optional projects Code Template is presented to user, use
Family can execute the selection operation for being directed to one of optional project engineering Code Template in terminal, and the selection operation can be with
That user (such as clicks, double-clicks, long-press operation) to the clicking operation of projects Code Template in terminal, can also be by
Projects Code Template drags to the drag operation etc. of designated position;Then, terminal can be generated and is directed in response to user
It in the selection instruction of the optional project engineering Code Template, and is instructed according to the selection, from the optional project engineering code of presentation
The projects Code Template of user's selection is determined in template.
In practical application, projects Code Template has been selected in order to avoid causing user to falsely drop due to user misoperation,
The selected projects Code Template of user determined by terminal can be changed.It is understood that terminal to
When multiple preset optional project engineering Code Templates are presented in family, if user, due to operation error, mistake clicks user
Unwanted projects Code Template, the then database developed based on the projects Code Template are generally not
User is required.Therefore, in order to improve the usage experience of user, the projects Code Template that can set user's selection can
To be modified depending on the user's operation.For example, after user has falsely dropped projects Code Template, user can be in terminal
Remove the projects Code Template so that user can reselect the projects Code Template needed for oneself, in this way, eventually
End can determine the actually required projects Code Template of user based on the selection operation of user again.In a kind of example
In, the selection operation of optional project engineering Code Template can be directed to and the selection instruction that generates based on user's last time,
The projects Code Template selected for user determined by terminal.
S203:Configuration information is obtained, the configuration information table shows the table and/or row of database.
Under normal conditions, user is in exploration project engineering, it usually needs is designed to database, for example, can be
It is pre-designed out the type of database, the structure of table, number of row etc..Therefore, terminal also needs to determine the number of user's design
According to the table in library and/or the relevant information of row.
In a kind of illustrative specific implementation mode, terminal can show the prompt letter of input configuration information to user
Breath will indicate that the table of the database to be developed and/or the configuration information of row are input to terminal, so that terminal is obtained by user
To the configuration information.
It should be noted that for step S202 and step S203 when being executed between on sequencing, the present embodiment is simultaneously
It does not limit.Specifically, after being the projects Code Template that terminal first determines user's selection, then obtain with confidence
Breath can also be that terminal first obtains configuration information, then determines the selected projects Code Template of user, in some scenes
Under, the step of determining the projects Code Template of user's selection and get configuration information, can simultaneously it be held by terminal
Row.
S204:In response to generating the generation instruction of database, according to the configuration information of acquisition, the project based on user's selection
Engineering Code Template generates the attribute of class corresponding with the projects developed needed for user and class, in order to according to such
And the attribute of class generates the code for the projects developed needed for user.
The specific implementation of property as an example, when user has selected projects Code Template and had input to match
After confidence breath, user can execute the trigger action for generating projects in terminal, and then, terminal is based on the trigger action,
It generates and responds the generation instruction for generating projects, according to accessed configuration information, based on the selected project of user
Engineering Code Template, generates the attribute with the classes of projects and class developed needed for user, and by the class generated and
The attribute of class is exported to user.
Wherein, class refers to the set of the entity with common trait, and the attribute of class refers to the value of each entity in set.
The attribute of class and class has mapped the function of projects.For example, the attribute of the class and class that generate, may correspond to required life
At projects possessed by increase in the database data, delete data, modification data and searching data function etc..
The class of generation and the attribute of class can be the source codes for the function that the projects developed have, possible at some
In embodiment, the attribute of class and class can be presented in the form of executable jar file.In this way, user can be with jar file
The class of form and the attribute of class are added in the new engineering created, are achieved that the exploitation to projects.
In practical application, if user is to the projects to be developed, there are further needs, for example, needing to increase
Function achieved by projects so that the function of projects, which is realized, more to be enriched, alternatively, extra in reduction projects
Function so that projects are more simplified, at this point, user the attribute of obtained class and/or class can also be carried out it is corresponding
Modification.It therefore, in some possible embodiments, can be in response to user to this after generating the attribute of class and class
The modification of the attribute of class and class operates, pair corresponding with the progress of the attribute of the class of the projects of User Exploitation and/or class to repair
Change.Specifically, providing two kinds of illustrative embodiments of the attribute of modification class and/or class in the present embodiment.
In a kind of illustrative embodiments of the attribute of modification class and/or class, user is if it is intended to increase projects
In achieved function, then can execute the operation of the attribute of the corresponding class of increase and/or class in terminal, then terminal can
To be operated for the increase of the attribute of generated class and class in response to user, increase corresponding with projects class and/
Or the attribute of class, for example can be the attribute etc. for increasing new class and/or class on the attribute of original class and class.
And in the illustrative embodiments of the attribute in another modification class and/or class, user is if it is intended to the project of reduction
Extra function in engineering can then execute the operation for the attribute for deleting corresponding class and/or class in terminal, and then terminal is rung
The attribute of class corresponding with the projects and/or class should be deleted in user for the delete operation of the attribute of such and class,.
The attribute of demand based on user, class and/or class to generation is modified so that user is based on modified class
And the projects that the attribute of class generates, it more meets the needs of users, so as to improve the use body of user
It tests.
Further, it is generally the case that user modifies to the class of generation and the attribute of class, is because based on having
Template can not generate to obtain the attribute of modified class and class, therefore, in order to facilitate after user for projects
Exploitation, can preserve the attribute of modified class and class.In this way, the attribute based on modified class and class, can obtain
New projects Code Template, to enrich existing projects Code Template, be user in exploration project engineering
Provide more stencil-chosens.
In some possible embodiments, if it is increase in the class of generation and the attribute of class new class and/or
The attribute of class.When specific implementation, in a kind of example, the attribute of the class and/or class that newly increase can be only preserved, in this way, next
When the identical projects of secondary exploitation, then it can increase the new class preserved on the basis of the class and class generated originally
And/or the attribute of class, obtain the attribute of the class for meeting user demand and class;In another example, it can will newly increase
The attribute of class and/or class increases in the selected projects Code Template of user, forms a new projects code
Template, and the projects Code Template is preserved, in this way, when user's exploration project engineering next time, this is newly increased
Projects Code Template, can be presented to the user as optional projects Code Template.
It should be noted that if the preset optional project engineering Code Template presented to user is more, user needs
The projects Code Template needed for oneself is found from multiple optional project engineering Code Templates, in order to facilitate user for item
The lookup of mesh engineering Code Template can in advance classify to preset optional project engineering Code Template, according to classification
Projects Code Template is presented to user.Specifically, in a kind of illustrative embodiment, can be directed in response to user
In the triggering command of exploration project engineering, according to the classification results of optional project engineering Code Template, being according to classification in advance
Preset optional project engineering Code Template.Since optional project engineering Code Template is presented according to classification, then
User can quickly find out required projects Code Template under particular category, and further improve user uses body
It tests.
In addition, exploration project engineering that may be more than once in view of user, it can be by user in history exploration project engineering
During the used projects Code Template of institute, as the optional project engineering Code Template presented to user, so as to
Required projects Code Template can be quickly found in subsequent development process in user.As an example,
It can specifically include:
Obtain the historical record of User Exploitation projects;
By the used projects Code Template of User Exploitation in historical record, it is determined as preset optional project engineering
Code Template.
It is understood that the used projects Code Template of institute during user's history exploration project engineering,
Larger possibility is user's required projects Code Template used during exploration project engineering.Therefore,
History based on user develops behavior, and the used projects Code Template of user is determined as optional project engineering code mould
Plate can facilitate user to be quickly obtained the projects Code Template of needs in exploration project engineering.
In practical applications, for each user, due to the needs of its practical job specification, the possible user needs to open
The projects of hair belong to same or some certain types of projects.In this case, each exploration project of user
Required optional project engineering Code Template is all same type of when engineering.Based on this, in some embodiments, for side
The projects Code Template for the job specification for meeting user can be presented to the user by just user.Specifically, the present embodiment is also
May include:
Determine the attribute information of user;
By projects Code Template corresponding with the attribute information of user, as preset optional project engineering code mould
Plate.
When specific implementation, when user needs exploration project engineering, user can input the attribute letter of user in terminal
Breath (such as account etc. of the which type of projects of exploitation, user needed for user), terminal determines attribute letter input by user
After breath, by projects Code Template corresponding with the attribute information of user, as preset optional project engineering Code Template,
Wherein, which is user has larger possibility to make during developing specific type projects
The projects Code Template used.
By user during exploration project engineering, the projects Code Template conduct that there is larger possibility to use
Optional project engineering Code Template so that user can very easily find required projects Code Template, into one
Step facilitates exploitation of the user to projects, improves user experience.
In the embodiment of the present application, the project work needed for user can be generated by preset projects Code Template
Journey.Specifically, after user executes and is directed to the triggering command of exploration project engineering, the triggering command can be responded, and to
Preset optional project engineering Code Template is presented in family, refers to the selection of optional project engineering Code Template then in response to user
Enable, determine user selection projects Code Template, and obtain user design database table and/or row match confidence
Breath;After user executes the generation instruction for being directed to and generating projects, generation instruction is responded, and confidence is matched according to acquisition
Breath is based on the selected projects Code Template of user, generates the attribute of class corresponding with projects and class, in order to
The program code of projects needed for user is generated according to the attribute of such and class, is also the item for obtaining developing needed for user
Mesh engineering.It can be seen that user is in exploration project engineering, it may not be necessary to by way of writing program code, write out and open
The attribute for sending out the class and class needed for projects, so that the workload of User Exploitation projects is reduced.
In addition, the embodiment of the present application also provides a kind of generating means of database.The application is shown refering to Fig. 3, Fig. 3
A kind of configuration diagram of the generating means of database, the device may include in embodiment:
Module 301 is presented, in response to the triggering command for exploration project engineering, preset optional project work to be presented
Range code template;
Determining module 302, in response to the selection instruction for the optional project engineering Code Template, determining user
The projects Code Template of selection;
Acquisition module 303, for obtaining configuration information, the configuration information table shows the table and/or row of database;
Generation module 304, for being instructed in response to the generation for generating the projects, according to the configuration information, base
In the projects Code Template of user selection, the attribute of class corresponding with the projects and class is generated, so as to
In the code for generating the projects according to the attribute of the class and class.
In some possible embodiments, which can also include:
Modified module, in response to for the class and the attribute of class modification operation, pair with the projects
The attribute of corresponding class and/or class is modified.
In some possible embodiments, the modified module specifically can be used in response to being directed to the class and class
Attribute increase operation, increase the attribute of corresponding with projects class and/or class.
In some possible embodiments, the modified module specifically can be used in response to being directed to the class and class
Attribute deletion instruction, delete the attribute of corresponding with projects class and/or class.
In some possible embodiments, which further includes:
Preserving module preserves after modifying in a pair attribute for class corresponding with the projects and class
The attribute of modified class and class.
In some possible embodiments, module 301 is presented specifically to can be used in response to being directed to exploration project engineering
Triggering command presented according to classification described preset according in advance to the classification results of the optional project engineering Code Template
Optional project engineering Code Template.
In some possible embodiments, which can also include:
Historical record acquisition module, the historical record for obtaining User Exploitation projects;
First template determining module is used for the used projects code mould of User Exploitation in the historical record
Plate is determined as preset optional project engineering Code Template.
In some possible embodiments, which can also include:
Information determination module, the attribute information for determining user;
Second template determining module, for by projects Code Template corresponding with the attribute information of the user, making
For the preset optional project engineering Code Template.
In some possible embodiments, to be in the form of executable jar file be in the attribute of the class and class
It is existing.
In the embodiment of the present application, the project work needed for user can be generated by preset projects Code Template
Journey.In this way, user is in exploration project engineering, it may not be necessary to by way of writing program code, write out exploration project work
The class of Cheng Suoxu and the attribute of class, so that the workload of User Exploitation projects is reduced.
It should be noted that each embodiment is described by the way of progressive in this specification, each embodiment emphasis is said
Bright is all difference from other examples, and just to refer each other for identical similar portion between each embodiment.For reality
For applying device disclosed in example, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place
Referring to method part illustration.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the application.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.
Claims (10)
1. a kind of generation method of database, which is characterized in that the method includes:
In response to the triggering command for exploration project engineering, preset optional project engineering Code Template is presented;
In response to the selection instruction for the optional project engineering Code Template, the projects code mould of user's selection is determined
Plate;
Configuration information is obtained, the configuration information table shows the table and/or row of database;
In response to generating the generation instruction of the projects, according to the configuration information, the project based on user selection
Engineering Code Template generates the attribute of corresponding with projects class and class, in order to according to the class and class
Attribute generates the code of the projects.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
In response to the modification operation for the class and the attribute of class, pair class corresponding with the projects and/or class
Attribute is modified.
3. according to the method described in claim 2, it is characterized in that, the attribute in response to for the class and class is repaiied
Changing operation, the attribute of pair class corresponding with the projects and/or class is modified, including:
In response to the increase operation for the class and the attribute of class, increase class corresponding with the projects and/or class
Attribute.
4. according to the method described in claim 2, it is characterized in that, the attribute in response to for the class and class is repaiied
Changing operation, the attribute of pair class corresponding with the projects and/or class is modified, including:
In response to the deletion instruction for the class and the attribute of class, class corresponding with the projects and/or class are deleted
Attribute.
5. according to the method described in claim 2 to 4 any one, which is characterized in that the method further includes:
After a pair attribute for class corresponding with the projects and class is modified, modified class and class are preserved
Attribute.
6. according to the method described in claim 1, it is characterized in that, described in response to referring to for the triggering of exploration project engineering
It enables, preset optional project engineering Code Template, which is presented, includes:
In response to the triggering command for exploration project engineering, according to the classification in advance to the optional project engineering Code Template
As a result, the preset optional project engineering Code Template is presented according to classification.
7. according to the method described in claim 1, it is characterized in that, the method further includes:
Obtain the historical record of User Exploitation projects;
By the used projects Code Template of User Exploitation in the historical record, it is determined as preset optional project engineering
Code Template.
8. according to the method described in claim 1, it is characterized in that, the method further includes:
Determine the attribute information of user;
By projects Code Template corresponding with the attribute information of the user, as the preset optional project engineering generation
Code mask.
9. according to the method described in claim 1, it is characterized in that, the attribute of the class and class is with executable JAR texts
The form of part is presented.
10. a kind of generating means of database, which is characterized in that described device includes:
Module is presented, in response to the triggering command for exploration project engineering, preset optional project engineering code to be presented
Template;
Determining module, in response to the selection instruction for the optional project engineering Code Template, determining user's selection
Projects Code Template;
Acquisition module, for obtaining configuration information, the configuration information table shows the table and/or row of database;
Generation module, according to the configuration information, is based on the use for being instructed in response to the generation for generating the projects
The projects Code Template of family selection, generates the attribute of class corresponding with the projects and class, in order to according to institute
The attribute for stating class and class generates the code of the projects.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810259197.9A CN108446398A (en) | 2018-03-27 | 2018-03-27 | A kind of generation method and device of database |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810259197.9A CN108446398A (en) | 2018-03-27 | 2018-03-27 | A kind of generation method and device of database |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108446398A true CN108446398A (en) | 2018-08-24 |
Family
ID=63196976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810259197.9A Pending CN108446398A (en) | 2018-03-27 | 2018-03-27 | A kind of generation method and device of database |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108446398A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783081A (en) * | 2018-12-27 | 2019-05-21 | 百富计算机技术(深圳)有限公司 | A kind of development approach of application program, device and Integrated Development Tool |
CN110209385A (en) * | 2019-05-09 | 2019-09-06 | 无线生活(杭州)信息科技有限公司 | Establishment of item method and device |
CN112799652A (en) * | 2021-02-08 | 2021-05-14 | 北京乐学帮网络技术有限公司 | Client construction method and device, electronic equipment and storage medium |
CN112965708A (en) * | 2021-03-29 | 2021-06-15 | 武汉悦学帮网络技术有限公司 | Code generation method and device |
CN113805864A (en) * | 2021-11-19 | 2021-12-17 | 北京明略昭辉科技有限公司 | Project engineering generation method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103226478A (en) * | 2013-05-22 | 2013-07-31 | 北京金和软件股份有限公司 | Method for automatically generating and using code |
CN105677323A (en) * | 2015-12-31 | 2016-06-15 | 合肥大多数信息科技有限公司 | Method for automatically generating database operation layer codes |
CN105893001A (en) * | 2014-10-28 | 2016-08-24 | 重庆权林鸿科技发展有限责任公司 | Software development apparatus depending on relational database |
CN106775770A (en) * | 2017-01-16 | 2017-05-31 | 兴唐通信科技有限公司 | The lookup method of query statement is built based on category information |
CN106933598A (en) * | 2017-03-27 | 2017-07-07 | 广州市轩辕云翰信息科技有限公司 | Realize the method and system of the automatic management of template file |
-
2018
- 2018-03-27 CN CN201810259197.9A patent/CN108446398A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103226478A (en) * | 2013-05-22 | 2013-07-31 | 北京金和软件股份有限公司 | Method for automatically generating and using code |
CN105893001A (en) * | 2014-10-28 | 2016-08-24 | 重庆权林鸿科技发展有限责任公司 | Software development apparatus depending on relational database |
CN105677323A (en) * | 2015-12-31 | 2016-06-15 | 合肥大多数信息科技有限公司 | Method for automatically generating database operation layer codes |
CN106775770A (en) * | 2017-01-16 | 2017-05-31 | 兴唐通信科技有限公司 | The lookup method of query statement is built based on category information |
CN106933598A (en) * | 2017-03-27 | 2017-07-07 | 广州市轩辕云翰信息科技有限公司 | Realize the method and system of the automatic management of template file |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783081A (en) * | 2018-12-27 | 2019-05-21 | 百富计算机技术(深圳)有限公司 | A kind of development approach of application program, device and Integrated Development Tool |
CN110209385A (en) * | 2019-05-09 | 2019-09-06 | 无线生活(杭州)信息科技有限公司 | Establishment of item method and device |
CN110209385B (en) * | 2019-05-09 | 2023-02-10 | 无线生活(杭州)信息科技有限公司 | Project creation method and device |
CN112799652A (en) * | 2021-02-08 | 2021-05-14 | 北京乐学帮网络技术有限公司 | Client construction method and device, electronic equipment and storage medium |
CN112965708A (en) * | 2021-03-29 | 2021-06-15 | 武汉悦学帮网络技术有限公司 | Code generation method and device |
CN113805864A (en) * | 2021-11-19 | 2021-12-17 | 北京明略昭辉科技有限公司 | Project engineering generation method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108446398A (en) | A kind of generation method and device of database | |
US20220027019A1 (en) | System and method for interface display screen manipulation | |
US10095734B2 (en) | Source code search engine | |
TWI460648B (en) | Ranking visualization types based upon fitness for visualizing a data set | |
CN105511873B (en) | User interface control display method and device | |
US11175909B2 (en) | Software discovery using exclusion | |
US9727209B2 (en) | Hierarchical data structure with shortcut list | |
US20220035847A1 (en) | Information retrieval | |
EP3667493B1 (en) | A method for a software development system | |
CN104937540B (en) | Obtaining identification of application lifecycle management entities associated with similar code | |
JP5005172B2 (en) | Database management system and database management method | |
CN113051011A (en) | RPA and AI combined image information extraction method and device | |
US10042638B2 (en) | Evaluating documentation coverage | |
Paramonov et al. | Tacle: Learning constraints in tabular data | |
CN105867995A (en) | Editing method and device for XML (extensible markup language) file | |
US11487641B1 (en) | Micro services recommendation system for identifying code areas at risk | |
CN109408322A (en) | A kind of automatic business process implementation method of cloud platform | |
US11392649B2 (en) | Binding query scope to directory attributes | |
CN113918198B (en) | Model-code synchronization method | |
CN115329753A (en) | Intelligent data analysis method and system based on natural language processing | |
JP4846736B2 (en) | Parallel processing support device | |
CN114518875A (en) | Graphical programming system and programming method thereof | |
KR20210069215A (en) | The user interface method for optimalizing bigdata analysis | |
Mennicke et al. | Automated verification of feature model configuration processes based on workflow petri nets | |
CN109325239A (en) | Student classroom expression mannage method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180824 |