Search method and device and storage medium
A search method and conversion device technology, applied in the computer field, can solve problems such as codes cannot be reused, business function access costs are high, search pages cannot be reused, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach
[0119] In a specific embodiment of the present invention, the implementation of converting the searched raw data into a data model suitable for the business that triggers the search operation through the data model adapter includes:
[0120] (1) Utilize the data model adapter to traverse the original data to obtain the key in the data;
[0121] (2) Search the data model component registry according to the key, and obtain the ClassName of the data model corresponding to the key; wherein, the data model component registry includes a mapping relationship between the key and the data model Class Name.
[0122] (3) Create an instance object model of the Class Name, and transfer the dictionary corresponding to the key to the instance object model to obtain an array of [key: instance object model].
[0123] Step S502, converting the converted data model into a view object through a view model adapter;
Embodiment approach
[0124] In a specific embodiment of the present invention, the implementation method of converting the converted data model into a view object through a view model adapter includes:
[0125] (1) According to the key in the [key: instance object model] array obtained in step S501, search the view model component registry to obtain the Class Name of the view model corresponding to the key; wherein, the view model component registry contains key and The mapping relationship between view model Class Name.
[0126] (2) Generate a view object according to the Class Name of the view model, and transfer the instance object model corresponding to the key to the view object.
[0127] In an optional embodiment of the present invention, configuring the instance object model corresponding to the key to the view object specifically includes:
[0128] Obtain the view method of the view model corresponding to the key from the view model pool in the component pool, and configure the instance o...
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