Method and device for mapping data into custom class object

A self-defined class and data mapping technology, applied in the computer field, can solve the problems that the mapping relationship between data and objects cannot be displayed intuitively, and it takes a lot of time and repetitive work to achieve the effect of ensuring accuracy and improving efficiency.

Active Publication Date: 2016-07-06
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing mapping method of custom class objects consumes a lot of time for repetitive work, and the mapping relationship between data and objects cannot be displayed intuitively

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
  • Method and device for mapping data into custom class object
  • Method and device for mapping data into custom class object
  • Method and device for mapping data into custom class object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0025] It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0026] figure 1 An exemplary system architecture 100 is shown to which embodiments of the data mapping to custom class object methods or data mapping to custom class object means of the present application may be applied.

[0027] like ...

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 a method for mapping data into a custom class object. A specific implementation way of the method comprises the steps as follows: a data request is transmitted to a server; data returned by the server according to the data request are obtained; the returned data are serialized to obtain a returned data set; the custom class object is created according to the returned data set, wherein the custom class object comprises at least one member variable; an association relationship between the member variables and the returned data is built; the member variables are assigned according to the association relationship to finish mapping the returned data set into the custom class object. According to the implementation way, the custom class object mapping efficiency is improved; and the mapping accuracy is ensured.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to the field of Internet technology, and in particular to a method and apparatus for mapping data into objects of a custom class. Background technique [0002] In the process of network communication and data interaction, it is often necessary to convert data from different sources into local objects for use and operation. [0003] However, the existing method of mapping data to an object of a custom class is usually to manually implement the mapping of the data of the custom class object, and assign the data to the created object by manually assigning the data. The existing mapping method of custom class objects consumes a lot of time for repetitive work, and the mapping relationship between data and objects cannot be displayed visually. SUMMARY OF THE INVENTION [0004] The purpose of the present application is to propose an improved method and apparatus for mapping...

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): G06F9/44
Inventor 李东耕
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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