The problem of object serialization in BlackBerry app

Source: Internet
Author: User
Tags object serialization serialization
When developing a BlackBerry application, it is sometimes necessary to serialize or store an object or a Pojo object, because it is developed on the J2ME, so many of the APIs above J2SDK are not directly available. For example, Java.io.Serializable interface, and many times we use PersistentObject and persistentstore to persistent data is to directly persistent a Java object, here, for example, is the simplest us Er object at this time, because the user object cannot implement the Java.io.Serializable interface, it appears "bad" when using PersistentObject and PersistentStore to persistent the user object. Persistent Object:user "error, here is a way to solve this problem, is to let the User class implement Net.rim.device.api.util.Persistable interface, and then persistent on it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.