Specific embodiment
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary
, and it is not intended to limit the scope of the present disclosure.In the following detailed description, to elaborate many specific thin convenient for explaining
Section is to provide the comprehensive understanding to the embodiment of the present disclosure.It may be evident, however, that one or more embodiments are not having these specific thin
It can also be carried out in the case where section.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid
Unnecessarily obscure the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.It uses herein
The terms "include", "comprise" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence of
Or add other one or more features, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood
Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification
Meaning, without that should be explained with idealization or excessively mechanical mode.
It, in general should be according to this using statement as " at least one in A, B and C etc. " is similar to
Field technical staff is generally understood the meaning of the statement to make an explanation (for example, " system at least one in A, B and C "
Should include but is not limited to individually with A, individually with B, individually with C, with A and B, with A and C, have B and C, and/or
System etc. with A, B, C).Using statement as " at least one in A, B or C etc. " is similar to, generally come
Saying be generally understood the meaning of the statement according to those skilled in the art to make an explanation (for example, " having in A, B or C at least
One system " should include but is not limited to individually with A, individually with B, individually with C, with A and B, have A and C, have
B and C, and/or the system with A, B, C etc.).
Embodiment of the disclosure provides a kind of project generation method and system, and this method includes obtaining configuration file,
In, configuration file includes the configuration information for generating destination item;According to the configuration information in configuration file from target data
Metadata is obtained in library;Determine the template file of destination item;And metadata is input in template file, generate target item
Mesh.
Fig. 1 diagrammatically illustrate according to the embodiment of the present disclosure can be with the exemplary system of application item generation method and system
System framework.It should be noted that being only the example that can apply the system architecture of the embodiment of the present disclosure shown in Fig. 1, to help this
Field technical staff understands the technology contents of the disclosure, but be not meant to the embodiment of the present disclosure may not be usable for other equipment,
System, environment or scene.
As shown in Figure 1, in accordance with an embodiment of the present disclosure, can obtain from the storage region of storage configuration file and match accordingly
File is set, metadata is then obtained from database according to the configuration file of acquisition, for example, according to included in configuration file
Database source, such as database-driven, address, port, database name, user name, the attributes such as password read first number by data source
According to and process, while saving table, field, field enumerate between incidence relation.It, can also be from template library after reading metadata
It is middle to obtain the template file for determining destination item, and metadata is input in template file, generate destination item.For example, logical
The template root that recursive traversal has been safeguarded is crossed, by different template file types, realizes corresponding processing logic, really
The template file for the project that sets the goal generates object code and is output to specified path, finished item code building.
In accordance with an embodiment of the present disclosure, by determining the template file of destination item, metadata is input to template file
In, it is automatically generated the technological means of destination item, is at least partially overcomed using the relevant technologies engineer's database mould
The mode of type and grassroot project structure, it may appear that database model is lack of standardization, and the project of building repeats cumbersome technical problem.Example
Such as, it can solve in the WEB system development built using Maven and SSM frame, developer is designed into project generation from database
The problem of lack of standard occurred in code compiling procedure, inconsistency and repetition cumbersome element task.Wherein, Maven is one
Project build and management tool.SSM frame is the abbreviation of Spring+Spring MVC+MyBatis, is current relatively mainstream
Java EE enterprise-level frame, suitable for building the enterprise application system of various large sizes.
Fig. 2 diagrammatically illustrates the flow chart of the project generation method according to the embodiment of the present disclosure.
As shown in Fig. 2, this method includes operation S210~S240.
In operation S210, configuration file is obtained, wherein configuration file includes the configuration information for generating destination item.
In operation S220, metadata is obtained from target database according to the configuration information in configuration file.
In operation S230, the template file of destination item is determined.
In operation S240, metadata is input in template file, generates destination item.
In accordance with an embodiment of the present disclosure, configuration file can be read by code generator, according to matching in configuration file
Confidence breath obtains metadata from target database.In accordance with an embodiment of the present disclosure, metadata can also be processed, then
The template root that recursive traversal has been safeguarded realizes corresponding processing logic by different template file types, will be first
Data are input in template file, are generated object code and are output to specified path, finished item item code generates.
In accordance with an embodiment of the present disclosure, the configuration information for generating destination item may include a variety of, for example, can wrap
Include but be not limited to following information: 1. database sources: including database-driven, address, port, database name, user name, password is total
Five attributes are read by data source and metadata and are processed, while saving table, field, field enumerate between incidence relation, processing
Attribute afterwards is as follows: table: table name, table remarks, table object name, table class name;Field: database column name, Java, Java lead-ins
Mother's capitalization, remarks, JDBC type, Java type simplify remarks, and if it is to enumerate, maximum length, if for sky;Field is enumerated:
The Chinese phonetic alphabet of enumeration description capitalizes underscore, enumerates digital value, enumeration description.2. including and excluding table name: including packet
Containing table name, and two attributes of table name are excluded, with the table name that English comma separates, is configured according to the two and determine to generate and do not generate
Table, if be comprising table name it is empty if comprising all, if exclude be it is empty if be not excluded for, exclude priority be greater than comprising.3.
Mesh relevant configuration: tri- attributes of groupId, artifactId, projectName, groupId indicate developer ID,
ArtifactId indicates entry name, for constructing maven project, determines outgoing route and generates packet name, projectName is indicated
Entry name is shown for management backstage.4.sysModules: lowercase underscore, no more than 40 characters, English are funny
Number separate, defaults service, if configuring the attribute, a specified several interface service subsystems can be generated, be usually used in interface clothes
The refinement of business is split, and such as in order to reduce the influence that service interface pair is interacted with Fund Company, can be split fund front end, is configured to
Service, fund-front.5.servlet3: servlet3, practical container of being subject to can then be introduced if it is true.
6.outputFolder: export folders, support D: gen and the/form of gen.7. generation strategy: if target text when generation
Part is not present, and generates without exception.For file destination there are the case where, can control generation strategy there are three parameter.It forces to generate
File destination, forceGenerateFiles, English comma separates, is usually used in coverage goal and generates file;Whether give birth to again
At isReGenerate, ture, which then can only be covered, generates file involved in literary name section modification;IsOverWrite, true or
False comes into force when isReGenerate is not true, indicates whether coverage goal file, and default does not cover.8.author:
Project author, remarks to code the inside generated.In accordance with an embodiment of the present disclosure, using the side of the template file of destination item
Formula generates new projects, and either configuration file or code spice, frame structure is all uniformly to safeguard, and stablize available, life
Operation can be directly disposed at completion, avoids a series of cumbersome work for newly building project every time.Template can basis simultaneously
Actual conditions adjust, universal solution and the tool-class persistence maintenance in template in former project, the improvement product of such project
It is tired directly to be used in new projects.It is cumbersome inefficient to can solve manual creation project, style is different, is easy error, original solution
Certainly scheme and tool-class etc. obtain the problem of moving new projects manually.
By embodiment of the disclosure, because using the template file by determining destination item, metadata is inputted
Into template file, it is automatically generated the technological means of destination item, so at least partially overcoming using the relevant technologies people
The mode of work design database model and grassroot project structure, it may appear that database model is lack of standardization, and project of building repeats cumbersome
The technical issues of, and then reached and automatically generated destination item, improve the technical effect of project formation efficiency.
Below with reference to Fig. 3~Fig. 6, method shown in Fig. 2 is described further in conjunction with specific embodiments.
Fig. 3 is diagrammatically illustrated according to the embodiment of the present disclosure according to configuration information in configuration file from target database
The middle flow chart for obtaining metadata.
As shown in figure 3, obtaining metadata from target database according to the configuration information in configuration file includes operation
S221~S223.
Judge that the structure of target database is set during obtaining metadata from target database in operation S221
Whether meter meets preset rules.
Prompt is shown in the case where judging that the structure design of target database is unsatisfactory for preset rules in operation S222
Information.
Metadata is obtained in the case where the structure for judging target database designs and meets preset rules in operation S223.
In accordance with an embodiment of the present disclosure, during obtaining metadata from target database, if code generator
It was found that database design is unsatisfactory for preset rules, for example, database, table, field name are not the forms of lowercase underscore, do not have
There are remarks, default fields etc., then can prompt and exit, it is ensured that developer has found and modifies in time.
In accordance with an embodiment of the present disclosure, in the database after table, field are increased newly and modified, by regenerating, then can
Guarantee that database structure is consistent with code, avoids the problem that manual maintenance is omitted and malfunctioned.
By embodiment of the disclosure, the design of discovery database does not conform to specification (such as database, table, word when reading metadata
Section name is not the form of lowercase underscore, without remarks etc.), then it can prompt user, it can be ensured that developer sends out in time
Now and modify;After table, field are increased newly and modified, by regenerating, then it can guarantee that database structure is consistent with code, makes total
According to library model, it is promptly and accurately synchronous with code the modifications such as to enumerate, and avoids the problem that manual maintenance is omitted and error.
Fig. 4 diagrammatically illustrates the flow chart of the project generation method according to another embodiment of the disclosure.
As shown in figure 4, this method includes operation S250~S270.
It in operation S250, is input in template file by metadata, before generating destination item, determines template file
Type.
In accordance with an embodiment of the present disclosure, metadata is input in template file, is generated newly using the mode of project templet
Project, either configuration file or code spice, frame structure are all uniformly to safeguard, and stablize and can be used, and generate completion and are
Operation can be directly disposed, a series of cumbersome work for newly building project every time are avoided.
In operation S260, the input policing of metadata is determined according to the type of template file.
In operation S270, metadata is input in template file according to determining input policing.
In accordance with an embodiment of the present disclosure, during metadata being input in template file, due to regenerating project
Original modification (usually business SQL Mapper) may be covered, custom code block, target modification can be added in a template
Content can be put into customized part, read that target is customized to be partially filled with template before covering, being then combined with can guarantee
It wrong will not cover, realize that newly-generated file destination can retain the function of the modification in old file destination using custom code block
Energy.
In accordance with an embodiment of the present disclosure, input policing can be following several strategies: 1. all tables merge: merging the template
The data of all tables are needed, management backstage left-hand column and homepage are used;2. single table merges: being needed when referring to the template generation file destination
All table information are traversed, corresponding file destination is generated, is used for entity class, database access layer, transaction management layer, service
Layer, controller layer and background page etc.;3. literary name section merges: it enumerates and needs to enumerate class by the dimension generation target of table, field, one
A enumeration description is equivalent to one enumerated in class and enumerates;4. single file merges: the configuration file for some SSM and one
As java class, the configuration of filling database and packet name etc.;5. single file replicates: can be the processing mode of default, be usually used in providing
Vm suffix need to only be removed and copy to destination path by source file.
It in accordance with an embodiment of the present disclosure, may include one or more file destinations in destination item, according to template file
Type can also determine the generation strategy of file destination.
Such as jquery.js.vm, which, which determines, does not need input metadata, copies to destination path generation
Jquery.js;And this template type of Dao.xml.vm determines the metadata for needing to input every table, and export
Table0Dao.xml, TablelDao.xmlTable2Dao.xml file destination.
In accordance with an embodiment of the present disclosure, the framework of template file includes station subsystem, operation before service terminals system, user
Station subsystem and common package subsystem afterwards.
Fig. 5 diagrammatically illustrates the schematic diagram of the framework of the template file according to the embodiment of the present disclosure.
As shown in figure 5, the system of the destination item generated usually may include service terminals system, user foreground subsystem
Station subsystem and common package subsystem after system, operation.Station subsystem is used for before user and the front end page of user is interactive, is disobeyed
Rely database;Service terminals system provides business interface for foreground, carries user service;After station subsystem is for runing after operation
Platform management;Common package subsystem is supplied to before service terminals system, user estrade after station subsystem, operation in a manner of relying on
System avoids repeating to safeguard.
In accordance with an embodiment of the present disclosure, service terminals system may include entity class layer, database access layer, external interface
Layer, transaction layer, service layer and front-end control layer.Station subsystem may include entity class layer, service layer and front-end control before user
Layer.Station subsystem may include entity class layer, database access layer, external interface layer, transaction layer, service layer and front end after operation
Control layer.Common package subsystem may include entity class layer, infrastructure component layer and general utility tool layer.
In accordance with an embodiment of the present disclosure, before user station subsystem can be also used for configuration file it is single merging and resource text
The duplication of part;The service interface of service terminals system includes service layer other than configuration file, and transaction layer is merged by table, by
In succession base class and common package is relied on, it is possible to support the operation of single table;Station subsystem is in interface service after operation
On the basis of increase merging by table for control layer and the page (list being edited and checked), be supplied to every, backstage table basis
Page function;Common package contains entity class, enumerates class, the merging of data access layer and SQL Mapper configuration, due to preceding
End, service, has been dependent on common package, to realize shared from the background.Wherein, SQL Mapper refers to and answers in Mybatis
With the XML mapped file of access database, is generated using the mode that SQL splices and execute SQL.
In accordance with an embodiment of the present disclosure, entity class, enumerating can be automatically generated by metadata, only be needed again after modification
Code is generated, and enumerations information, which obtains, to be obtained by parsing the remarks of specific format, as having one in order table order
Field state, remarks are as follows: order status, 1 do not pay, 2, have paid, then can be parsed into an order status enumerates class,
EmOrderState, and therein enumerate is indicated with Chinese phonetic alphabet underscore, such as WEI_ZHIFU (1, " not paying "), YI_
ZHIFU (2, " payment "), that is, if enumerating class modification, only need to modify database remarks, then regenerate i.e.
It can.In accordance with an embodiment of the present disclosure, it can be enumerated, SQL Mapper by reading metadata synchronizing project entity class;Use mould
Plate project generates new projects;Entity class, enumerate, database access layer, SQL Mapper, transaction layer, service layer are closed by table
And it generates.
The default fields of a usual table include id (major key), remark (remarks), created_time (creation time),
Modified_time (modification time), yn (effectively whether, logic deletes mark), will write from memory in automatically generating SQL Mapper
The fixed value of section of reading write-in, destruction of the maskable application to data.When being such as written, creation time, when modification time is current
Between, if it effectively writes dead effective;Modification time is set as current time when update, and whether be added effectively prevents for effective condition
It is accessed and data is deleted by logic, delete (logic is deleted, practical for update) condition and also default addition effectively, more newer field is write extremely
Whether invalid field be it is invalid, shield system risk in SQL layer face.
The generation of SQL Mapper, system default provide write-in object;Object and write-back library id is written to object;
Batch is written;It is updated by id major key;It according to condition updates and (supports anticipated impact line number);It is inquired by id;According to condition inquire list;It presses
Condition query records number;According to condition choose one (can be passed to and whether receive null);(can be passed to is the unique record of according to condition selection
It is no to receive null);Paging query;It is deleted by id major key logic;According to condition logic deletes the methods of (support anticipated impact line number),
It contains single table handling on all bases, while passing through the extension Map of object, support IN (major key and enumerate), LIKE (character
String), the inquiry (date type is more than or less than the scheduled date) of time can almost complete all business processings and not need
Developer writes SQL.
By embodiment of the disclosure, template file is divided into multiple subsystems, so that template can be adjusted according to the actual situation
Whole various pieces.
Fig. 6 diagrammatically illustrates the flow chart of the generation destination item according to the embodiment of the present disclosure.
As shown in fig. 6, metadata is input in template file, generating destination item includes operation S241~S242.
In operation S241, the back-stage management page of destination item is generated based on template file.
In operation S242, after the back-stage management page for generating destination item, during starting destination item, in conjunction with
The macrodefinition of template engine and the class of enumerating for preloading metadata, show the back-stage management page.
In accordance with an embodiment of the present disclosure, based on template file generate in addition to generate destination item the back-stage management page it
Outside, station subsystem before service subsystem and user can also be generated.Template engine can use Velocity template engine, can
The control with logic is shown with the output for doing variable by the placeholder for parsing template and markup language, to realize page wash with watercolours
Dye.
In accordance with an embodiment of the present disclosure, back-stage management page can be divided into list, page, details page, can be with by analysis
Show that these three pages can be obtained by the interface of consistency, in conjunction with template, the corresponding interface is written when merging in different tables
By judging the type of field when taking data to show, while generating, if be to enumerate, if the time, if character string, number
Word etc. introduces different UI components, removes the duplication of labour of the page from.In accordance with an embodiment of the present disclosure, in conjunction with the macro fixed of template engine
Justice is with preloading metadata also in relation with table, the metadata of field while enumerating class.Such as a field is time type,
Then use time component;One field character string type, then shown using input frame.
By embodiment of the disclosure, class is enumerated by preloading, it, can be in conjunction with the macrodefinition of template engine Velocity
The direct value in interface and display drop-down translate such as order status field and displaying comboboxs is enumerated without binding and iteration.
Fig. 7 diagrammatically illustrates the block diagram that system is generated according to the project of the embodiment of the present disclosure.
As shown in fig. 7, it includes that the first acquisition acquisition module 420, first of module 410, second determines that project, which generates system 400,
Module 430 and generation module 440.
First acquisition module 410 is for obtaining configuration file, wherein configuration file includes for generating matching for destination item
Confidence breath.
Second acquisition module 420 is used to obtain metadata from target database according to the configuration information in configuration file.
First determining module 430 is used to determine the template file of destination item.
Generation module 440 generates destination item for metadata to be input in template file.
By embodiment of the disclosure, because using the template file by determining destination item, metadata is inputted
Into template file, it is automatically generated the technological means of destination item, so at least partially overcoming using the relevant technologies people
The mode of work design database model and grassroot project structure, it may appear that database model is lack of standardization, and project of building repeats cumbersome
The technical issues of, and then reached and automatically generated destination item, improve the technical effect of project formation efficiency.
Fig. 8 diagrammatically illustrates the block diagram for obtaining module according to the second of the embodiment of the present disclosure.
As shown in figure 8, the second acquisition module 420 includes judging unit 421, the first display unit 422 and acquiring unit
423。
Judging unit 421 is used to judge the knot of target database during obtaining metadata from target database
Whether structure design meets preset rules.
First display unit 422 is used in the case where judging that the structure design of target database is unsatisfactory for preset rules,
Show prompt information.
Acquiring unit 423 is used to obtain member in the case where judging that the structure design of target database meets preset rules
Data.
By embodiment of the disclosure, the design of discovery database does not conform to specification (such as database, table, word when reading metadata
Section name is not the form of lowercase underscore, without remarks etc.), then it can prompt user, it can be ensured that developer sends out in time
Now and modify;After table, field are increased newly and modified, by regenerating, then it can guarantee that database structure is consistent with code, avoids hand
The problem of dynamic maintenance is omitted and is malfunctioned.
Fig. 9 diagrammatically illustrates the block diagram that system is generated according to the project of another embodiment of the disclosure.
As shown in figure 9, in accordance with an embodiment of the present disclosure, it further includes the second determining module 450, that project, which generates system 400,
Three determining modules 460 and input module 470.
Second determining module 450 before generating destination item, determines mould for being input in template file by metadata
The type of plate file.
Third determining module 460 is used to determine the input policing of metadata according to the type of template file.
Metadata for being input in template file by input module 470 according to determining input policing.
By embodiment of the disclosure, template can be modified according to actual needs, and being added needs perfect code, tool-class
Deng, metadata is input in template file according to determining input policing, has reached and has automatically generated destination item, raising project
The technical effect of formation efficiency repeats the problem of safeguarding so as to avoid new projects' code.
In accordance with an embodiment of the present disclosure, the framework of template file includes station subsystem, operation before service terminals system, user
Station subsystem and common package subsystem afterwards.
By embodiment of the disclosure, template file is divided into multiple subsystems, so that template can be adjusted according to the actual situation
Whole various pieces.
Figure 10 diagrammatically illustrates the block diagram of the generation module according to the embodiment of the present disclosure.
As shown in Figure 10, generation module 440 includes generation unit 441 and the second display unit 442.
Generation unit 441 is used to generate the back-stage management page of destination item based on template file.
Second display unit 442 is used for after the back-stage management page for generating destination item, starts the mistake of destination item
Cheng Zhong shows the back-stage management page in conjunction with macrodefinition and the class of enumerating for preloading metadata of template engine.
By embodiment of the disclosure, class is enumerated by preloading, it, can be in conjunction with the macrodefinition of template engine Velocity
The direct value in interface and display drop-down translate such as order status field and displaying comboboxs is enumerated without binding and iteration.
It is module according to an embodiment of the present disclosure, submodule, unit, any number of or in which any more in subelement
A at least partly function can be realized in a module.It is single according to the module of the embodiment of the present disclosure, submodule, unit, son
Any one or more in member can be split into multiple modules to realize.According to the module of the embodiment of the present disclosure, submodule,
Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gate
Array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, dedicated integrated electricity
Road (ASIC), or can be by the hardware or firmware for any other rational method for integrate or encapsulate to circuit come real
Show, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriately combined next reality
It is existing.Alternatively, can be at least by part according to one or more of the module of the embodiment of the present disclosure, submodule, unit, subelement
Ground is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, first obtains module 410, second acquisition module 420, the first determining module 430, generation module 440, second
Determining module 450, third determining module 460 and input module 470, judging unit 421, the first display unit 422 and acquisition are single
Any number of in member 423, generation unit 441 and the second display unit 442 may be incorporated in a module/unit/subelement
Middle realization or any one module/unit/subelement therein can be split into multiple module/unit/subelements.Or
Person, one or more modules/unit/subelement at least partly function in these module/unit/subelements can be with other
Module/unit/subelement at least partly function combines, and realizes in a module/unit/subelement.According to this public affairs
The embodiment opened, first, which obtains module 410, second, obtains module 420, the first determining module 430, generation module 440, second really
Cover half block 450, third determining module 460 and input module 470, judging unit 421, the first display unit 422 and acquiring unit
423, at least one of generation unit 441 and the second display unit 442 can at least be implemented partly as hardware circuit, example
As on field programmable gate array (FPGA), programmable logic array (PLA), system on chip, substrate system, in encapsulation be
System, specific integrated circuit (ASIC), or can be hard by carrying out any other rational method that is integrated or encapsulating etc. to circuit
Part or firmware realize, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several
It is appropriately combined to realize.Alternatively, first obtains module 410, second acquisition module 420, the first determining module 430, generation module
440, the second determining module 450, third determining module 460 and input module 470, judging unit 421, the first display unit 422
It can be at least implemented partly as at least one of acquiring unit 423, generation unit 441 and the second display unit 442
Computer program module can execute corresponding function when the computer program module is run.
Figure 11 diagrammatically illustrates the computer system for being adapted for carrying out method as described above according to the embodiment of the present disclosure
Block diagram.Computer system shown in Figure 11 is only an example, should not function and use scope to the embodiment of the present disclosure
Bring any restrictions.
It as shown in figure 11, include processor 501 according to the computer system of the embodiment of the present disclosure 500, it can be according to depositing
Storage is loaded into random access storage device (RAM) 503 in the program in read-only memory (ROM) 502 or from storage section 508
Program and execute various movements appropriate and processing.Processor 501 for example may include general purpose microprocessor (such as CPU),
Instruction set processor and/or related chip group and/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..Place
Reason device 501 can also include the onboard storage device for caching purposes.Processor 501 may include for executing according to the disclosure
Single treatment unit either multiple processing units of the different movements of the method flow of embodiment.
In RAM 503, it is stored with system 500 and operates required various programs and data.Processor 501, ROM 502 with
And RAM 503 is connected with each other by bus 504.Processor 501 is held by executing the program in ROM 502 and/or RAM 503
The various operations gone according to the method flow of the embodiment of the present disclosure.It is noted that described program also can store except ROM 502
In one or more memories other than RAM 503.Processor 501 can also be stored in one or more of by execution
Program in memory executes the various operations of the method flow according to the embodiment of the present disclosure.
In accordance with an embodiment of the present disclosure, system 500 can also include input/output (I/O) interface 505, input/output
(I/O) interface 505 is also connected to bus 504.System 500 can also include be connected to I/O interface 505 with one in lower component
Item is multinomial: the importation 506 including keyboard, mouse etc.;Including such as cathode-ray tube (CRT), liquid crystal display (LCD)
Deng and loudspeaker etc. output par, c 507;Storage section 508 including hard disk etc.;And including such as LAN card, modulatedemodulate
Adjust the communications portion 509 of the network interface card of device etc..Communications portion 509 executes communication process via the network of such as internet.
Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as disk, CD, magneto-optic disk, semiconductor
Memory etc. is mounted on as needed on driver 510, in order to be pacified as needed from the computer program read thereon
It is packed into storage section 508.
In accordance with an embodiment of the present disclosure, computer software journey may be implemented as according to the method flow of the embodiment of the present disclosure
Sequence.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer readable storage medium
Computer program, which includes the program code for method shown in execution flow chart.In such implementation
In example, which can be downloaded and installed from network by communications portion 509, and/or from detachable media 511
It is mounted.When the computer program is executed by processor 501, the above-mentioned function limited in the system of the embodiment of the present disclosure is executed
Energy.In accordance with an embodiment of the present disclosure, system as described above, unit, module, unit etc. can pass through computer program
Module is realized.
The disclosure additionally provides a kind of computer readable storage medium, which can be above-mentioned reality
It applies included in equipment/device/system described in example;Be also possible to individualism, and without be incorporated the equipment/device/
In system.Above-mentioned computer readable storage medium carries one or more program, when said one or multiple program quilts
When execution, the method according to the embodiment of the present disclosure is realized.
In accordance with an embodiment of the present disclosure, computer readable storage medium can be non-volatile computer-readable storage medium
Matter.Such as it can include but is not limited to: portable computer diskette, hard disk, random access storage device (RAM), read-only memory
(ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), light
Memory device, magnetic memory device or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
For example, in accordance with an embodiment of the present disclosure, computer readable storage medium may include above-described ROM 502
And/or one or more memories other than RAM 503 and/or ROM 502 and RAM 503.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
It will be understood by those skilled in the art that the feature recorded in each embodiment and/or claim of the disclosure can
To carry out multiple combinations and/or combination, even if such combination or combination are not expressly recited in the disclosure.Particularly, exist
In the case where not departing from disclosure spirit or teaching, the feature recorded in each embodiment and/or claim of the disclosure can
To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Embodiment of the disclosure is described above.But the purpose that these embodiments are merely to illustrate that, and
It is not intended to limit the scope of the present disclosure.Although respectively describing each embodiment above, but it is not intended that each reality
Use cannot be advantageously combined by applying the measure in example.The scope of the present disclosure is defined by the appended claims and the equivalents thereof.It does not take off
From the scope of the present disclosure, those skilled in the art can make a variety of alternatives and modifications, these alternatives and modifications should all fall in this
Within scope of disclosure.