Object serializing method, object deserializing method, device and system

A deserialization and serialization technology, applied in the field of ERP systems, can solve problems such as complex implementation, low processing efficiency, and inability to explicitly define and modify serialVersionUID values, and achieve simple implementation and high processing efficiency

Active Publication Date: 2013-08-28
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the serialVersionUID value of the defined object must be displayed for all involved objects, in order to completely avoid the problem of deserialization failure caused by adding, reducing or modifying the attributes of the class, the implementation is complicated, the processing efficiency is low, and For classes that refer to other library files, the serialVersionUID value of objects of this class cannot be explicitly defined or modified

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
  • Object serializing method, object deserializing method, device and system
  • Object serializing method, object deserializing method, device and system
  • Object serializing method, object deserializing method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] figure 1 The implementation flow of the object serialization method provided by the embodiment of the present invention is shown, and the details are as follows:

[0049] In step S101, each attribute name and attribute value of the object are sequentially obtained;

[0050]In step S102, serialize the acquired attribute value according to the type to which the acquired attribute value belongs or decompose the acquired attribute value into basic types before serializing;

[0051] In step S103, all serialized attribute values ​​and attribute names including decomposition information corresponding to each serialized attribute value are connected according to the connection mode information.

[0052] An instance of any custom class or non-custom class is the object of the custom class or non-custom class, referred to as the object. The custom class can be any class defined according to actual needs, and the non-custom class can be the source of the reference The class has...

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 is applicable to the computer field and provides an object serializing method, an object deserializing method, a device and a system. The object serializing method comprises the following steps of obtaining each attribute name and each attribute value of the object in sequence; serializing the obtained attribute values according to the type to which the obtained attribute values belong or decomposing the obtained attribute values into fundamental types and then serializing; connecting all serialized attribute values and the attribute names corresponding to the serialized attribute values and comprising decomposition information according to connection mode information. In an embodiment of the invention, the invention can completely avoid the problem that the object deserializing fails caused by increasing, decreasing or correcting the attributes of the type to which the object belongs, through obtaining the attribute names and attribute values of the object in sequence and serializing the obtained attribute values according to the type to which the obtained attribute values belong or decomposing the obtained attribute values into the fundamental type and then serializing. The realization is simple and the treatment efficiency is high.

Description

technical field [0001] The invention belongs to the field of computers, and in particular relates to an object serialization method, an object deserialization method, an object serialization device, an object deserialization device and an ERP system. Background technique [0002] An existing object serialization method is to serialize the object as a whole, and then save it to the storage medium or output it. An object serialization result corresponds to a serialization identifier serialVersionUID, and the serialization identifier uniquely identifies the serialization of each object. result. When needed, deserialize the stored or received serialized data into objects. For example, the definition of the Person class is as follows: [0003] [0004] If after serializing an object person0 of the Person class, adding, reducing, or modifying the attributes of the Person class, or changing the attributes of the Address class, it will cause the serialization identifier serialV...

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 Patents(China)
IPC IPC(8): G06F9/44G06Q10/06
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