Data base dynamic inquiry method and system

A dynamic query and database technology, applied in the field of database applications, can solve problems such as increased maintenance workload, difficult maintenance, and session interaction, and achieve the effects of reducing complexity, improving adaptability and efficiency, and solving query demand changes

Active Publication Date: 2008-03-19
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF0 Cites 47 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] 1. Database view technology can only write logic according to SQL, without object-oriented programming interface, which is not conducive to user understanding, and cannot conveniently set condition parameters
[0010] 2. After the view definition is completed, it cannot be dynamically modified at runtime
And because many database query methods are often used in large-scale database applications, and the business is complex and changes with the expansion of the business, so many query statement definition and maintenance workloads are heavy; and no matter in the design period No matter how many query methods are defined, it is impossible to exhaustively define all future query methods. Therefore, if there are new changes in the external environment and the view cannot be dynamically modified, it will be difficult for the application to adapt to changes in query requirements.
[0011] 3. Views have poor adaptability, low work efficiency, and are not easy to maintain; general views need to query all the fields that may be used every time, which will double the amount of query data and low operating efficiency; on the contrary, if only querying specific scenarios Fields are not very versatile, and views need to be designed for each scenario, resulting in a substantial increase in maintenance workload
When the relationship between data tables in the system changes, or the query requirements change, all related views need to be modified, and the probability of error is high
[0012] 4. Views are shared across the application layer, and session-level isolation cannot be achieved, which may lead to mutual influence between sessions

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
  • Data base dynamic inquiry method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0036] The invention is applicable to numerous general purpose and special purpose computing system environments or configurations. For example: personal computer, server computer, handheld or portable device, tablet type device, multiprocessor system, distributed computing environment including any of the above systems or devices, etc.

[0037] The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environment...

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 present invention provides a method for the dynamic database inquiry, including that the corresponding metadata is sought out among a plurality of preset metadata based on the specified information of users; The metadata consists of a description on the query field, a description on the filtering condition, a description on the ordering condition and a description on the query subobject; A query object is generated based on the acquired metadata information; Parameter interfaces are invoked to amend any item or any combined item of the query field, the filtering condition, the ordering condition and the query subobject according to actual demands; The information is amended according to the query object and the parameters of the query object, and SQL query sentences are generated; The SQL query sentences are carried out to accomplish the database query and return to the data result rowset. The present invention can achieve different queries, satisfy numerous and complicated query demands, lower the complexity of the application maintenance notably and boost the adaptability and the efficiency of the query mechanism by introducing filtering parameters during the operation.

Description

technical field [0001] The invention relates to the field of database applications, in particular to a method and system for dynamic database query. Background technique [0002] In many current software application systems (for example, J2EE enterprise applications, etc.), it is often necessary to combine the program and the database for use, that is, the problem of accessing the database is often faced, and database query is the most commonly used operation. Moreover, due to the complexity and variability of business in enterprise applications, database query is a very frequently used functional module, resulting in relatively high requirements for the performance, robustness, and scalability of the data query module. [0003] In the prior art, JDBC (Java Database Connectivity) API is generally used to implement the database query function module through programming. JDBC API is a specification for accessing databases in the Java language. A set of Java database programmi...

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 KINGDEE SOFTWARE(CHINA) CO LTD
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