Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Implementation method of intelligent adaption of multiple data sources

A technology with multiple data sources and implementation methods, applied in the field of data source processing, can solve the problems of inflexible data processing and management of multiple data sources, slow development efficiency, etc., to reduce code redundancy, high development efficiency, and improve development efficiency Effect

Inactive Publication Date: 2018-11-20
成都优易数据有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method for intelligently adapting multiple data sources to solve the problem of slow development efficiency due to inflexible data processing and management of multiple data sources during the development process

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
  • Implementation method of intelligent adaption of multiple data sources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037]A method for implementing intelligent adaptation to multiple data sources provided by a preferred embodiment of the present invention, the data sources involved include a default data source whose keyword is "defaultDataSource" and two keywords respectively "DataSource_1" and "DataSource_2" " business data source. There are three calling methods named "findByDataSource_1", "findByDataSource_2" and "findByDataSource_3" in "project1 / test1 / person.java" in the project project. When accessing each calling method, first judge whether the method name of the calling method being accessed contains "DataSource_1" or "DataSource_2". For example: when accessing the calling method named "findByDataSource_1", the method name contains the word "DataSource_1", then the calling method named "findByDataSource_1" directly manipulates the data source whose keyword is set to "DataSource_1", Similarly, it can be seen that the calling method with the method name "findByDataSource_2" directly ...

Embodiment 2

[0039] On the basis of the first embodiment, declare the applicable path of the business data source as "project1 / test1 / person.java" for the business data source whose keyword is "DataSource_1". Therefore, after the calling method named "findByDataSource_3" fails to match according to the keyword, the path where the calling method is located can be matched with the path declared by the business data source. Because the path of the calling method named "findByDataSource_3" matches the path applicable to the business data source with the keyword "DataSource_1", the calling methods named "findByDataSource_1" and "findByDataSource_3" both directly manipulate the keyword Set the business data source as "DataSource_1", and call the method named "findByDataSource_2" to directly manipulate the data source whose keyword is set to "DataSource_2". By declaring the path applicable to the business data source in the configuration file, after the calling method fails to match the keyword of...

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 an implementation method of intelligent adaption of multiple data sources, and relates to the technical field of data source processing. The method comprises the following steps: step 1. configuring key information of the data sources; step 2. defining a method name of a calling method according to the key information of the data sources to be controlled; step 3. matching the method name of the calling method with the key information of the data sources, and determining the data source used by the calling method according to the matching result. According to the method,by configuring the data source information in a configuration file of a project, the data source information can be conveniently changed at any time, the data source controlled by each calling methodneeds to be set in a development process one by one is avoided, and the data source controlled by each calling method is intelligently parsed to reduce the code redundancy, improve the development efficiency and and ensures easy maintenance.

Description

technical field [0001] The invention relates to the technical field of data source processing, in particular to a method for realizing intelligent adaptation to multiple data sources. Background technique [0002] Because data contains important information and rules, it becomes the basis for users to provide services. With the vigorous development of information technology and the Internet, data, as an important factor of production, has penetrated into every industry today and is constantly expanding. The data source (Data Source) is a device or original media that provides some kind of required data, and all information for establishing a database connection is stored in the data source. Just like you can find a file in the file system by specifying the file name, you can find the corresponding database connection by providing the correct data source name. [0003] In the database application, the data source is used as a standard interface for database connection manag...

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/30
Inventor 刘杰都柯
Owner 成都优易数据有限公司
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
Eureka Blog
Learn More
PatSnap group products