Troubleshooting guide
3
Storing data
Use BlackBerry persistent storage
BlackBerry persistent storage
Use BlackBerry persistent storage
Manage persistent data
Manage custom objects
Use the MIDP record store
Storage method Description
BlackBerry® persistence
model
The BlackBerry persistence model provides a flexible and efficient way to store data. When writing an
application specifically for BlackBerry devices, use the BlackBerry persistence model.
• The BlackBerry persistence model lets you save any Object in the persistent store. As a result, searching
for data in the persistent store is faster than searching in the record store model. To store custom object
types, the class of the custom type must use the
Persistable interface.
• In the BlackBerry persistence model, applications can share data at the discretion of the application that
creates the data. Code signing specifies that only authorized applications can access the data.
MIDP record stores The MIDP record store allows an application to be portable across multiple devices that are compatible with
the Java™ Platform, Micro Edition.
• In MIDP, store persistent data as records in RecordStore objects. MIDP records store data only as byte
arrays.
• In MIDP, each RecordStore belongs to a single MIDlet suite. A MIDlet can access only the record stores
that a MIDlet in the same suite creates.
Feature Description
Security By default, applications on the BlackBerry® device that are digitally signed by Research In Motion (RIM) can
access the data in the persistent store. Contact RIM for information about controlling access to the data.
Administrative control With the BlackBerry Enterprise Server, system administrators can use IT policies to control the use of persistent
storage by third-party applications.
Administrators can set ALLOW_USE_PERSISTENT_STORE to TRUE or FALSE. By default, third-party
applications are enabled to use persistent storage (ALLOW_USE_PERSISTENT_STORE is TRUE). This policy
does not affect the MIDP record store.