Monad-based persistent layer composite condition query method and storage medium

A query method and technology of compound conditions, which are applied in the field of persistent layer compound condition query methods and storage media, can solve problems such as inability to adapt to multi-condition combination and flexible query requirements, avoid optimization and expansion difficulties, improve development efficiency, and avoid later stages. Extend difficult effects

Active Publication Date: 2020-05-08
CHONGQING UNIV OF POSTS & TELECOMM
View PDF9 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] 1) There are many files that need to be mapped, and each entity class will correspond to the corresponding SQL interface and XML file. At the same time, adding a method also needs to modify the SQL interface file and XML file at the same time. In the development stage, there is a lot of work to add methods frequently quantity
[0011] 2) It cannot adapt to the flexible query requirements of multi-condition combination

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
  • Monad-based persistent layer composite condition query method and storage medium
  • Monad-based persistent layer composite condition query method and storage medium
  • Monad-based persistent layer composite condition query method and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028]The technical solutions in the embodiments of the present invention will be described clearly and in detail below with reference to the drawings in the embodiments of the present invention. The described embodiments are only some of the embodiments of the invention.

[0029] The technical scheme that the present invention solves the problems of the technologies described above is:

[0030] By building a flexible built-in SQL query tool and basic annotations to avoid complicated configuration files, the persistence layer tool described in the present invention is implemented on the basis of the persistence layer framework Mybatis for functional expansion, in order to better inherit the original SQL of the framework Management mode, database connection management, etc., and considering the function extension and optimization of the original framework by third-party plug-ins, it will reuse the original functional modules of the framework to the greatest extent, such as unde...

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 Monad-based persistent layer composite condition query method and a storage medium. At present, a persistent layer of most Java applications uses an ORM framework to eliminate the impedance mismatching phenomenon between an object-oriented language and a relational database, thereby enhancing development efficiency. However, a current mainstream ORM framework is provided.For example, problems exist in Mybatis, Hibernate and the like, so that the development efficiency is influenced. The problems include uncontrollable SQL, difficult optimization, excessive dependentfiles and the like. To overcome these disadvantages, the invention provides a persistent layer framework based on Mybatis. According to the framework, an SQL (Structured Query Language) controllable quick query function is realized by combining a Linq style on the basis of a Mybatis function; through the function, related files on which query depends can be reduced, meanwhile, the SQL file is automatically detected and generated to achieve controllability and optimization, the problem that SQL optimization is difficult due to excessive packaging of API is avoided, the development efficiency isimproved, and the development period is shortened.

Description

technical field [0001] The invention belongs to the field of computers, and in particular relates to a monad-based persistence layer composite condition query method and a storage medium. Background technique [0002] At present, with the rapid growth of the Internet scale, more and more enterprises pay more attention to the development speed of software applications in order to gain the upper hand in the fierce market competition. In the actual software development process, software applications need to frequently update the database In other words, the proportion of the workload of the database interaction code should not be underestimated, and software developers will spend a lot of time writing the database interaction code. [0003] Data exists in the form of objects in the application system, but in the database as tuples with relationships, so when interacting with the database in the application, it is necessary to convert the objects into relational data and operate...

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): G06F16/835G06F16/84
CPCG06F16/8358G06F16/8373G06F16/84Y02D10/00
Inventor 熊仕勇赵融政徐延旭甘霖杜天祥
Owner CHONGQING UNIV OF POSTS & TELECOMM
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