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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com