Chapter 5

The Persistence Module

As the name suggests, the persistence module is responsible for storing and preserving data for use at a later time and possibly in a different application session.

The most common usage scenario is keeping track of application parameters (what user is currently logged in, whether sound is enabled, etc.) across multiple sessions, but it can also be used for other tasks, such as caching large amounts of data or for long-term storage of files received from the server.

Like everything else Java ME, in order to be truly useful and flexible, a persistence module should have a well-thought-out architecture and its code should be simple and easy to use by the end developer.

In this chapter, we will discuss the most ...

Get Pro Java ME Apps now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.