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.
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.