Condition object query method and system

A query method and object technology, applied in the field of data query, can solve problems such as easy problems, system damage, low efficiency, etc., to achieve the effect of improving development efficiency and reducing the probability of errors

Inactive Publication Date: 2012-04-25
GUANGZHOU SUNRISE ELECTRONICS DEV
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the actual development process, the above-mentioned conversion and assembly processes are prone to problems, and inexperienced programmers can easily leave loopholes, causing malicious users to damage the system through SQL injection.
In addition, if multiple query processes are involved in an application, the above-mentioned development process needs to be repeated for each query, and programmers often use copy and paste to develop programs, which is not only inefficient, but also often produces errors in the program. wrong code

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
  • Condition object query method and system
  • Condition object query method and system
  • Condition object query method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to enable those skilled in the art to better understand the solutions of the embodiments of the present invention, the embodiments of the present invention will be further described in detail below in conjunction with the drawings and implementations.

[0052] The conditional object query method and system of the embodiment of the present invention utilizes the pre-established general query model to map the query conditions input by the user to the general query object when data query is required, and then invoke the general query corresponding to the general query object The model completes the query process and obtains the query results. In this way, for the development of different applications or multiple queries in one application, the developer only needs to map the query conditions to the general query object and call the corresponding general query model to complete the query process. Not only can the application development efficiency be improved, but ...

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 the technical field of data query, and discloses a condition object query method and system. The method comprises the following steps of: acquiring a query condition input by a user; mapping the query condition to a universal query object; calling a universal query model corresponding to the universal query condition to finish a query process so as to obtain a query result; and displaying the query result. By using the method and the system, the application development efficiency can be increased, and the error probability in the application development process can be reduced.

Description

technical field [0001] The invention relates to the technical field of data query, in particular to a condition object query method and system. Background technique [0002] In the development of JavaEE application systems, the general process is that the user enters character-type query conditions, such as date, name, etc., and the system needs to first convert the character-type query conditions into data-type query parameters, and then assign them to a query object , and then hand over the query object to the DAO (Data Access Object) layer, assemble it into an actual query statement, and execute the query statement to obtain the query result expected by the user. [0003] In the actual development process, the above-mentioned conversion and assembly processes are prone to problems, and inexperienced programmers can easily leave loopholes, causing malicious users to damage the system through SQL injection. In addition, if multiple query processes are involved in an applic...

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): G06F17/30
Inventor 廖锦波
Owner GUANGZHOU SUNRISE ELECTRONICS DEV
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