As we said before, RMS is the storage method provided with Java. Like most of the Java SDK there are BlackBerry-specific alternatives available and, in general, these should be used unless you are trying to create a true MIDlet. When it comes to database storage the BlackBerry-specific alternative is called the Persistent Store.
Easier to code: Using the
PersistentStore
approach is generally easier than RMS becausePersistentStore
provides a generic serialization mechanism allowing you to store complex objects in it. This means that the special code you made for theload
andsave
methods are not needed. There are several factors that should be considered before choosing to use eitherPersistentStore
or RMSMust implement Persistable interface: In order to store custom data classes in
PersistentStore
they must implement thePersistable
interface. Implementing this interface serves as a flag to thePersistentStore
object that the class is intended to be stored...