Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for automatically realizing JAVA object and data table SQL (structured query language) file

A data table and object technology, which is applied in structured data retrieval, electronic digital data processing, database design/maintenance, etc., can solve the problems that no development brings too much convenience and does not meet the needs of the project, so as to reduce development, Configure flexible effects

Inactive Publication Date: 2014-01-01
北京思特奇信息技术股份有限公司
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the current development of some projects, it is necessary to generate JAVA objects and corresponding persistent layer SQL statements. Although there are some open source tools and methods that can also be implemented, they do not meet the needs of the project and do not bring much convenience to the development.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for automatically realizing JAVA object and data table SQL (structured query language) file
  • Method and system for automatically realizing JAVA object and data table SQL (structured query language) file
  • Method and system for automatically realizing JAVA object and data table SQL (structured query language) file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0045] Such as figure 1 Shown, a kind of method for automatically realizing JAVA object and data table SQL file described in specific embodiment 1 of the present invention specifically comprises the following steps:

[0046] Step 0: Write and create a Velocity template according to java and sql standards, and the Velocity template is used to implement commonality extraction for corresponding files;

[0047] Step 1: The configuration module configures database information on the configuration interface, and extracts relevant information corresponding to JAVA objects and SQL statements;

[0048] Step 2: the processing module processes the relevant information corresponding to the JAVA object and the SQL statement, an...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for automatically realizing a JAVA object and a data table SQL (structured query language) file. The method specifically includes the following steps: step 1, configuring database information on a configuration interface and extracting related information of a corresponding JAVA object and an SQL statement; step 2, processing the related information of the corresponding JAVA object and the SQL statement, and outputting a corresponding file; step 3, loading pre-configured necessary information and necessary information inside a program into a pre-built Velocity model to generate the corresponding object and a persistent-layer corresponding data table SQL file; step 4, inputting the JAVA object and the persistent-layer corresponding data table SQL file according to an output directory structure. The method is close to a practical project, needed modes of all the corresponding tables are generated at one time, and development of personnel is greatly reduced; the method is flexible in configuration and applicable to multi-type databases and multi-persistent-layer formats; bugs, errors and the like caused by manual writing of developers are reduced.

Description

technical field [0001] The invention relates to a method and a system for automatically realizing JAVA objects and data table SQL files. Background technique [0002] The present invention relates to using velocity open-source technology to implement an executable method in Eclipse, through which the corresponding JAVA object required in project development and the SQL file corresponding to the data table of the persistent layer are automatically realized. [0003] Velocity is a Java-based template engine (template engine). It allows anyone to simply use the template language (template language) to refer to objects defined by Java code, so this technology is mainly based on the Java language, so there is no incompatibility or conflict problem, and secondly, it is an open source technology, and It is free and has a wealth of reference materials on the Internet. [0004] JAVA objects (Plain Old Java Objects) simple Java objects are actually ordinary JavaBeans, which is an ab...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30G06F9/44
CPCG06F8/31G06F16/21
Inventor 李锦
Owner 北京思特奇信息技术股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More