Template code generation method and device for Java development framework

A template code and development framework technology, applied in the field of big data, can solve problems such as inability to generate financial application system handling, review, authorization function codes, inapplicability of BFWJ, and insufficient support of financial application systems

Pending Publication Date: 2022-01-14
BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the code generated by CodeX4J is relatively complete, it is only applicable to the SSM framework, not to the BFWJ (Java development framework, the full name is Boc FrameWork for Java) framework
Moreover, it cannot generate function codes commonly used in financial application systems such as handling, review, and authorization, and the support for financial application systems is not perfect

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
  • Template code generation method and device for Java development framework
  • Template code generation method and device for Java development framework
  • Template code generation method and device for Java development framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0038] In the web application written based on the BFWJ framework, although the functions implemented by each transaction are different, from the perspective of code implementation, whether it is the entity class, data access layer, logic layer or control layer, its code files and configuration files exist Many similar parts. From the perspective of financial application systems, basically all transactions involving accounts are composed of handling, review, and authorization, which have strong similarities.

[0039] Based on this, the present invention proposes a te...

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 discloses a template code generation method and device for a Java development framework, and relates to the field of big data. The method comprises the steps: reading a pre-established data table of each stage of a business process related to an accounting transaction; according to the data table, generating an entity class file, a data access layer XML configuration file, a data access layer Java class file, a service logic layer Java interface file, a service logic layer interface implementation class file, a control layer class file identifier, a control layer XML configuration file and other identifiers; generating an entity class according to the entity class file identifier; generating an XML configuration file and a Java class file of the data access layer; generating a service logic layer Java interface file and an interface implementation class file; generating a control layer class file; and generating the control layer XML configuration file according to the control layer XML configuration file identifier and the control layer class file. According to the method and the device, the template code of the Java development framework can be efficiently and accurately generated.

Description

technical field [0001] The invention relates to the technical field of big data, in particular to a template code generation method and device for a Java development framework. Background technique [0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section. [0003] At present, the main types of existing development frameworks and their corresponding problems include: [0004] 1) MyBatis Generator: [0005] MyBatis Generator is a code generation tool for MyBatis, which is used to generate template code related to database access based on database tables. The MyBatis Generator can only generate codes related to database access, but cannot generate codes of logic layer, control layer, etc., which has strong limitations. [0006] 2) CodeX4J: [0007] CodeX4J is an open source Java code generator, which is used to au...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/84G06F8/35
CPCG06F16/84G06F8/35
Inventor 马文建
Owner BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products