CN113239016A - Database design assistance apparatus and method - Google Patents

Database design assistance apparatus and method Download PDF

Info

Publication number
CN113239016A
CN113239016A CN202110611048.6A CN202110611048A CN113239016A CN 113239016 A CN113239016 A CN 113239016A CN 202110611048 A CN202110611048 A CN 202110611048A CN 113239016 A CN113239016 A CN 113239016A
Authority
CN
China
Prior art keywords
database
page
value table
characteristic value
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110611048.6A
Other languages
Chinese (zh)
Other versions
CN113239016B (en
Inventor
李梓建
张娜
郑小东
吴晓倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Communication Information Industry Co ltd
Original Assignee
CRSC Institute of Smart City Research and Design Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Institute of Smart City Research and Design Co Ltd filed Critical CRSC Institute of Smart City Research and Design Co Ltd
Priority to CN202110611048.6A priority Critical patent/CN113239016B/en
Publication of CN113239016A publication Critical patent/CN113239016A/en
Application granted granted Critical
Publication of CN113239016B publication Critical patent/CN113239016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/211Schema design and management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a database design auxiliary device and a method, comprising the following steps: a demand analysis module: the system is used for analyzing the requirements of database design, generating a page characteristic value table and generating a JSP page prototype according to the page characteristic value table; the document generation module: generating a database script and a database table structure document according to the page characteristic value table; the database demonstration module: after the database script and the database table structure document are demonstrated, a database entity object is generated; a report generation module: and generating a test case by using the characteristic values in the page characteristic value table, comparing the page characteristic value table, and generating a database completion report. The invention has the following achievements in each stage of the whole software life cycle: the method comprises the steps of generating a demonstration model for a manager in a requirement analysis stage, generating a design module for a framework engineer in a design stage, generating business codes for an engineer in a research and development stage, and generating a test case for the engineer in a test stage.

Description

Database design assistance apparatus and method
Technical Field
The invention relates to the field of databases, in particular to a database design assisting device and a database design assisting method.
Background
With the development of science and technology and the increasing pace of social life, the requirements of users on the use of software also become higher. Although the standardization degree of the Chinese software enterprise is continuously promoted, the use of software development auxiliary tools in the development process is increasingly popularized. However, most of the Chinese software enterprises are still in the original development state, so that technical personnel who really understand software engineering technology and management and self-improvement and growth of software consulting technology enterprises are needed. The current source code generation tools do not have full life cycle tracking functions from demand analysis, design, development, testing. For example, the prior art discloses a source code auxiliary generation tool, but only focuses on the development stage, and the generated code does not conform to the coding specification and has no generality. The prior art also discloses a method for generating a service test tool, but the method only focuses on the interface test in the running test stage, and has limitations. In addition, the existing source code generation tools rely on templates more in use, the maintenance amount of the templates is large, the templates are not flexible enough, and only forward generation is performed, so that the source code cannot be generated once the data source templates are wrong.
Disclosure of Invention
In view of the above problems, it is an object of the present invention to provide a database design support apparatus and method with versatility and flexibility.
To achieve the above object, the present invention provides a database design assistance device, including:
a demand analysis module: the system is used for analyzing the requirements of database design, generating a page characteristic value table and generating a JSP page prototype according to the page characteristic value table;
the document generation module: the database script and the database table structure document are generated according to the page characteristic value table;
a research and development module: the database entity object generation system is used for generating a database entity object after demonstrating a database script and a database table structure document;
a report generation module: the method is used for generating a test case by utilizing the characteristic values in the page characteristic value table, comparing the page characteristic value table and generating a database completion report.
The database design support device preferably includes:
a first import module: the standard form document is used for importing the custom made form document;
an acquisition module: the system comprises a standard form file, a document structure and a table structure, wherein the standard form file is used for storing a standard form file;
a creation module: the system is used for creating a list page field and an editing page field according to the record data of the page in the standard form document;
a circulation module: the system comprises an acquisition module, a creation module, a processing module and a display module, wherein the acquisition module and the creation module are used for sequentially processing each page in a standard form document;
a generation module: and the page feature value table is generated according to the table structure, the list page field and the edit page field of each page, and a JSP page prototype is generated according to the page feature value table.
Preferably, the database design assistance device further includes a document generation module that:
a second import module: for importing a customized standard form document;
a compiling module: the basic characteristic value table is compiled according to the page characteristic value table;
a selection module: the system is used for selecting a database and a code naming specification to generate a code characteristic value;
a table structure creation module: and the database script and database table structure document is generated according to the basic characteristic value table and the code characteristic value.
Preferably, the database entity objects in the database demonstration module include: entity files, interface files and implementation mapper files.
The database design assisting device preferably further comprises a testing module: and the automatic testing of the database entity is carried out by checking the missing or forgotten field through a regular expression.
On the other hand, in order to achieve the purpose, the invention adopts the following technical scheme: a database design assisting method comprises the following steps:
s1: analyzing the requirement of the database design, generating a page characteristic value table, and generating a JSP page prototype according to the page characteristic value table;
s2: generating a database script and a database table structure document according to the page characteristic value table;
s3: after the database script and the database table structure document are demonstrated, a database entity object is generated;
s4: and generating a test case by using the characteristic values in the page characteristic value table, and comparing the page characteristic value table to generate a database completion report.
Preferably, the database design assisting method in step S1 specifically includes the following steps:
s11: importing a standard form document customized by a customer;
s12: acquiring a document structure of a certain page in the standard form document and creating a form structure;
s13: creating a list page field and an editing page field according to the record data of the page in the standard form document;
s14: performing the processing of steps S12-S13 for each page in the standard form document in turn;
s15: and generating the page characteristic value table according to the table structure, the list page field and the edit page field of each page, and generating a JSP page prototype according to the page characteristic value table.
In the database design assisting method, preferably, the step S2 specifically includes the following steps:
s21: importing a customized standard form document;
s22: compiling a basic characteristic value table according to the page characteristic value table;
s23: selecting a database and a code naming specification to generate a code characteristic value;
s24: and generating a database script and a database table structure document according to the basic characteristic value table and the code characteristic value.
In the method for assisting database design, preferably, in step S3, the database entity object includes: entity files, interface files and implementation mapper files.
The database design assisting method preferably further includes step S5: and checking the missing or forgotten field through a regular expression, and carrying out automatic test on the database entity.
Due to the adoption of the technical scheme, the invention has the following advantages:
(1) the data source of the reporting system can be verified, and the generated result can be traced. And the verification is made in the stage of demand analysis, and the inspection is made in the stage of running test. And matching degree verification is carried out through the regular expression, so that the quality of the reporting system software is ensured.
(2) And in the requirement analysis stage, a JSP page prototype is generated according to the custom-made form, so that a product manager can conveniently and better perform requirement communication, the customer requirements are thoroughly mined, and the custom-made page characteristic form is enriched. The product manager at the stage can complete the business prototype only by simply arranging the client form, and the time for drawing the business prototype can be saved.
(3) And in the design stage, manufacturing a basic characteristic form according to the customized page characteristic form. The transition process from requirement analysis to design is solved, and the database script and the database document are generated at the same time. This process translates the requirements completely into design. The stage reduces the link of the product manager and the architect, and can save the time for writing documents and generating scripts by a database.
(4) In the research and development stage, the system is used for generating entity objects, including business operation methods of adding, modifying, deleting and inquiring, database operation classes and related SQL statements, so that the development time of programmers is shortened, the generation is accurate, and the debugging time is shortened. This stage reduces programmer repeat code writing and debugging time.
(5) And in the testing stage, a test case and a software completion report are generated, so that the testing of testers is facilitated. The software completion report can evaluate the consistency of the generated service interface and the delivery data source, and can evaluate the consistency of the generated service logic code, the input data and the delivery data source data. The stage saves the time for the testers to compile test cases and click and check the page.
(6) The system generates the system, the business logic code and the business interface completely according to the client form, and simultaneously generates the industry library, and the project framework is not limited by the industry, has very strong adaptability, and can be widely applied to the field of database design.
Drawings
FIG. 1 is a diagram of a database design assistance apparatus of the present invention;
FIG. 2 is a block diagram of a demand analysis module of the present invention;
FIG. 3 is a block diagram of a document creation module of the present invention;
FIG. 4 is a schematic diagram of the steps of the database design assistance method of the present invention;
FIG. 5 is a schematic diagram of the steps of generating an entity file according to the present invention;
FIG. 6 is a schematic diagram of the steps of generating a MyBatis interface file of the present invention;
FIG. 7 is a schematic diagram of the steps of the present invention to generate a MyBatis-implementing mapper file;
FIG. 8 is a schematic diagram of the steps of the present invention for generating a JSP page prototype;
FIG. 9 is a schematic diagram of the steps of the present invention for generating database scripts and database table structure documents.
Description of reference numerals:
1 a demand analysis module; 2, a document generating module;
3, a database demonstration module; 4 report generating module;
5, testing the module;
11, importing a module; 12 an acquisition module;
13 creating a module; 14 a cycle module;
15 generating a module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "upper", "lower", "front", "rear", "inside", "outside", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the system or element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," "third," and the like are used to define elements only for convenience in distinguishing between the elements, and if not otherwise stated, are not to be construed as indicating or implying any relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Interpretation of terms:
JSP: java Server Pages; a java server page; a dynamic web page technology standard.
The database design auxiliary device and the database design auxiliary method provided by the embodiment of the invention can achieve the following results in each stage of the whole software life cycle: the method comprises the steps of generating a demonstration model for a product manager in a requirement analysis stage, generating a design module for a framework engineer in a design stage, generating a service code for a research and development engineer in a research and development stage, and generating a test case for a test engineer in a test stage.
As shown in fig. 1, the present invention provides a database design assistance device, including the following:
the demand analysis module 1: the method is used for analyzing the requirements of database design, generating a page characteristic value table K1 and generating a JSP page prototype according to the page characteristic value table K1; in practical application, the requirements of a database which needs to be designed by a client are filled into a standard form document, and the standard form document records the requirements of the client; the standard form document includes an Excel document.
The document generation module 2: the system is used for generating database scripts and database table structure documents according to the page characteristic value table K1;
the basic characteristic value table K0 includes in practical application: glossary, dictionary, english name labels, field types, and field descriptions.
The code characteristic value table K2 includes, in practical applications: serial number, condition value, parameter list and remark list.
The database table structure document comprises in practical application: column name, data type, type length, decimal number, whether primary key, allow null, default, description, and remark column.
Database demonstration module 3: the database entity object generation system is used for generating a database entity object after demonstrating a database script and a database table structure document; entity objects are generated using the field descriptions of the base feature value table K0 and the code feature value table K2, including add, delete, modify, business methods of query, database operation classes, and related SQL statements. Entity objects include Entity (Entity) files, MyBatis interface files, and MyBatis-implementation mapper (xml) files. Finally, JSP code is generated.
The report generation module 4: the method is used for generating a test case by using the characteristic values in the page characteristic value table, such as an input field length, verification of a mandatory field and a boundary value analysis case, and comparing the page characteristic value table to generate a database completion report.
As shown in fig. 2, the database design assistance apparatus, preferably, the requirement analysis module 1 includes:
the first import module 11: the standard form document is used for importing the custom made form document; the standard form document comprises an Excel document.
The acquisition module 12: the method comprises the steps of obtaining a document structure of a certain page in a standard form document and creating a form structure; the document structure includes a field name, a field type, a field length, a primary key, whether null, and a description.
The creation module 13: creating a list page field and an edit page field according to the record data of the page in the standard form document;
the circulation module 14: processing each page in the standard form document in turn by using the acquisition module 12 and the creation module 13;
the generation module 15: the method is used for generating a page characteristic value table K1 according to the table structure, the list page field and the edit page field of each page, and generating a JSP page prototype according to the page characteristic value table K1. By demonstrating the business model, engineers can judge whether the model meets the requirements of customers, if not, the page characteristic value table K1 can be modified, and then the modules are repeatedly utilized until a JSP page prototype meeting the requirements of customers is obtained.
As shown in fig. 3, the database design assistance apparatus is preferably such that the document creation module 2 includes:
a second import module: for importing a customized standard form document;
a compiling module: the basic characteristic value table is compiled according to the page characteristic value table;
a selection module: the system is used for selecting a database and a code naming specification to generate a code characteristic value;
a table structure creation module: and the database script and database table structure document is generated according to the basic characteristic value table and the code characteristic value.
The database design assisting device preferably includes the following database entity objects in the database demonstration module 3: entity files, interface files and implementation mapper files.
The database design aid preferably further comprises a test module 5: the method is used for checking the missing or forgotten fields through the regular expression, and carrying out automatic testing on the database entity.
On the other hand, to achieve the above object, as shown in fig. 4,
the invention adopts the following technical scheme: a database design assisting method comprises the following steps:
s1: analyzing the requirement of database design, generating a page characteristic value table K1, and generating a JSP page prototype according to the page characteristic value table K1;
s2: generating a database script and a database table structure document according to the page characteristic value table K1; the page feature value table K1 in practical applications includes a glossary, a dictionary, english name labels, grammatical features, query conditions, query field control features, edit page display, and original columns. According to the page characteristic value table K1, a basic characteristic value table K0 and a code characteristic value table K2 are generated at the same time. The generation of the database script comprises recording field names, recording field types, recording field lengths, recording main keys, whether the records are empty, recording description and field creation, and then circularly recording until generating a table building end statement. The module compiles a basic characteristic value table K0 according to a page characteristic value table K1, then selects a database, code naming specifications and the like according to business needs, generates a code characteristic value K2, compares the page characteristic value table K1 if the result meets the business review of a client, and generates a database script and a database design document if the page characteristic value table K1 meets the business requirements of the client. If the code characteristic value K2 is not qualified for the business review, the basic characteristic value table K0 is generated again according to the page characteristic value table K1. If the comparison page characteristic value table K1 does not meet the business requirements of the customer, a basic characteristic value table K0 is generated again according to the page characteristic value table K1.
S3: after the database script and the database table structure document are demonstrated, a database entity object is generated;
FIG. 5 is a diagram illustrating the steps of generating an Entity (Entity) file. Sequentially comprises the following steps: analyzing the package name, the class name and the class annotation; creating a project structure file according to the package name and the class name; an entity class reference, class name is created. The cyclic record sequentially comprises the steps of obtaining an attribute name, obtaining an attribute type, obtaining an attribute length, obtaining an attribute description, generating an attribute annotation and generating an attribute code; and circulating the steps and finally generating the entity file.
FIG. 6 is a schematic diagram illustrating the steps of generating a MyBatis interface file. Sequentially comprises the following steps: analyzing the package name and the class name; creating a project homostructured file according to the package name and the class name; creating an entity class reference interface name; creating a method and annotating; cycling through each page in the table document; and finally generating an interface file.
FIG. 7 is a schematic diagram illustrating the steps of generating MyBatis- -implementing a mapper file. Sequentially comprises the following steps: a basic column list splicing (Base _ column _ list), an insertion splicing (insert) method, an insertion splicing macro (insert batch) method, an update splicing (update) method and a query splicing (query) method, wherein the splicing is performed according to an identity query (queryByID) method and the splicing is performed according to an identity delete (deleteByID) method; circulating the above steps; and judging whether the field is the last field, if so, ending the method and ending the file.
S4: and generating a test case by using the characteristic values in the page characteristic value table K1, and comparing the page characteristic value table to generate a database completion report.
As shown in fig. 8, in the database design assisting method, preferably, the step S1 specifically includes the following steps:
s11: importing a standard form document customized by a customer; the standard form document includes various fields that the customer needs to customize, such as: business name, risk point location, risk factor, risk level, and the like.
S12: acquiring a document structure of a certain page in a standard form document and creating a form structure; in practice, a table structure in a database is established by adopting a document structure of a certain page in an Excel table; usually, Excel tables are in row and column format, and the table structure in the database is also in row and column format.
S13: creating a list page field and an edit page field according to the record data of the page in the standard form document; and recording the data recorded in the Excel table into a list page field and an edit page field. The record data comprises field name, field type, field length, primary key and whether the field is null or not.
S14: the processing of steps S12-S13 is performed for each page in the standard form document in turn; each page in the standard form document is subjected to the processing of steps S12-S13.
S15: and generating the page characteristic value table according to the table structure, the list page field and the edit page field of each page, and generating a JSP page prototype according to the page characteristic value table. Each page in a standard table document generates a JSP page.
As shown in fig. 9, in the method for aided design of database design, step S2 preferably includes the following steps:
s21: importing a customized standard form document;
s22: compiling a basic characteristic value table according to the page characteristic value table;
s23: selecting a database and a code naming specification to generate a code characteristic value;
s24: and generating a database script and a database table structure document according to the basic characteristic value table and the code characteristic value.
Preferably, the database entity object in step S3 includes: entity files, interface files and implementation mapper files.
The database design assistance method preferably further includes step S5: and checking the missing or forgotten fields through a regular expression to automatically test the database entity.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1.一种数据库设计辅助装置,其特征在于,包括如下:1. a database design auxiliary device, is characterized in that, comprises as follows: 需求分析模块(1),用于对数据库设计的需求进行分析,生成页面特征值表格,并根据页面特征值表格生成JSP页面原型;The demand analysis module (1) is used to analyze the demand of database design, generate a page characteristic value table, and generate a JSP page prototype according to the page characteristic value table; 文档生成模块(2),用于根据生成的页面特征值表格生成数据库脚本和数据库表结构文档;a document generation module (2) for generating a database script and a database table structure document according to the generated page characteristic value table; 数据库论证模块(3),用于对生成的数据库脚本和数据库表结构文档进行论证,生成数据库实体对象;The database demonstration module (3) is used to demonstrate the generated database scripts and database table structure documents, and generate database entity objects; 报告生成模块(4),用于利用页面特征值表格中的特征值生成测试用例,并对比页面特征值表格,生成数据库完成度报告。The report generating module (4) is used for generating a test case by using the feature value in the page feature value table, and comparing the page feature value table to generate a database completion report. 2.根据权利要求1所述的数据库设计辅助装置,其特征在于,所述需求分析模块(1)包括:2. The database design auxiliary device according to claim 1, wherein the demand analysis module (1) comprises: 第一导入模块(11),用于导入定制的标准表格文档;a first import module (11) for importing customized standard form documents; 获取模块(12),用于获取标准表格文档中某一页的文档结构并创建表结构;an acquisition module (12) for acquiring the document structure of a page in the standard table document and creating a table structure; 创建模块(13),用于根据标准表格文档中该页的记录数据,创建列表页字段和编辑页字段;A creation module (13) is used to create a list page field and an edit page field according to the record data of the page in the standard form document; 循环模块(14),用于利用获取模块(12)和创建模块(13)依次对标准表格文档中的每页进行的处理;a circulation module (14), for using the acquisition module (12) and the creation module (13) to sequentially process each page in the standard form document; 生成模块(15),用于根据每页的表结构、列表页字段和编辑页字段生成页面特征值表格,并根据页面特征值表格生成JSP页面原型。A generating module (15) is used for generating a page characteristic value table according to the table structure, list page field and edit page field of each page, and generating a JSP page prototype according to the page characteristic value table. 3.根据权利要求1所述的数据库设计辅助装置,其特征在于,所述文档生成模块(2)包括:3. The database design aid according to claim 1, wherein the document generation module (2) comprises: 第二导入模块(21),用于导入定制的标准表格文档;The second import module (21) is used for importing customized standard form documents; 编制模块(22),用于根据页面特征值表格编制基础特征值表格;a preparation module (22) for preparing a basic characteristic value table according to the page characteristic value table; 选择模块(23),用于选择数据库和代码命名规范生成代码特征值;a selection module (23), used for selecting a database and a code naming convention to generate code characteristic values; 表结构创建模块(24),用于根据基础特征值表格和代码特征值生成数据库脚本和数据库表结构文档。A table structure creation module (24) is used for generating a database script and a database table structure document according to the basic characteristic value table and the code characteristic value. 4.根据权利要求1所述的数据库设计辅助装置,其特征在于,所述数据库论证模块(3)中的数据库实体对象包括:实体文件,接口文件和实现映射器文件。4. The database design assistance device according to claim 1, wherein the database entity objects in the database argumentation module (3) comprise: entity files, interface files and implementation mapper files. 5.根据权利要求1所述的数据库设计辅助装置,其特征在于,还包括测试模块(5):通过正则表达式进行字符匹配,检查缺漏或遗忘的字段,进行对数据库实体的自动化测试。5. The database design aid according to claim 1, further comprising a test module (5): performing character matching through regular expressions, checking missing or forgotten fields, and performing automated tests on database entities. 6.一种数据库设计辅助方法,其特征在于,包括如下步骤:6. a database design assistance method, is characterized in that, comprises the steps: S1:对数据库设计的需求进行分析,生成页面特征值表格,并根据页面特征值表格生成JSP页面原型;S1: Analyze the requirements of database design, generate a page characteristic value table, and generate a JSP page prototype according to the page characteristic value table; S2:根据页面特征值表格生成数据库脚本和数据库表结构文档;S2: Generate database scripts and database table structure documents according to the page feature value table; S3:对数据库脚本和数据库表结构文档进行论证后,生成数据库实体对象;S3: After the database script and the database table structure document are demonstrated, the database entity object is generated; S4:利用页面特征值表格中的特征值生成测试用例,并对比页面特征值表格,生成数据库完成度报告。S4: Generate a test case using the feature values in the page feature value table, and compare the page feature value table to generate a database completion report. 7.根据权利要求6所述的数据库设计辅助方法,其特征在于,所述步骤S1具体包括如下:7. The database design assistance method according to claim 6, wherein the step S1 specifically comprises the following: S11:导入预先定制的标准表格文档;S11: Import pre-customized standard form documents; S12:获取标准表格文档中某一页的文档结构并创建表结构;S12: Obtain the document structure of a page in the standard table document and create a table structure; S13:根据标准表格文档中该页的记录数据,创建列表页字段和编辑页字段;S13: Create a list page field and an edit page field according to the record data of the page in the standard form document; S14:依次对标准表格文档中的每页进行步骤S12-S13的处理;S14: Perform the processing of steps S12-S13 on each page in the standard form document in sequence; S15:根据每页的表结构、列表页字段和编辑页字段生成页面特征值表格,并根据页面特征值表格生成JSP页面原型。S15: Generate a page characteristic value table according to the table structure, list page field and edit page field of each page, and generate a JSP page prototype according to the page characteristic value table. 8.根据权利要求6所述的数据库设计辅助方法,其特征在于,所述步骤S2具体包括如下:8. database design assistance method according to claim 6, is characterized in that, described step S2 specifically comprises as follows: S21:导入预先定制的标准表格文档;S21: Import a pre-customized standard form document; S22:根据页面特征值表格编制基础特征值表格;S22: prepare a basic feature value table according to the page feature value table; S23:选择数据库和代码命名规范生成代码特征值;S23: Select database and code naming convention to generate code characteristic value; S24:根据基础特征值表格和代码特征值生成数据库脚本和数据库表结构文档。S24: Generate a database script and a database table structure document according to the basic feature value table and the code feature value. 9.根据权利要求6所述的数据库设计辅助方法,其特征在于,所述步骤S3中数据库实体对象包括:实体文件,接口文件和实现映射器文件。9 . The database design assistance method according to claim 6 , wherein the database entity objects in step S3 include: entity files, interface files and implementation mapper files. 10 . 10.根据权利要求6所述的数据库设计辅助方法,其特征在于,还包括步骤S5:通过正则表达式进行字符匹配,检查缺漏或遗忘的字段,对数据库实体进行自动化测试。10 . The database design assistance method according to claim 6 , further comprising step S5 : performing character matching through regular expressions, checking missing or forgotten fields, and performing automated testing on database entities. 11 .
CN202110611048.6A 2021-06-01 2021-06-01 Database design auxiliary device and method Active CN113239016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110611048.6A CN113239016B (en) 2021-06-01 2021-06-01 Database design auxiliary device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110611048.6A CN113239016B (en) 2021-06-01 2021-06-01 Database design auxiliary device and method

Publications (2)

Publication Number Publication Date
CN113239016A true CN113239016A (en) 2021-08-10
CN113239016B CN113239016B (en) 2024-04-02

Family

ID=77136252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110611048.6A Active CN113239016B (en) 2021-06-01 2021-06-01 Database design auxiliary device and method

Country Status (1)

Country Link
CN (1) CN113239016B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114357916A (en) * 2022-01-11 2022-04-15 北京汤谷软件技术有限公司 Chip FPGA prototype verification method and system

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09319629A (en) * 1996-05-27 1997-12-12 Hitachi Ltd Database design supporting tool
WO2004029755A2 (en) * 2002-09-27 2004-04-08 Enviance, Inc. Automated report building system
CN101477549A (en) * 2009-01-20 2009-07-08 中国测绘科学研究院 Knowledge base supported spatial database design method
KR20100115048A (en) * 2009-04-17 2010-10-27 정원석 System for distinguishing copy document and method therefor
CN102830974A (en) * 2012-08-13 2012-12-19 南京莱斯信息技术股份有限公司 Visual auxiliary development tool for rapid generation of JAVA codes
US20160125050A1 (en) * 2014-10-31 2016-05-05 Beacon Intellectual Property Services, LLC System and method for generating search reports
CN107357942A (en) * 2017-09-04 2017-11-17 山东达创网络科技股份有限公司 A kind of source code auxiliary Core Generator and its generation method
CN108595644A (en) * 2018-04-26 2018-09-28 宁波银行股份有限公司 A kind of big data platform operation management system
CN108595159A (en) * 2018-05-10 2018-09-28 天津科技大学 A kind of method for producing software describing software requirement based on relation table
CN108984620A (en) * 2018-06-14 2018-12-11 中国科学院重庆绿色智能技术研究院 A kind of relevant database and its design method of dynamic scalable
CN109542765A (en) * 2018-10-18 2019-03-29 深圳壹账通智能科技有限公司 Database script verification method, device, computer equipment and storage medium
EP3495971A1 (en) * 2017-12-11 2019-06-12 Wipro Limited Method and device for database design and creation
CN111258579A (en) * 2020-01-14 2020-06-09 郴州金通信息科技有限公司 Website development system and method
CN112395366A (en) * 2019-08-19 2021-02-23 阿里巴巴集团控股有限公司 Data processing and creating method and device of distributed database and electronic equipment
CN112527771A (en) * 2020-12-12 2021-03-19 江西洪都航空工业集团有限责任公司 City management-oriented database design method
CN112527774A (en) * 2020-12-18 2021-03-19 通号智慧城市研究设计院有限公司 Data center building method and system and storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09319629A (en) * 1996-05-27 1997-12-12 Hitachi Ltd Database design supporting tool
WO2004029755A2 (en) * 2002-09-27 2004-04-08 Enviance, Inc. Automated report building system
CN101477549A (en) * 2009-01-20 2009-07-08 中国测绘科学研究院 Knowledge base supported spatial database design method
KR20100115048A (en) * 2009-04-17 2010-10-27 정원석 System for distinguishing copy document and method therefor
CN102830974A (en) * 2012-08-13 2012-12-19 南京莱斯信息技术股份有限公司 Visual auxiliary development tool for rapid generation of JAVA codes
US20160125050A1 (en) * 2014-10-31 2016-05-05 Beacon Intellectual Property Services, LLC System and method for generating search reports
CN107357942A (en) * 2017-09-04 2017-11-17 山东达创网络科技股份有限公司 A kind of source code auxiliary Core Generator and its generation method
EP3495971A1 (en) * 2017-12-11 2019-06-12 Wipro Limited Method and device for database design and creation
CN108595644A (en) * 2018-04-26 2018-09-28 宁波银行股份有限公司 A kind of big data platform operation management system
CN108595159A (en) * 2018-05-10 2018-09-28 天津科技大学 A kind of method for producing software describing software requirement based on relation table
CN108984620A (en) * 2018-06-14 2018-12-11 中国科学院重庆绿色智能技术研究院 A kind of relevant database and its design method of dynamic scalable
CN109542765A (en) * 2018-10-18 2019-03-29 深圳壹账通智能科技有限公司 Database script verification method, device, computer equipment and storage medium
CN112395366A (en) * 2019-08-19 2021-02-23 阿里巴巴集团控股有限公司 Data processing and creating method and device of distributed database and electronic equipment
CN111258579A (en) * 2020-01-14 2020-06-09 郴州金通信息科技有限公司 Website development system and method
CN112527771A (en) * 2020-12-12 2021-03-19 江西洪都航空工业集团有限责任公司 City management-oriented database design method
CN112527774A (en) * 2020-12-18 2021-03-19 通号智慧城市研究设计院有限公司 Data center building method and system and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
廖述梅等: "带模板的结构化HTML文档深度标注框架", 《清华大学学报(自然科学版)》, vol. 46, no. 1, 25 June 2006 (2006-06-25) *
徐小凤: "计算机辅助数据库设计的研究", 《中国优秀博硕士学位论文全文数据库 (硕士) 信息科技辑》, 15 March 2005 (2005-03-15) *
李梅等: "一种数据库代码自动生成器的设计", 《太原理工大学学报》, vol. 40, no. 6, 15 November 2009 (2009-11-15) *
罗铁祥: "一个数据库设计工具的功能和结构", 《中南民族学院学报(自然科学版)》, vol. 20, no. 1, 30 March 2001 (2001-03-30) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114357916A (en) * 2022-01-11 2022-04-15 北京汤谷软件技术有限公司 Chip FPGA prototype verification method and system
CN114357916B (en) * 2022-01-11 2023-03-10 北京汤谷软件技术有限公司 Chip FPGA prototype verification method and system

Also Published As

Publication number Publication date
CN113239016B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN110309071B (en) Test code generation method and module, and test method and system
WO2020233330A1 (en) Batch testing method, apparatus, and computer-readable storage medium
CN108805510B (en) Construction drawing design BIM model compliance auditing method and system
CN109254907B (en) Java-based interface test report generation method and system
Moreau et al. A templating system to generate provenance
CN110275861B (en) Data storage method and device, storage medium and electronic device
US20090198727A1 (en) Trace-based database schema evolution method and system
CN101996131A (en) Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
CN112506505A (en) Method for producing program code by code template engine
CN111966587A (en) Data acquisition method, device and equipment
CN111367893A (en) Method and device for database version iteration
CN111367982B (en) Method, device, computer equipment and storage medium for importing TRRIGA basic data
CN113239016A (en) Database design assistance apparatus and method
CN114218105A (en) UI automatic regression testing system based on configuration application mode
CN118503110A (en) A method for identifying and repairing source code defects
CN113076252A (en) Interface testing method and device, electronic equipment and storage medium
CN114385155A (en) vue project visualization tool generation method, device, equipment and storage medium
CN113435830A (en) Mail information summarizing method, system, electronic device and storage medium
KR100656559B1 (en) Program Automatic Development Device Using GIID Methodology
CN118426825B (en) Bidirectional intelligent question-answering code supplementing method and system based on large language model
CN117874393B (en) Method and system for constructing SCA model engineering through XML file
CN118467549B (en) A visual data connection method and device based on data model
CN118567614A (en) Energy storage monitoring platform modeling method and system based on Schema mechanism
CN119248781A (en) Data importing method, system, equipment and medium
CN118312480A (en) System and method for complex Excel unordered comparison

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20241120

Address after: Room 401-406, Building A, China Communications Tower, No.1 South Road, Automobile Museum, Fengtai District, Beijing 100027

Patentee after: Communication information industry Co.,Ltd.

Country or region after: China

Address before: 100070 17th floor, block a, China communication building, No.1 courtyard, Automobile Museum South Road, Fengtai District, Beijing

Patentee before: Tonghao smart city research and Design Institute Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right